Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F7FF1052D for ; Wed, 5 Mar 2014 17:55:21 +0000 (UTC) Received: (qmail 41166 invoked by uid 500); 5 Mar 2014 17:55:19 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 40201 invoked by uid 500); 5 Mar 2014 17:55:09 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 39062 invoked by uid 99); 5 Mar 2014 17:55:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2014 17:55:01 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of siriele2x3@gmail.com designates 209.85.216.51 as permitted sender) Received: from [209.85.216.51] (HELO mail-qa0-f51.google.com) (209.85.216.51) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2014 17:54:57 +0000 Received: by mail-qa0-f51.google.com with SMTP id cm18so1293103qab.24 for ; Wed, 05 Mar 2014 09:54:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=cQt1N3W5TyYjvdUb7Ksgnnwz4MWTHkKaeOsQtEG0gaY=; b=tmTHGLebaGiPXDKasyzoCSQO8nyCZn8DP9TeyEjNeVXmd3pESd6pUVSIgNus5ibUXW ynRanLTKJcqVbRn/NGL0Gu75SspgkVyWQ5RFakXdN5tKXTBwi0qqU7VJIm2T30ZNZgkV hwwjeYMV+H48K2H42Fwg1H8s23qHpnWKOjj9ItlydlmkRXrVkp5mGIHa5bMFXLxe0eoS rNz1jAhu7Mh3aRpLWtvHXbc6+oXndmt4sDCLuDwF4nNGdw3tqBcIuc/nf/ThQogvPa/C 98vdJK7drwxZwotw4RsS/dxIAvspsgUf46VkOUT6X4F2lqbFNbmDQVOhHhrEIecf/6C7 4IpQ== MIME-Version: 1.0 X-Received: by 10.229.3.2 with SMTP id 2mr2163070qcl.22.1394042076587; Wed, 05 Mar 2014 09:54:36 -0800 (PST) Received: by 10.96.25.164 with HTTP; Wed, 5 Mar 2014 09:54:36 -0800 (PST) Received: by 10.96.25.164 with HTTP; Wed, 5 Mar 2014 09:54:36 -0800 (PST) In-Reply-To: <683C33A5-8891-47CF-806F-D0A5623AB845@openssl.it> References: <683C33A5-8891-47CF-806F-D0A5623AB845@openssl.it> Date: Wed, 5 Mar 2014 09:54:36 -0800 Message-ID: Subject: Re: Storing a doc I'd as json array string From: Stanley Iriele To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001a1133bce2c6ec0804f3dfb669 X-Virus-Checked: Checked by ClamAV on apache.org --001a1133bce2c6ec0804f3dfb669 Content-Type: text/plain; charset=ISO-8859-1 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" wrote: > > On Mar 05, 2014, at 07:27, Stanley Iriele 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 > > --001a1133bce2c6ec0804f3dfb669--