Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is faster: insert from memvar or insert fields?
Message
 
 
À
24/07/2006 15:27:41
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 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01139366
Message ID:
01139414
Vues:
18
>>Hi everybody,
>>
>>I'm wondering what is better and faster:
>>
>>select Table1
>>scatter memvar
>>FieldFK = something
>>PointerField = something
>>release cEntered_User, tEntered_Date
>>insert into Table2 from memvar
>>
>>or
>>
>>insert into Table2 (field1, field2, fieldN,...) ;
>>values ;
>>(Val1,Val2, Table1.fieldN,...)
>>
>>I switched from the first to the second, but it doesn't look like I gain a speed increase. I did multiple other changes, so it's hard to compare original code with the new code. But anyway, what do you think?
>>
>>Thanks in advance.
>
>
>If you're inserting a group of records, I'd think
>
>INSERT INTO blah SELECT ...
>
>would be the fastest.
>
>Tamar

This I also implemented where applicable. In the particular case I'm asking we're inserting one record.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform