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 42B48C655 for ; Fri, 8 Jun 2012 02:35:46 +0000 (UTC) Received: (qmail 45609 invoked by uid 500); 8 Jun 2012 02:35:44 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 45565 invoked by uid 500); 8 Jun 2012 02:35:44 -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 45546 invoked by uid 99); 8 Jun 2012 02:35:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2012 02:35:44 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simon@cloudant.com designates 74.125.83.52 as permitted sender) Received: from [74.125.83.52] (HELO mail-ee0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2012 02:35:36 +0000 Received: by eeke53 with SMTP id e53so783657eek.11 for ; Thu, 07 Jun 2012 19:35:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:x-gm-message-state; bh=qzZdBXVX8wmVTI+otjFIg9mWPGA4tLLp34X4bwKz884=; b=GziVmJymhg68pel0OrCo5hZzZrTsMxf8czU+bc+bzOhMx8Lj37BTATSDe/FEvnDi65 6nmn6HMk9iVgr2tx2O+TYqSv0e2uaDBP0KwcxhKCB+KsoDgtNrEHI2fNelWTRp+19uRl OZWeL2eREKK+sT0yZIsBXF+9ETG4e5chn5cu+06UHE3L8pitQc2hwMVABUretWbT3/B0 +2epiAGCZgwGihOPTDfqEyDFmqK35xDjePXNwCQMBZQodeEY0VBI1lkFrd0Bd4nIuYwz m2fI0C5l/JTARf/sLn08UrRyPmergeF+rq/CcquUf3MiIByTZzcjnoPu6ZdrD6Ed80bP NNcw== Received: by 10.14.100.144 with SMTP id z16mr2676740eef.50.1339122915955; Thu, 07 Jun 2012 19:35:15 -0700 (PDT) Received: from [192.168.1.83] (93-97-111-13.zone5.bethere.co.uk. [93.97.111.13]) by mx.google.com with ESMTPS id ch9sm8211290wib.8.2012.06.07.19.35.14 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 07 Jun 2012 19:35:15 -0700 (PDT) Date: Fri, 8 Jun 2012 03:35:13 +0100 From: Simon Metson To: user@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: Re: Adding vs replicating documents X-Mailer: sparrow 1.6 (build 1081.27) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4fd164e1_77263b8a_11e68" X-Gm-Message-State: ALoCoQmy0Xj2uwv1K60XkmRZ5l7/QjgbyFNR4q1RIi4inKLhViAcGnVQ7n5/epIjpUTNxJUG784v --4fd164e1_77263b8a_11e68 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Can't your program write to a local CouchDB instance instead of a file? Cheers Simon On Friday, 8 June 2012 at 03:31, Luca Matteis wrote: > I use my own IDs which are stored in the JSON file. I can't use futon. > I'm stuck with this JSON file (which is generated programmatically > btw). I was just wondering if there was an easy way to use the > replication API and check if this JSON file has changes, and upload > only those, instead of re-uploading everything. > > On Fri, Jun 8, 2012 at 4:14 AM, Mark Hahn wrote: > > You can't update a document unless you have the id. Do you have a view set > > up to find what you want? If so pull them up and edit them in futon. > > > > Usually one would edit the docs in the db directly using futon, not change > > the original data. > > > > On Thu, Jun 7, 2012 at 6:35 PM, Luca Matteis wrote: > > > > > I have a file that contains lots of JSON documents - probably around > > > 1gb of data. > > > I uploaded this file to my server's Couch instance (on the cloud) > > > using the Bulk API. > > > Now I need to re-upload it because I've made some changes to the file > > > - I've added some documents, deleted some, and edited a few. > > > > > > My question is, can I avoid sending over the wire the 1gb of data > > > every time I make modifications to it? > > > > > > I've thought about setting up a local Couch instance on my computer, > > > upload data there, and then replicate it to my Couch instance, so that > > > only changes get sent over the wire... but was wondering if there was > > > an easier way instead of having to install CouchDB on my computer. > > > > > > > > > > --4fd164e1_77263b8a_11e68--