June 20, 2013

Post: Living with backups

…just dumps all MySQL tables into a …be preferred by the I/O scheduler over random I/O coming from MySQL, but also such largebeing filled with random information additional I/O occur slowingMySQL data files do not comply with this requirement. The trick could be used here perhaps to read the file with

Post: MySQL extensions for hosting

being used at all and could be candidates for dropping. All the patch features will surely beslow log live, but that is a bit ugly solution. That is where this patch can be very useful. With simple MySQL

Post: Finding out largest tables on MySQL Server

tables on MySQL instance is no brainier in MySQL 5.0+ thanks to Information Schema …or may be there is long primary key with Innodb tables. Of course it also could be perfectly fine tables but …be rather slow if you have a lot of large tables. On this instance it took 2.5 minutes to run for 450 tables

Post: MySQL: Followup on UNION for query optimization, Query profiling

Be careful however with these nested IN clauses. MySQL has to internally build all possible combinations for row retrieval which ma become very slowcould only do it on idle box so as in MySQLtable: mysql

Post: Logging MySQL queries from the client instead of the server

slow query log” is the single most valuable way to examine query execution on your MySQL server. Queries are logged with… that nobody could get into … the potentially large and hard…table and then use SQL to analyze the queries; but this is quite a bit harder, because similar queries need to be

Post: Fighting MySQL Replication Lag

… updates instead of one large update to help MySQL replication lag it…table scan in MySQL 5.0 (even if there are no spam posts) which will load slave significantly. You can replace it with… (list of ids) If there could be many ids matched on the … simply space it out and slow down your batch job (such …

Post: MySQL Session variables and Hints

… even though it also can be quite helpful and I believe …some complex way) – adding extra MySQL calls with possibly their own error control is… could do something like: SELECT SQL_SORT_BUFFER_SIZE=50000000 NAME FROM LARGE_TABLE …log (ie slow queries log) and SHOW PROCESSLIST so once could take it …

Post: Long PRIMARY KEY for Innodb tables

with 1 IO not with 2 IOs as with non-clustered tables. The…large MyISAM tables in case of MySQL/System crash is painful and great to betable scan for this table would also be slow as it is quite fragmented. Table however is not getting any table… ? In this case we could have multiple thumbnail sizes…

Post: The perils of InnoDB with Debian and startup scripts

…as largebe extremely slow…We couldwith everything else going on. Look what happens: mysql> show processlist; +——+——————+—————-+————- | Id | User | State | Info +——+——————+—————-+————- | 7 | debian-sys-maint | NULL | CHECK TABLE

Post: What do we optimize with mk-query-digest ?

… – general system overload, row level locks, table locks all could cause query response time to be unreasonable. If Slowest query is not interactive… perfectly possible to get bad performance with MySQL responsible for large portion of response time without any slow queries. We’ve seen pages which…