[stellar/stellar-core] Consider emiting limited meta data when possible (#1756)

Right now we populate the `txhistory` tables (and related) for the «worst case», regardless of utilization.

For validators that don’t have horizon, this is wasteful as the only data needed is the one that is used as part of history publish, so we can disable things like all meta data related columns (probably 90% of the database), columns such as `txhistory::txmeta` (contain before and after values for all ledger entries that were touched by that transaction) and all of `txfeehistory` and `upgradehistory`.

As the resulting data set would be a lot smaller, it may make sense to allow configuration for this as it avoids bloating the database, which reduces hardware requirements for running a standalone full validator.

Добавить комментарий