Thu Dec 01 16:48:45 2011mreimer [...] oanda.com - Ticket created
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.