added bulk_load macro

This commit is contained in:
Chris Anderson 2009-05-08 19:00:39 -07:00
parent d3a7717363
commit 8363aa6298
2 changed files with 10 additions and 0 deletions

View file

@ -44,6 +44,11 @@ module CouchRest
end
end
# load a set of documents by passing an array of ids
def get_bulk(ids)
documents(:keys => ids, :include_docs => true)
end
# POST a temporary view function to CouchDB for querying. This is not
# recommended, as you don't get any performance benefit from CouchDB's
# materialized views. Can be quite slow on large databases.