- MySQL 8 for Big Data
- Shabbir Challawala Jaydip Lakhatariya Chintan Mehta Kandarp Patel
- 272字
- 2021-08-20 10:06:10
Important notes about InnoDB
Executing a simple statement like SELECT count(*) FROM [table name] without having indexes in place would be very slow as it does a full table scan to retrieve data. If you want to use count query frequently in the InnoDB table, it is suggested you create triggers on insert and delete operations, after which you can increase or decrease counters when records are inserted or deleted, which would help you achieve better performance.
InnoDB is a multiversion concurrency control (MVCC) storage engine that keeps information of old versions of changed rows to support the transaction and rollback features, which comes in very handy in case of data integrity or failure.
To optimize InnoDB table performance, the following are a few settings that we can use in my.cnf settings. However, it would vary based on your environment and databases.
- innodb_open_files=300: This defines the maximum number of open files which it can keep open while working with the innodb_file_per_table mode.
- innodb_buffer_pool_size = 128M: This specifies the pool size in memory which can be used to cache the indexes and table data. This is one of the important aspects to tune the InnoDB table. We can increase this value based on RAM size on the server.
- innodb_thread_concurrency = 8: This setting is used for a number of concurrent threads to be used to process the request that is derived based on the number of CPUs available.
- Apache Hive Essentials
- 從程序員到架構師:大數據量、緩存、高并發、微服務、多團隊協同等核心場景實戰
- 碼上行動:零基礎學會Python編程(ChatGPT版)
- Koa開發:入門、進階與實戰
- 深入理解Java7:核心技術與最佳實踐
- Learning ArcGIS for Desktop
- jQuery炫酷應用實例集錦
- MySQL從入門到精通(軟件開發視頻大講堂)
- Webpack實戰:入門、進階與調優(第2版)
- Java 從入門到項目實踐(超值版)
- 愛上C語言:C KISS
- 人人都能開發RPA機器人:UiPath從入門到實戰
- 和孩子一起學編程:用Scratch玩Minecraft我的世界
- 現代C++語言核心特性解析
- Instant AppFog