I recently altered a table in MySQL 8.0 to with new Primary key and created partitions with them to improve the query performance. which worked fine in main instance. My assumption was that the Partitions and primary key will get transferred to the read replica as well. But It didn’t. even the table structure in the read replica shows the old primary key. will there any significant delay in getting this transferred?
ALTER TABLE ...
? Or do it some other way? Was there a way to say "do this only on the Primary"?CREATE TABLE
before and after the addition of partitions. It is a common misconception that partitioning can magically add performance better than indexing. I have found only 4 cases for that. Maybe you have a 5th for me??