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

Use collectExistingBucket() if a bucket already exists #5955

Conversation

martijnvg
Copy link
Member

In the case if a bucket already exists the resize check in collectBucket() is redundant, so instead aggregations should use collectExistingBucket() instead which doesn't check for resize or grows the docCount array.

@jpountz
Copy link
Contributor

jpountz commented Apr 28, 2014

LGTM

@martijnvg martijnvg removed the review label Apr 29, 2014
@martijnvg martijnvg closed this in fc3efda Apr 29, 2014
martijnvg added a commit that referenced this pull request Apr 29, 2014
…t ord has been hit, that already exists.

Closes #5955
jpountz added a commit that referenced this pull request Apr 30, 2014
jpountz added a commit that referenced this pull request Apr 30, 2014
martijnvg added a commit that referenced this pull request Apr 30, 2014
martijnvg added a commit that referenced this pull request Apr 30, 2014
@martijnvg martijnvg deleted the improvements/aggs_collectExistingBucket branch May 18, 2015 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants