couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: Size of couchdb documents
Date Fri, 16 Mar 2012 15:45:33 GMT
you can see how erlang sorts by using a erlang terminal, e.g,

erl
> lists:sort(["a","A","b","B", "0", "9", "+"]).
["+","0","9","A","B","a","b"]

etc.

On 16 March 2012 15:39, Daniel Gonzalez <gonvaled@gonvaled.com> wrote:
> On Fri, Mar 16, 2012 at 4:30 PM, Robert Newson <rnewson@apache.org> wrote:
>> Ah, thanks, that's good advice. You can still grab a bunch of the
>> uuids from /_uuids and then use them, thus giving you good uuids and
>> idempotency too.
>>
>> b.
>>
>
> Understood. But this would not solve the doc_id size problem, which in
> my database with 22 million documents has a big effect. So I need to
> generate a doc_id on the clien side with few characters. Which brings
> me back to my originial question: could somebody produce a base64
> dictionary which is "Erlang term ordered"?

Mime
View raw message