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

Collect from Feeder Gateway in separate transactions (with locking) #488

Merged
merged 1 commit into from Sep 14, 2023

Conversation

adamiak
Copy link
Member

@adamiak adamiak commented Sep 14, 2023

Resolves L2B-2435

This is because we want to commit and not lock the table for longer than necessary

This is because we want to commit and not lock the table for longer than necessary
@adamiak adamiak added this pull request to the merge queue Sep 14, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 14, 2023
@torztomasz torztomasz added this pull request to the merge queue Sep 14, 2023
Merged via the queue into master with commit e66b6a4 Sep 14, 2023
4 checks passed
@torztomasz torztomasz deleted the refactor-fg-collector-locking branch September 14, 2023 10:34
@linear
Copy link

linear bot commented Sep 14, 2023

L2B-2435 In FeederGatewayCollector, make transactions per state update

…because currently we make one transaction for the whole collection process, which in theory should lock the table for a very long time, (and possibly causes memory leaks somewhere?? maybe not)

In short: put lock-tx inside loop, not outside

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.

None yet

2 participants