What’s the impact of changing the primary key? (breaks multithreading mydumper)
-
Hi,
I use mydumper / myloader to transfer the db extremely fast between staging dev and production. Now wp_options and wp_postmeta are huge, so even with multi-threading on, in the end it takes forever for the last two threads to finish building these two tables when the dump cannot be split.
But splitting in mydumper is only available with a numeric primary key.
Now I manually changed the primary key back to the original one for these two tables (kept the old primary as unique key), and indeed the dumping and loading works way faster now.
Could you elaborate on what is the penalty here? what kind of queries will be slower, and on what order of magnitude?
Thank you!
- You must be logged in to reply to this topic.