-
Notifications
You must be signed in to change notification settings - Fork 455
Implement functionality for removing blocks stored in temp table #3776
Comments
@michielmulders will do the analysis before the next sprint grooming meeting. |
Discussion ConclusionBoth option 1 and 2 were preferred so the meeting ended with voting. Meeting notesThree options:
When writing to DB, you have the benefit of using rollback/commit. For FCS, it makes more sense to use quick file storage as only 202 blocks at max will be written. For BSM, potentially much more blocks will be written to a temp file, DB makes more sense here. Finalization after 160+- blocks, no impact on BSM. For the sake of consistency, we should opt for a temp table for Counter-argument: Everything related to blockchain is persisted to Postgres, everything not related/non-persistent is stored outside. On startup, check if tables are empty - what to do if data is present in temp storage? |
Implement isEmpty and truncate for temp_block - Closes #3776
Expected behavior
Should be able to remove blocks stored in temp table and implement a check to see if the table is present/holds records.
Which version(s) does this affect? (Environment, OS, etc...)
feature/improve-bft
The text was updated successfully, but these errors were encountered: