-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select columns when query #10
Comments
I guess that riak is unstructured and object( |
@developerworks It's certainly possible to implement this in the adapter. When we're querying by anything other than the ID, we're using the Solr interface instead of the KV interface. And Solr does support specifying the fields we want to retrieve. This is supported in
When querying via the KV interface, we always get the complete map from the database. But we can still respect the |
You means, if i want to specifying the fields we want to retrieve, i must use the |
@developerworks The call to is done here: https://github.com/pma/riak_ecto/blob/master/lib/riak/connection.ex#L74 To support specifying a subset of fields to be retrieved, we would have to properly handle Ecto.Query in Riak.Ecto.NormalizedQuery.all/2 and make sure it's passed down to the point where we pull the data from Riak. |
When i run it in IEx, error riased:
The text was updated successfully, but these errors were encountered: