- 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;
推薦閱讀
- AngularJS入門與進階
- Node.js 10實戰
- Learning Docker
- CentOS 7 Server Deployment Cookbook
- The DevOps 2.4 Toolkit
- Web程序設計(第二版)
- Python項目實戰從入門到精通
- HTML5移動前端開發基礎與實戰(微課版)
- 超好玩的Scratch 3.5少兒編程
- 你真的會寫代碼嗎
- 計算機應用基礎案例教程(第二版)
- 現代JavaScript編程:經典范例與實踐技巧
- Web程序設計與架構
- Internet of Things with Arduino Cookbook
- Boost.Asio C++ Network Programming Cookbook