Skip to content

Conversation

@imabdulbasit
Copy link
Contributor

@imabdulbasit imabdulbasit commented Dec 9, 2025

cherry-picked batch insert from #3834

@imabdulbasit imabdulbasit changed the title Ab/reward accounts batch insert optimized batch insert query for reward accounts Dec 9, 2025
@imabdulbasit imabdulbasit changed the title optimized batch insert query for reward accounts optimize batch insert query for reward accounts Dec 9, 2025
@imabdulbasit imabdulbasit force-pushed the ab/reward-accounts-batch-insert branch from 6f145b0 to fa38f1c Compare December 9, 2025 15:11
@imabdulbasit imabdulbasit marked this pull request as ready for review December 9, 2025 15:38
@imabdulbasit imabdulbasit force-pushed the ab/reward-accounts-batch-insert branch from 8e28faf to 85fd42c Compare December 9, 2025 16:05
Copy link
Contributor

@lukaszrzasik lukaszrzasik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM although you might want somebody more familiar with the query service code to have a look as well.

@imabdulbasit imabdulbasit merged commit f088176 into main Dec 23, 2025
118 of 119 checks passed
@imabdulbasit imabdulbasit deleted the ab/reward-accounts-batch-insert branch December 23, 2025 16:18
jbearer added a commit that referenced this pull request Jan 5, 2026
* Delay storage in `add_epoch_root` (#3840)

* optimize batch insert query for reward accounts (#3836)

* WIP: batch inserts

* add tests

* support batch inserts for sqlite

* use batch insert for state update

* clippy

* cleanup

* lint

* use hashmap

* move test to slow-tests

* fix test attempt1

* test w 20k accounts

---------

Co-authored-by: sveitser <sveitser@gmail.com>

* Cargo audit fixes

---------

Co-authored-by: ss-es <155648797+ss-es@users.noreply.github.com>
Co-authored-by: Abdul Basit <45506001+imabdulbasit@users.noreply.github.com>
Co-authored-by: sveitser <sveitser@gmail.com>
Co-authored-by: jbearer <11866082+jbearer@users.noreply.github.com>
jbearer added a commit that referenced this pull request Jan 5, 2026
* Implement light client header fetching

* Fix test merkle trees

* Add assertions for specific errors

* Clean up light client API error handling

* [Bot] Audit fixes (#3859)

* Delay storage in `add_epoch_root` (#3840)

* optimize batch insert query for reward accounts (#3836)

* WIP: batch inserts

* add tests

* support batch inserts for sqlite

* use batch insert for state update

* clippy

* cleanup

* lint

* use hashmap

* move test to slow-tests

* fix test attempt1

* test w 20k accounts

---------

Co-authored-by: sveitser <sveitser@gmail.com>

* Cargo audit fixes

---------

Co-authored-by: ss-es <155648797+ss-es@users.noreply.github.com>
Co-authored-by: Abdul Basit <45506001+imabdulbasit@users.noreply.github.com>
Co-authored-by: sveitser <sveitser@gmail.com>
Co-authored-by: jbearer <11866082+jbearer@users.noreply.github.com>

* Fix error handling tests

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ss-es <155648797+ss-es@users.noreply.github.com>
Co-authored-by: Abdul Basit <45506001+imabdulbasit@users.noreply.github.com>
Co-authored-by: sveitser <sveitser@gmail.com>
Co-authored-by: jbearer <11866082+jbearer@users.noreply.github.com>
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.

5 participants