官术网_书友最值得收藏!

  • MySQL 8 for Big Data
  • Shabbir Challawala Jaydip Lakhatariya Chintan Mehta Kandarp Patel
  • 111字
  • 2021-08-20 10:06:04

Supporting invisible indexes

MySQL 8 provides you with a feature to make indexes invisible. These kind of indexes cannot be used by the optimizer. In case you want to test the query performance without indexes, using this feature you can do so by making them invisible rather than dropping and re-adding an index. This is a pretty handy feature when indexing is supposed to be dropped and recreated on huge datasets.

All indexes are visible by default. To make them invisible or visible, INVISIBLE and VISIBLE keywords are used respectively, as described in the following code snippet:

ALTER TABLE table1 ALTER INDEX ix_table1_col1 INVISIBLE;
ALTER TABLE table1 ALTER INDEX ix_table1_col1 VISIBLE;
主站蜘蛛池模板: 珠海市| 临海市| 密云县| 六枝特区| 淮安市| 凤凰县| 九龙县| 钟山县| 南充市| 大埔区| 留坝县| 凭祥市| 景洪市| 花垣县| 鞍山市| 柏乡县| 盐池县| 商水县| 海南省| 苗栗市| 长岛县| 军事| 隆回县| 昌都县| 图木舒克市| 常德市| 遵义市| 简阳市| 楚雄市| 安溪县| 平定县| 武宣县| 金门县| 巴林右旗| 阜平县| 扎囊县| 简阳市| 浮山县| 衡阳市| 靖边县| 长乐市|