You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, both these methods involve a call to GetLedgerRange to get the current RPC range and then subsequent calls to the DB to get different ledger close meta. This introduces a race condition where ingestion can happen between these 2 calls and change the ledger range snapshot in the db.
To mitigate this, we want to use a single DB transaction throughout the entire lifecycle of the request.
The text was updated successfully, but these errors were encountered:
aditya1702
changed the title
Use a single DB transaction within getTransactions and getEvents
Use a single DB transaction within getTransactionsDec 16, 2024
Currently, both these methods involve a call to
GetLedgerRange
to get the current RPC range and then subsequent calls to the DB to get different ledger close meta. This introduces a race condition where ingestion can happen between these 2 calls and change the ledger range snapshot in the db.To mitigate this, we want to use a single DB transaction throughout the entire lifecycle of the request.
The text was updated successfully, but these errors were encountered: