Hmm, could you explain how to configure CouchDB to generate such uuids please?
On Wed, Nov 25, 2009 at 11:14 AM, Brian Candler <[email protected]> wrote: > On Tue, Nov 24, 2009 at 01:48:16PM +0100, Lennart Melzer wrote: >> Right now I can either have those documents sorted by their creation date, >> or hierarchically correct, but not both. >> >> I don't want to use incrementing ids, since I'd like to stick with the uuids >> ( or at least with ids, that do not tell anything about the ordering). > > CouchDB can generate time-based UUIDs, where the top part of the uuid is the > time and the bottom part is essentially random. > > I think this would work very well for you: > > - you get documents with equal keys naturally sorted by insertion time > > - you don't even need to add a created_time field, since you can parse it out > of the uuid when you need it > > Regards, > > Brian. >
