Cannot Reproduce
Details
Assignee
UnassignedUnassignedReporter
lpjirasynclpjirasync(Deactivated)Priority
Low
Details
Details
Assignee
Unassigned
UnassignedReporter
lpjirasync
lpjirasync(Deactivated)Priority
Smart Checklist
Smart Checklist
Smart Checklist
Created January 24, 2018 at 8:33 PM
Updated March 4, 2024 at 4:45 PM
Resolved March 8, 2019 at 2:25 PM
**Reported in Launchpad by Daniel Black last update 10-03-2015 23:14:22
When http://bazaar.launchpad.net/~percona-toolkit-dev/percona-toolkit/2.2/view/head:/bin/pt-table-sync#L4013 it creates a temporary table that is replicated. As this create table /insert/drop table are only needed locally they can be run between sql_log_bin=0 ... sql_log_bin={what it was before} to prevent this.
Another micro optimisation is a BTREE PK on the temp table:
"CREATE TEMPORARY TABLE $tmp_db_tbl ($col_def) " ->
"CREATE TEMPORARY TABLE $tmp_db_tbl ($col_def, PRIMARY KEY USING BTREE ($qchunk_col) ) "