Skip Menu |

This queue is for tickets about the CouchDB-Client CPAN distribution.

Report information
The Basics
Id: 72875
Status: new
Priority: 0/
Queue: CouchDB-Client

People
Owner: Nobody in particular
Requestors: mreimer [...] oanda.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: docExists is very inefficient
Date: Thu, 01 Dec 2011 16:48:36 -0500 (EST)
To: bug-CouchDB-Client [...] rt.cpan.org
From: Michael Reimer <mreimer [...] oanda.com>
CouchDB::Client::DB->docExists appears to retrieve and process the entire document index by GETting /dbname/_all_docs (via listDocIdRevs with no arguments). This is very inefficient for databases with many documents. It would be better to check the status code at /dbname/docid.