IntersectMBO / cardano-db-sync

A component that follows the Cardano chain and stores blocks and transactions in PostgreSQL
Apache License 2.0
290 stars 162 forks source link

Redundant indexes already done by uniques constraints #1326

Open jbgi opened 1 year ago

jbgi commented 1 year ago

Some indexes are not necessary because already part of composite indexes :

kderme commented 1 year ago

Is this for 13.1.0.0.? Many things have vhanged there related to indexes and unique keys

jbgi commented 1 year ago

13.0.4

kderme commented 1 year ago

In 13.1.0.0 most unique keys are removed and most indexes are create after syncing has almost completed. Possible there are still unecessary indexes though that take space.

Btw 13.0.4 has a critical issue that 13.0.5 fixes https://github.com/input-output-hk/cardano-db-sync/issues/1222