Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C3FD880EB for ; Tue, 16 Aug 2011 15:43:11 +0000 (UTC) Received: (qmail 31315 invoked by uid 500); 16 Aug 2011 15:43:11 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 31113 invoked by uid 500); 16 Aug 2011 15:43:10 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 31100 invoked by uid 99); 16 Aug 2011 15:43:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 15:43:10 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ryan.ramage@gmail.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-wy0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 15:43:04 +0000 Received: by wyj26 with SMTP id 26so11390wyj.11 for ; Tue, 16 Aug 2011 08:42:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=ndTqtz1ugGFj1GwEwsY7kVA3cXzmxps/0Uo3clrqMwE=; b=oiT7hjo1L7RLWfp1PviVOJ72BzIvw2DAHdozTA+jHrGv3XdJ7BH4OoLobCQDQQzW4z sUFPqeAToGiuluKyvdPCKdgw4eOVZESxVH8S4Pq/4a1v22n3M3ussV2gZuesF+cLchdY HoVyjunpNXjCbi/nYuV7ZlJZv0nLXvf3ErwP8= MIME-Version: 1.0 Received: by 10.227.24.146 with SMTP id v18mr4703099wbb.84.1313509362577; Tue, 16 Aug 2011 08:42:42 -0700 (PDT) Received: by 10.227.28.134 with HTTP; Tue, 16 Aug 2011 08:42:42 -0700 (PDT) In-Reply-To: References: Date: Tue, 16 Aug 2011 09:42:42 -0600 Message-ID: Subject: Re: The replicator needs a superuser mode From: Ryan Ramage To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable > This is only slightly related, but I'm dreaming of /db/_dump and /db/_res= tore endpoints (the names don't matter, could be one with GET / PUT) that j= ust ships verbatim .couch files over HTTP. It would be for admins only, it = would not be incremental (although we might be able to add that), and I hav= en't yet thought through all the concurrency and error case implications, t= he above solves more than the proposed problem and in a very different, but= I thought I throw it in the mix. > +1 on /db/_dump and /db/_restore endpoints!! Very beneficial to us little people trying to make installers like couchapp-takeout, and could even be used from futon to create a database from a remote db. I am anecdotally noticing that using replication to create a local database from a remote one with lots of attachments takes a long time, is prone to timeouts, and gets stuck (been working with jhs on this). Dump/restore will be also much faster, eliminating the small requests.