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
-
This discussion is meant for resolving Issue #120
Table:
sync_tasks
task
block
processed
Table:
unresolved_batches
composite key: (num, hash)
num
hash
Table:
offchain_data
key
value
batch_num
Current Workflow:
offchain_data
table with a default batch number of0
, as the sequence provided by the sequence sender does not contain a batch number.unresolved_batches
table.unresolved_batches
table, updates the batch number in theoffchain_data
table, and deletes the corresponding entries from theunresolved_batches
table after processing.Identified Issue:
Data Integrity Problem:
offchain_data
table occasionally encounters primary key violations, leading to data integrity issues.offchain_data
table.Impact on the System:
offchain_data
table. This is because the logic for detecting batch gaps relies on the presence of batch numbers in the table.Discussion:
offchain_data
table.Proposed Solution:
batch_num
column from theoffchain_data
andunresolved_batches
tables.unresolved_batches
table.unresolved_batches
table and checks if the corresponding data exists in theoffchain_data
table.offchain_data
table.Beta Was this translation helpful? Give feedback.
All reactions