Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I optimize this SELECT (SQL) command?
Message
From
10/06/2010 12:05:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
10/06/2010 10:35:12
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01468242
Message ID:
01468319
Views:
51
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform