Quantcast
Channel: WordPress.org Forums » [Index WP MySQL For Speed] Support
Viewing all articles
Browse latest Browse all 46

What’s the impact of changing the primary key? (breaks multithreading mydumper)

$
0
0

Replies: 1

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!


Viewing all articles
Browse latest Browse all 46

Trending Articles