You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should remove the duplicate indexes and the exp_asset_stats table. Removing duplicate indexes will improve write performance and reduce storage space for Horizon's db.
The text was updated successfully, but these errors were encountered:
I noticed today that there is a duplicate index on the id column of the history transactions table:
https://github.com/stellar/go/blob/master/services/horizon/internal/db2/schema/migrations/1_initial_schema.sql#L247
https://github.com/stellar/go/blob/master/services/horizon/internal/db2/schema/migrations/1_initial_schema.sql#L344
I thought that there might be more duplicate indexes so I ran the sql queries here to detect if there were more:
I've confirmed that
hs_ledger_by_id,index
,history_ledgers_on_id
are also duplicate indexes.Also, it seems that we forgot to drop the
exp_asset_stats
table in https://github.com/stellar/go/blob/master/services/horizon/internal/db2/schema/migrations/32_drop_exp_history_tables.sqlWe should remove the duplicate indexes and the
exp_asset_stats
table. Removing duplicate indexes will improve write performance and reduce storage space for Horizon's db.The text was updated successfully, but these errors were encountered: