Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique number
Message
From
07/07/1998 16:38:08
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00113894
Message ID:
00115050
Views:
18
>Searching a table only discovers data that has been saved to the network, not data still in buffers on individual machines, and the machine_id adds a long string to the ID number that is difficult to read and report.
>
>Why go through all this effort when you can use a lookup table? Just lock the appropriate record, increment the value and unlock the record for someone else to use. Unique, you can use VERY large numbers (I think it's 2 billion) if you use integer-type, and easy to handle.

Machine_id+sys(2015) may be sufficient and may avoid the overhead of many users hitting the lookup table simultaneously. Though, the lookup tables are the safest way to go when you can have them - I'm using this (with a short machine id of only 2 chars) for offline users whose data must get synchronized later. Since I can't be sure if some data may come twice (or it should, if updated), I use this approach. It might be good for slower networks, too.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform