I am creating a storage provider for MongoDB and am reverse-engineering the
expected behavior of the storage interface methods from the Hash storage and
Couch storage providers.  Unless I am missing something, it looks like there
is an inconsistency between how those two providers will behave if get_many
is called with :count = true in the options.  It seems that in the hash
storage, it will return the count of documents matching the key parameter
(see
https://github.com/jmettraux/ruote/blob/ruote2.1/lib/ruote/storage/hash_storage.rb
line
136), whereas in the Couch storage, it will return the count of all
documents, regardless of they key parameter (see
https://github.com/jmettraux/ruote-couch/blob/ruote2.1/lib/ruote/couch/database.rb
line
87).  Which is the correct behavior, or is it undetermined (doesn't matter)?

Thanks!
Pat Gannon
Health Services Integration

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to