def bulk_put(docs, opts={})

      docs.each { |doc| check_attachments(doc) }

      res = @http.post(adjust('_bulk_docs'), { 'docs' => docs })

      opts[:raw] ?
        res :
        res.collect { |row| { '_id' => row['id'], '_rev' => row['rev'] } }
    end
def bulk_put(docs, opts={})

      docs.each { |doc| check_attachments(doc) }

      res = @http.post(adjust('_bulk_docs'), { 'docs' => docs })

      opts[:raw] ?
        res :
        res.collect { |row| { '_id' => row['id'], '_rev' => row['rev'] } }
    end
Creates or updates docs in bulk (could even delete).

 http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API#Modify_Multiple_Documents_With_a_Single_Request