We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think that with concurrent writes to DB there is a small chance that insert into slot table will create invalid data.
Scenario: function update_slot from RPC produce 3 updates per slot processed, confirmed and rooted in that order
update_slot
processed
confirmed
rooted
Now we have concurrent writes to DB: if we write them in order root, confirmed, processed then we have incorrect data in DB
root
INSERT INTO slot (slot, parent, status, updated_on) \ VALUES ($1, $2, $3, $4) \ ON CONFLICT (slot) DO UPDATE SET parent=excluded.parent, status=excluded.status, updated_on=excluded.updated_on
Am I correct?
The text was updated successfully, but these errors were encountered:
lijunwangs
No branches or pull requests
I think that with concurrent writes to DB there is a small chance that insert into slot table will create invalid data.
Scenario:
function
update_slot
from RPC produce 3 updates per slotprocessed
,confirmed
androoted
in that orderNow we have concurrent writes to DB:
if we write them in order
root
,confirmed
,processed
then we have incorrect data in DBAm I correct?
The text was updated successfully, but these errors were encountered: