inaka / sumo_db

Erlang Persistency Framework
http://inaka.github.io/sumo_db/
Apache License 2.0
174 stars 37 forks source link

Riak is not correctly matching by id #192

Closed elbrujohalcon closed 8 years ago

elbrujohalcon commented 9 years ago

This is what Riak store thinks right now about the given conditions:

%% If the key field is present in the conditions, we are looking for a
%% particular document. If not, it is a general query.

We need to change it to:

%% If **ONLY** the key field is present in the conditions, we are looking
%% for a particular document. Otherwise, it is a general query.