Partitioning is a process in which a single larger table is split into several smaller tables (physically) and still considered as a single table.It is generally a good idea for the tables whose size is in a few 100 GB’s.
While performing select,update,delete operations in a partitioned tables, we can notice a better performance in queries .This simple process of optimization is called partition pruning in which we can avoid scanning the certain partitions which does not have any matching values based on partition key.
The following example will explain you in detail about the partition pruning
Here I have used an Amazon linux 2 machine
Hardware Info 1 core CPU 1 GB RAM 20 GB Disk (SSD) maximum of 3000 IOPS
MySQL 5.7 is installed in this machine and two tables (one is not partitioned and other is partitioned) with 1.7 million records of same data is loaded in using …
[Read more]