Skip to content

Disabling ledger needs to be marked in Database #1940

Open
@Cmdv

Description

@Cmdv

When setting the configuration ledger: disabled it seems that the following is run every time db sync is restarted:

update redeemer set fee = null
delete from reward
delete from epoch_stake
delete from ada_pots
delete from epoch_param

This causes a long pause even though it's already been ran.
There are about ~45million redeemer entries (mainnet) so even if they are set to null, for the db to rerun the update will cause a delay.

We can mitigate this by simple adding a value to extra_migration I'm unsure if we can re-enable ledger once it has been disabled so we wouldn't need to deal with removing it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions