Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert - SQL slower in VFP9 than in VFP6???
Message
De
23/02/2007 08:24:46
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
22/02/2007 12:56:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01198068
Message ID:
01198261
Vues:
11
>I've recently installed VFP9 service pack 1. We are converting an enormous amount of data to fox dbfs. I've always thought that SQL inserts were faster than append blank, and for that matter safer. (FYI, In this particular instance, we are not assigning primary keys to the tables and they are opened exclusively for this operation.)
>
>However when running the code from within VFP 6, it is 5 times faster than in VFP9:
>
>INSERT INTO (lcpath + lcTable) FROM memvar
>
>For 10,000 iterations of this code, VFP9 took almost two minutes, while VFP6 took only 20 seconds.
>
>When I replace the above line with the following, VFP9, now runs as fast or faster than VFP6:
>
>append blank
>gather memvar
>
>What am I missing here????? I'm puzzled.
>
>One other note, I have SET SQLBUFFERING OFF but there must be something else in play here.

Rick,
You might start to test after prefixing all of your memory variables with m.
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