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

Test: Randomly disable the filter cache. #6280

Closed
wants to merge 3 commits into from

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented May 22, 2014

"Randomize all the things"

Relates to #6278 and #6279

@martijnvg
Copy link
Member

nice randomization! LGTM

@s1monw
Copy link
Contributor

s1monw commented May 22, 2014

good stuff!

jpountz added a commit that referenced this pull request May 22, 2014
@jpountz jpountz closed this in a836496 May 22, 2014
@jpountz jpountz removed the review label May 22, 2014
@clintongormley clintongormley changed the title Randomly disable the filter cache. Test: Randomly disable the filter cache. Jul 16, 2014
jpountz added a commit to jpountz/elasticsearch that referenced this pull request Sep 3, 2014
…cIdSet.

A few months ago, Lucene switched from FixedBitSet to WAH8DocIdSet in order
to cache filters. WAH8DocIdSet is especially better when dealing with sparse
sets: iteration is faster, memory usage is lower and there is an index that
helps keep advance fast.

This doesn't break existing code since elastic#6280 already made sure that there was no
abusive cast from DocIdSet to Bits or FixedBitSet and elastic#7037 moved consumers of
the filter cache that absolutely need to get fixed bitsets to their own cache.

Since cached filters will be more memory-efficient, the filter cache size has
been decreased from 10 to 5%. Although smaller, this might still allow to cache
more filters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>test Issues or PRs that are addressing/adding tests v1.3.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants