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

[BUG] Long lock duration when multiple batches try to update the same position record #687

Closed
purplesmoke05 opened this issue Aug 28, 2024 · 0 comments · Fixed by #688
Closed
Assignees
Labels
bug Something isn't working

Comments

@purplesmoke05
Copy link
Member

Describe the bug

  • In the indexer batch container, the indexer_position_bond.py and indexer_position_share.py scripts process events from the dvp contract.
  • During this process, both batches unintentionally attempt to update the same position record concurrently.
  • This results in a long query.

Expected behavior

  • Each batch should handle the events related to their own token type.
@purplesmoke05 purplesmoke05 added the bug Something isn't working label Aug 28, 2024
@purplesmoke05 purplesmoke05 self-assigned this Aug 28, 2024
YoshihitoAso added a commit that referenced this issue Aug 30, 2024
Fix long query due to indexer position batches updating the same position record
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant