couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanley Iriele <siriele...@gmail.com>
Subject Re: Storing a doc I'd as json array string
Date Wed, 05 Mar 2014 17:54:36 GMT
Thanks... I know doc ids have to be strings so when I "array string" I
meant json encoded string... It seems to work just fine so far but it
doesnt look too pleasant but I can't risk the idea of delimiter
collision...at all... I guess I could store the hash of those values or
something
On Mar 5, 2014 7:53 AM, "Marcello Barnaba" <vjt@openssl.it> wrote:

>
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message