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

Fix sampling of lucene index size #6963

Merged
merged 1 commit into from Apr 20, 2016
Merged

Fix sampling of lucene index size #6963

merged 1 commit into from Apr 20, 2016

Conversation

davidegrohmann
Copy link
Contributor

Since when we iterate over all the terms in the lucene index, lucene
will return also the term that has been deleted and not in use anymore
untill the next index compaction. This is not a huge problem per se
for computing index selectivity, but we were using this skewed numbers
also for the index size. This commit will fix the index size to be
computed correctly by asking lucene the number of documents present in
the index.

Since when we iterate over all the terms in the lucene index, lucene
will return also the term that has been deleted and not in use anymore
untill the next index compaction.  This is not a huge problem per se
for computing index selectivity, but we were using this skewed numbers
also for the index size.  This commit will fix the index size to be
computed correctly by asking lucene the number of documents present in
the index.
@craigtaverner craigtaverner merged commit 2d56d91 into neo4j:2.2 Apr 20, 2016
@craigtaverner craigtaverner deleted the 2.2-fix-lucene-index-sampling branch April 20, 2016 15:07
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