Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SpeedUp SCAN
Message
From
02/04/2010 07:15:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
02/04/2010 06:52:46
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01458484
Message ID:
01458488
Views:
66
>Hi all
>I have a table XXX with 25 fields (ctype, nNum, ... filed25) and aprox 100.000 records and following code:
>
>scan for ctype=cvar1 and nnum=nvar2
>...
>endscan
>
>
>Recently this scan became very slow. I've indexed the table in cType and nNum to optimyze speed but it does no work...
>Any ideas would be great.
>
>Thank's in advance,
>NPedro
set order to tag cType
=seek(m.cVar1)
scan while ctype = m.cvar1 for nnum = m.nvar
  ...
endscan
If it is still slow then seek for other causes (not using m. prefix is by itself a cause to slow down a loop)
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