couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jo-Erlend Schinstad <joerlend.schins...@gmail.com>
Subject Re: Modeling a tree in couchdb.
Date Fri, 23 Dec 2011 13:52:07 GMT
Den 23. des. 2011 12:26, skrev CGS:
> An idea I got from the CouchDB documentation: use floating point 
> numbers instead of integers. That is, instead of 1, 2, 3, 4..., you 
> can use 0.1, 0.2, 0.3, 0.4... or 1.0, 2.0, 3.0, 4.0... That can help 
> you to insert a new node (say, 0.15 or 1.5) in between any two given 
> nodes (say, in between 0.1 and 0.2 or in between 1.0 and 2.0) without 
> any other modification.
>
> I hope it will be useful for your case.

Thank you! Yes, that helps a lot, I think. I'm not sure it solves the 
problem completely, but it sure gave me something to think about. It 
actually gave me a rather different perspective on the whole problem, 
which is very valuable itself. Thanks again :)

Jo-Erlend Schinstad

Mime
View raw message