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

Indexer: Improve perf by deferring index DB commit #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

martin-kokos
Copy link

Since we're writing to a local sqlite, we're not worried about losing connection to a remote DB and losing consistency, so we can defer the commit until the end.

This speeds up indexing by about 30x.

Since we're writing to a local sqlite, we're not worried
about losing connection to a remote DB and losing consistency,
so we can defer the comit until the end.
@martin-kokos
Copy link
Author

My editor removed some trailing whitespace too.

@ivbeg
Copy link
Contributor

ivbeg commented Aug 19, 2024

@martin-kokos thanks, I considered to replace sqlite with duckdb to speedup analytics after data processing.

@ivbeg ivbeg self-assigned this Aug 19, 2024
@martin-kokos
Copy link
Author

That's a separate topic, I think.

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