Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data selecting velocity
Message
From
06/04/1998 12:04:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/04/1998 11:51:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00089851
Message ID:
00089856
Views:
26
>Hello, can I ask You a question?
>Why does REQUERY function work much longer than SELECT-SQL command and
>the BROWSE command from the View menu in the case of large number of
>records in the the base table (more than 50000)?
>
>Code:
>SELECT * FROM db_price!pricelst ;
>WHERE LEFT( pricelst.code, ?gnKeyCurrentLength ) BETWEEN ?guRangeLow ;
> AND ?guRangeHigh ;
>AND SUBSTR( PriceLst.Code, ?gnRemainStart, ?gnRemainLength ) = ;
> ?guRemainFill ;
>ORDER BY code
>
>Processing time of SELECT-SQL command is less than 1 second, but in the case of using REQUERY() function it consists 70-80 seconds.
>
>Can I do anything to accelerate this process?
>
>Excuse me for bad English.
There are differences but not to this extent. Now to accelarate it:
LEFT( pricelst.code, ?gnKeyCurrentLength ) BETWEEN ?guRangeLow ;
AND ?guRangeHigh ;
Should be replaced by :
pricelst.code between BETWEEN ?guRangeLow ;
AND ?guRangeHigh ;
So it could benefit a code index (set exact off).
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
Next
Reply
Map
View

Click here to load this message in the networking platform