Skip to content

Comments

Indexer: Improve perf by deferring index DB commit#13

Open
martin-kokos wants to merge 1 commit intodatacoon:masterfrom
martin-kokos:master
Open

Indexer: Improve perf by deferring index DB commit#13
martin-kokos wants to merge 1 commit intodatacoon:masterfrom
martin-kokos:master

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