Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is more efficient of the two
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
MS SQL Server
Divers
Thread ID:
01135592
Message ID:
01135612
Vues:
11
The second one is missing SEEK() to find record in the local cursor. After you add it they will look pretty similar. Assuming that MySQLPTCursor has less records that local cursor, I would expect the second one to be a little bit faster. Depending on the # of records in the cursor, the difference may be negligible.

>>It's hard to say w/o knowing what "Do other stuff" doing. The second one looks cleaner to me.
>
>I have updated them as follows. The other stuff works on local cursors/tables. Thanks for responding.
>
>>>What is more efficient:
>>>
SQL PT dataset (variable no of records but within a range of records)
>>>INDEX on a field
>>>
>>>SELECT local cursor
>>>SCAN
>>>   SEEK(in "MySQLPTCursor")
>>>   REPLACE in the local cursor
>>>ENDSCAN
>>>
>>>
>>>SELECT local cursor
>>>SCAN
>>>   SQL PT single record as needed
>>>   REPLACE in the local cursor
>>>ENDSCAN
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform