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

Add parallel query to all shards #20

Merged
merged 2 commits into from
Feb 3, 2016
Merged

Conversation

hirocaster
Copy link
Owner

No description provided.

it "maps in parallel" do
expect(instance.map(&:count).reduce(&:+)).to eq 0
model_class.put!(name: "Alice")
expect(instance.map(&:count).reduce(&:+)).to eq 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Style/CollectionMethods: Prefer inject over reduce.

it "maps in parallel" do
expect(instance.map(&:count).reduce(&:+)).to eq 0
model_class.put!(name: "Alice")
expect(instance.map(&:count).reduce(&:+)).to eq 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Style/CollectionMethods: Prefer reduce over reduce.

hirocaster added a commit that referenced this pull request Feb 3, 2016
@hirocaster hirocaster merged commit d2e423d into master Feb 3, 2016
@hirocaster hirocaster deleted the parallel-to-all_shards branch February 3, 2016 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants