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

Pooling inserts to to decrease database transactions #16

Open
Muusssi opened this issue Jun 16, 2020 · 0 comments
Open

Pooling inserts to to decrease database transactions #16

Muusssi opened this issue Jun 16, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Muusssi
Copy link
Member

Muusssi commented Jun 16, 2020

The current architecture is far from optimal when it comes to transactions for inserting data to the database. Specifically inserting items such as keywords, tags and log messages could be pooled to far less transactions since they do not require any returned information. Currently each of these items are inserted using individual transactions.

If properly implemented, this would bring considerable performance improvements especially when connection happens over network.

For example pooling insert_or_ignore type transactions could be pooled quite easily without creating big changes to the overall architecture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant