DBSync currently either stores the entire ledger state data, such as stake distribution, or none at all if the ledger option is disabled. However, many applications only need the latest ledger state rather than historical data. A new configuration option could allow DBSync to populate ledger-related tables only from a specified epoch onward, or within a defined window, for example, the last five epochs from the chain tip.
DBSync currently either stores the entire ledger state data, such as stake distribution, or none at all if the ledger option is disabled. However, many applications only need the latest ledger state rather than historical data. A new configuration option could allow DBSync to populate ledger-related tables only from a specified epoch onward, or within a defined window, for example, the last five epochs from the chain tip.