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

Use SQLite transactions when inserting Cardano Transactions and Block Range Roots #1656

Closed
3 tasks done
jpraynaud opened this issue Apr 29, 2024 · 0 comments · Fixed by #1666
Closed
3 tasks done

Use SQLite transactions when inserting Cardano Transactions and Block Range Roots #1656

jpraynaud opened this issue Apr 29, 2024 · 0 comments · Fixed by #1666
Assignees
Labels
performances 🥇 Performances

Comments

@jpraynaud
Copy link
Member

jpraynaud commented Apr 29, 2024

Why

We can have a better insertion throughput if we use transactions in SQLite (see https://stackoverflow.com/questions/1711631/improve-insert-per-second-performance-of-sqlite).
This can be used to accelerate the insertion on Cardano transactions and block range roots on the signer and aggregator.

What

Create insert queries inside a transaction when importing the Cardano Transactions and block range roots.

How

  • Create a benchmark for current implementation
  • Add SQLite transactions when importing Cardano Transactions and block range roots
  • Measure the performance optimization between the two versions

After

  • Assess the relevance of adding SQLite transactions when importing block range roots
  • How can we deploy this optimizations on the other store of signer/aggregator (do we need to pool connections to database?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performances 🥇 Performances
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants