Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to improve this query
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01680377
Message ID:
01680418
Views:
24
>>>There is nothing to improve on the query.
>>>You need to think on how to avoid having to download the whole table and only get those when you need them.
>>
>>Walter is absolutely correct. Also, if you don't need all columns, you can just select specific columns - that may help if the table is too wide.
>
>Typically my application does need almost all columns. There could be one or two deprecated columns. And I thought that - maybe - if I change the list of columns with "select * from " in the property of the CA, the time it takes to pull the data will be reduced. But maybe it will be reduced by 1-2 seconds. And the customer is complaining of 30-40 seconds. So, for now, I will leave out this approach until I learn more.

Is it a remote server? Does the customer have access to it through SSMS? I think it's mostly transferring the data speed here. If the customer can go to SSMS, just let him do the same thing by switching into SQLCMD Mode (In SSMS it's in the Query menu), then type at the top of the new query window

:OUT c:/somefolder/myResult.txt -- here you may use the same folder your application is using to test or any other local folder for the customer

select * from myPartsTable

-------
See how long will it take.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform