Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SpeedUp SCAN
Message
De
02/04/2010 07:15:56
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
02/04/2010 06:52:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01458484
Message ID:
01458488
Vues:
67
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform