Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How this query will fast
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01468545
Message ID:
01468551
Views:
54
>How this query will work fast. It has 37000 records, and takes .28 time to load.
>
> thisform.container6.searche.RecordSourceType=4  &&grid
> 
>     thisform.container6.searche.RecordSource = "select word,ur from dict "+;
>                " where UPPER(word) = Upper(Trim(thisform.container6.texte.Value))"+;
>                " order by word into cursor SYS(2015)  "
>
It may be a better idea to use the cursor for the recordSource.
select word,ur from dict  where UPPER(word) = Upper(Trim(thisform.container6.texte.Value)) ;
 order by word into cursor crsGrid nofilter
Also your table should have an index on UPPER(word) so the query will be Rushmore optimizable.
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