incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From didier lafforgue <didier.laffor...@gmail.com>
Subject Re: sorted documents by their position
Date Thu, 06 Aug 2009 21:50:51 GMT
> If you store the position as a float (or a string) then you only have
> to update the position on the changed document, not all of the docs in
> the list.
>
> Eg, if you want project P to come between projects B and C, then
> average the positions of B and C and make that the new position of P.
>
>
Thanks Chris, nice trick ;-)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message