<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -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 =&gt; ids, :include_docs =&gt; 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.</diff>
      <filename>lib/couchrest/core/database.rb</filename>
    </modified>
    <modified>
      <diff>@@ -599,6 +599,11 @@ describe CouchRest::Database do
       ds = @db.documents(:startkey =&gt; 'doc0', :endkey =&gt; 'doc3', :include_docs =&gt; true)
       ds['rows'][0]['doc']['another'].should == &quot;doc&quot;
     end
+    it &quot;should have the bulk_load macro&quot; do
+      rs = @db.bulk_load [&quot;doc0&quot;, &quot;doc7&quot;]
+      rs['rows'].length.should == 2
+      ds['rows'][0]['doc']['another'].should == &quot;doc&quot;
+    end
   end
   
 </diff>
      <filename>spec/couchrest/core/database_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d3a7717363e61e1f13e7358127b188e2ac95d0b7</id>
    </parent>
  </parents>
  <author>
    <name>Chris Anderson</name>
    <email>jchris@grabb.it</email>
  </author>
  <url>http://github.com/jchris/couchrest/commit/8363aa629837d333d04373523fdcc10b392fb368</url>
  <id>8363aa629837d333d04373523fdcc10b392fb368</id>
  <committed-date>2009-05-08T19:00:39-07:00</committed-date>
  <authored-date>2009-05-08T19:00:39-07:00</authored-date>
  <message>added bulk_load macro</message>
  <tree>8ce1f5e86b0a7ccc28e37b5599c120a431116f4f</tree>
  <committer>
    <name>Chris Anderson</name>
    <email>jchris@grabb.it</email>
  </committer>
</commit>
