Replies: 1 comment 2 replies
-
|
Great job, @rachit77! The only suggestion I have is to check if the data already exists in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion is meant for resolving Issue #120
Table:
sync_taskstaskblockprocessedTable:
unresolved_batchescomposite key: (num, hash)
numhashTable:
offchain_datakeyvaluebatch_numCurrent Workflow:
offchain_datatable with a default batch number of0, as the sequence provided by the sequence sender does not contain a batch number.unresolved_batchestable.unresolved_batchestable, updates the batch number in theoffchain_datatable, and deletes the corresponding entries from theunresolved_batchestable after processing.Identified Issue:
Data Integrity Problem:
offchain_datatable occasionally encounters primary key violations, leading to data integrity issues.offchain_datatable.Impact on the System:
offchain_datatable. This is because the logic for detecting batch gaps relies on the presence of batch numbers in the table.Discussion:
offchain_datatable.Proposed Solution:
batch_numcolumn from theoffchain_dataandunresolved_batchestables.unresolved_batchestable.unresolved_batchestable and checks if the corresponding data exists in theoffchain_datatable.offchain_datatable.Beta Was this translation helpful? Give feedback.
All reactions