Skip to content
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

Implement Query.map and Query.map_async. #218

Merged
merged 1 commit into from
Oct 8, 2019

Conversation

chrisrossi
Copy link
Contributor

Fixes #210 .

A couple of features didn't come along with this implementation:

  1. The pass_batch_into_callback argument: This wouldn't make a lot of sense in a query that uses an in-memory post filter and is impossible to do in MultiQuery (a logical query that merges the results of more than one Datastore query). While we could conceivably implement this in the case where a query maps directly onto a Datastore query, the details of the batching seem like an implementation detail that needn't really be exposed to the user. The utility of such a feature is uncertain, as well.

  2. The merge_future argument: This seems to be difficult enough to use that it likely isn't being used. The uses cases it seems to be targeting could probably be better handled by adding some user friendly methods, like Query.reduce or Query.map_iter. At this time we are not aware of anyone using this or needing a work-around.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 8, 2019
Copy link
Contributor

@cguardia cguardia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

query.map() and query.map_async() are no longer implemented
3 participants