Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

MariaDB Slave cause "Copying to tmp table"

$
0
0

DB: MariaDB 10.0.23 STOP SLAVE; run query SHOW PROFILE;

Status Duration starting 0.000028 Waiting for query cache lock 0.000006

init 0.000004 checking query cache for query 0.000011 checking privileges on cached 0.000005 checking permissions 0.000007 checking permissions 0.000005 checking permissions 0.000005 sending cached result to clien 0.000154 updating status 0.000005 cleaning up 0.000003

After starting slave, long "Copying to tmp table" shows up: START SLAVE; run query EXPLAIN outputs same query plan like before starting the slave. SHOW PROFILE;

Status Duration starting 0.000046 Waiting for query cache lock 0.000007 init 0.000006 checking query cache for query 0.000109 checking permissions 0.000007 checking permissions 0.000005 checking permissions 0.000006 Opening tables 0.000020 After opening tables 0.000009 System lock 0.000007 Table lock 0.000005 After opening tables 0.000007 Waiting for query cache lock 0.000005 After opening tables 0.000031 init 0.000050 optimizing 0.000032 statistics 0.000139 preparing 0.000050 executing 0.000007 Copying to tmp table 0.000025 Copying to tmp table 1.760070 <<<<<<<<<<<<<<<<<<<< Sorting result 0.003707 Sending data 0.000013 end 0.000005 removing tmp table 0.000261 end 0.000006 query end 0.000006 closing tables 0.000010 freeing items 0.000013 updating status 0.000068 logging slow query 0.000008 cleaning up 0.000005


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>