In wamp I am using mysql 5.7.14
It's enough?
To start, if from phpmyadmin login to view the sales table with 5million registration, the first page shows it immediately.
But if I go to the last page it takes:
Showing rows 4475300 - 4475300 (4475301 total, Query took 11.6134 seconds.)
Without doing any join or anything is already taking 11 seconds.
The minimum structure of the table is:
Table name: sales
Primary key: NUM
Other fields, a, b, c, etc.
The query I'm running is:
SELECT NUM FROM SALES
But if I remove the revision of foreign keys takes between 1.6sec and 2.6sec.
SET FOREIGN_KEY_CHECKS = 0;
I definitely do not use CASCADE since it is a web system and has to go extremely fast.
Is it okay to disable the patch?
If I have to say that I use indexes: PRIMARY_KEY, INDEX and UNIQUE