Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to improve this query
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01680377
Message ID:
01680418
Vues:
25
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform