Is there a formula to estimate index size in InnoDB?

后端 未结 2 2084
感动是毒
感动是毒 2021-02-11 09:42

How is it possible to calculate index size for specific column types in InnoDB i.e.:

  • VARCHAR
  • CHAR
  • TIMESTAMP
  • SMALLINT

I\'v

2条回答
  •  爱一瞬间的悲伤
    2021-02-11 10:22

    One secondary index record is indexed fields + primary key. Sum up field sizes, multiply by number of records, add some overhead and that would be index size.

提交回复
热议问题