Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scan Endscan
Message
De
25/06/2005 08:17:04
 
 
À
24/06/2005 15:01:47
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01026363
Message ID:
01026505
Vues:
27
Hi Dragan,

>I discovered this by accident, having to fix an unrelated piece of code in that form, where it always built the whole tree (about 200 nodes) each time, which took about 15-20 seconds, which annoyed me to no end, because I had to run the form very often. So I ran the coverage and found out that it ran 200 SQLs. I just applied my recursive hierarchy logic I developed in 1989 (which was, basically, seek and scan while, although nested) and it started appearing instantaneously.

I also switch to seek/scan to speed up certain use cases quite often - usually through avoiding building Rushmore-bitmaps, which involves index scanning. But reading your case my first gut reaction was "different algorithm". Wouldn't it be possible to create a table defining the whole tree with a more complex single SQL statement ? Of course the second reaction was "good enough - don't fix if not broken" <g>.

regards

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform