Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is faster: insert from memvar or insert fields?
Message
From
25/07/2006 17:04:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01139366
Message ID:
01139948
Views:
15
>Cetin,
>
>Your code worked in 1 sec.
>
>However, Guid generated doesn't match what we currently have in our database:
>
>2F14C33D340747AE
>
>In other words, our GUID are always English letters and numbers and yours gives some unreadable chars.
>
>Our code took 4 sec. for 1K recs.

Of course they wouldn't match. I didn't sacrifice any bytes of the 16. Your version sacrifies half of the bytes (some bytes might be but not all IMHO) then does a hex+endian conversion.
On the same GUID value (after call to uuidcreate) apply str from guid and you'd see what I mean.
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