Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append blank VS insert SQL
Message
From
22/03/2005 06:13:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
22/03/2005 06:08:01
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00998018
Message ID:
00998023
Views:
25
>and what about speed ?
>I made a test and seems like append was 4 to 10 times slower

I wouldn't comment on that. From test to test one might be faster than the other. My reasoning is simple:

select myTable
Append Blank
replace field1 with m.somevalue, ...

vs:

insert into myTable (field1, ...) values (m.somevalue, ...)

latter is a single atomic operation. Insert into also have variations like "insert into ... from memvar|array".

It has been a long time I don't use 'Append Blank'.

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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform