couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcello Barnaba <...@openssl.it>
Subject Re: Storing a doc I'd as json array string
Date Wed, 05 Mar 2014 15:52:28 GMT

On Mar 05, 2014, at 07:27, Stanley Iriele <siriele2x3@gmail.com> wrote:

> I want to store a document for a particular game... Version...and
> key...where key could be any string. I want there to be a key collision on
> insert
> 
> I don't want to make up some delimeter because that wouldn't go so well….

If only the “key” field is out of your control and you can’t assure the
delimiter will not appear in it, you can put this field last. Then, when
parsing the id, you split it up to the second delimiter.

-- 
~ vjt@openssl.it
~ http://sindro.me


Mime
View raw message