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

perf: use batch cursor for full DB scan #94

Merged
merged 1 commit into from Dec 25, 2020
Merged

Conversation

nolanlawson
Copy link
Owner

Yet another alternative to #91 and #93. Just replaces the current single-item cursor with a batched cursor.

Perf improves from ~400ms to ~150ms using the benchmark described in the code comments, and nothing about the DB structure had to change. The code size did grow a slight amount.

@nolanlawson nolanlawson merged commit e5b1750 into master Dec 25, 2020
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.

None yet

1 participant