Skip to main content
Pedro Werneck's user avatar
Pedro Werneck's user avatar
Pedro Werneck's user avatar
Pedro Werneck
  • Member for 12 years, 7 months
  • Last seen more than 1 year ago
awarded
awarded
awarded
awarded
awarded
awarded
awarded
awarded
revised
How to check innodb history list length?
added 1 character in body
Loading…
accepted
awarded
answered
Loading…
comment
How to check innodb history list length?
It's MySQL 5.6.22 on AWS RDS. Unfortunately, that doesn't work, but I think I figured it out. Thanks.
revised
How to check innodb history list length?
deleted 2 characters in body
Loading…
asked
Loading…
revised
Query 'optimizing' state is taking too long
added 415 characters in body
Loading…
accepted
comment
Query 'optimizing' state is taking too long
The test server, with magnetic disk, took 3 days of idle time to flush all changes from 14M deleted rows. I decided to test again with a server identical to our production, with more RAM and provisioned IOPS, and it took less than one hour. Not perfect, but good enough.
comment
Query 'optimizing' state is taking too long
I tried both, min(id) or min(updated_date), it makes no difference. MySQL docs says the server flushes the buffer when idle or during a slow shutdown . I can't change the innodb_fast_shutdown on Amazon RDS, so the last resort is checking how long it takes to do it while idle.
comment
Query 'optimizing' state is taking too long
That's what I'm doing, but that's not the problem. The problem is how the index affects other queries. Anyway, the 'purges' value doesn't work either. After deleting 6 million rows the min(id) query is taking 1s. I'll check how long it takes to catch up while idle. I wonder how pt-archiver works and how it solves the same problem, if it does.