4 ms·
This is also a best practice in CouchDB - in Couch as long as you use the UUIDs that Couch generates for you (via the /_uuids API endpoint) you'll get keys that
by jchrisa 15y ago
This is also a best practice in CouchDB - in Couch as long as you use the UUIDs that Couch generates for you (via the /_uuids API endpoint) you'll get keys that are designed to minimize the work the b-tree has to do, to insert them.
- rdtsc 15y agoThere are basically 2 type of common UUIDs : 1 and 4. UUID1 is generated from mac address of the machine + timestamp + random bits and UUID4 is completely random. Sometimes you'd want one sometimes the other. You can try these in python as: >>> import uuid >>> uuid.uuid1() >>> uuid.uuid4()
- deleted 15y ago[deleted]