Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 446 invoked from network); 5 Oct 2009 14:37:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Oct 2009 14:37:48 -0000 Received: (qmail 16724 invoked by uid 500); 5 Oct 2009 14:37:47 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 16655 invoked by uid 500); 5 Oct 2009 14:37:47 -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 16645 invoked by uid 99); 5 Oct 2009 14:37:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Oct 2009 14:37:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.211.204 as permitted sender) Received: from [209.85.211.204] (HELO mail-yw0-f204.google.com) (209.85.211.204) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Oct 2009 14:37:37 +0000 Received: by ywh42 with SMTP id 42so2468360ywh.28 for ; Mon, 05 Oct 2009 07:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Hx74h0TePt2gj8dpcKYVATEAfqJGmHMkpHzwNP0vEEA=; b=qrNdo86d8T/7CoEv8CDpilwVydXdJhVMdeN+3mtoPOrxwrkRyRYpjdnclm+cenR3ET LHC5ZQwsMIFu9mDpfssMX6vW4xnGZNd4x8ToPMcBEYsIS2kE6jnD/QfrGoGplHYPkiA9 H9NwkO7GY6V2T3R+7O0hz4d/qGMa/5IbVhbt0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=YViRh0CcJWh7PD1D3TjPBlxnrRF1MywFUPNWwWFnoJIe/6UJ6Q6ZKkt4j0pMJI7fak kdUvBdmxPQPMlIsWPOCg89F5gbX6DRlfiA4O+61ocshhaCkhIk2FUuRrE6+kN5XclhlP mk0FOoINJsGA75EpMn2P8bDVsX73XqdxeHLvM= MIME-Version: 1.0 Received: by 10.101.131.20 with SMTP id i20mr90978ann.114.1254753374471; Mon, 05 Oct 2009 07:36:14 -0700 (PDT) In-Reply-To: <0FAC432A-E38E-40F8-AC79-0FB007DBC14D@gmail.com> References: <0FAC432A-E38E-40F8-AC79-0FB007DBC14D@gmail.com> Date: Mon, 5 Oct 2009 10:36:14 -0400 Message-ID: Subject: Re: slow deleting From: Paul Davis To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Views won't affect deletion speeds at all. What version of CouchDB on what operating system are you using? Also, if possible you'll want to group as many deletes as possible into a single _bulk_docs call. Regardless of _bulk_docs, 4rps seems slow if you're on one of the releases. If you're on an older version of trunk, try updating to the current version to see if that helps out. Paul Davis On Mon, Oct 5, 2009 at 9:58 AM, Marijn Stollenga wr= ote: > Hello, > I am new to this mailinglist. I am using CouchDB as backend to an online > game. I notice that deleting documents is really slow (about 4 deletes pe= r > second). Is there any way to improve this speed? > I use several views, do these views prohibit fast deletion? I added a vie= w > is use in the database. > > Thanks in advance, > Marijn > > { > =A0 "all": { > =A0 =A0 =A0 "map": "function(doc) {if (doc.type =3D=3D 'area'){emit(doc.n= ame, > doc._id);}}" > =A0 }, > =A0 "to_character": { > =A0 =A0 =A0 "map": "function(doc) {if (doc.type =3D=3D 'character'){emit(= doc.location, > doc.name);}}" > =A0 }, > =A0 "to_paths": { > =A0 =A0 =A0 "map": "function(doc) {if (doc.type =3D=3D 'path'){emit(doc.f= rom, > doc.to);}}" > =A0 }, > =A0 "path_to_area": { > =A0 =A0 =A0 "map": "function(doc) {if (doc.type =3D=3D 'path'){emit(doc.f= rom + > doc.name, doc.to);}}" > =A0 } > }