Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I optimize this SELECT (SQL) command?
Message
De
10/06/2010 12:05:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
10/06/2010 10:35:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01468242
Message ID:
01468319
Vues:
50
>Hi,
>
>Thanks for your help!
>
>If I use an index, I think I can gain some more performance by dropping the ORDER BY ... DESC (I suppose it causes an index creation on-the-fly), something like the below:
>
>
>SELECT REFN ;
>    FROM table1 ;
>    WHERE (REFN LIKE (?cTextBeforeCounter)) ;
>    INTO CURSOR table1_
>
>GO BOTTOM IN table1_
>
>
>Do you think the above will be faster?

Maybe a few milliseconds more, I don't know. With index it would be still fast enough you can keep your order by. It does that on the client in either case.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform