June 19, 2013

Comment: Slow Query Log analyzes tools

hours worth of dump data, the script will run for 60 hours replaying it. This was important forfor our purposes (usually). foreach (sort keys %{$queries{$conn}}) { my $dt = $_; while((time() – $offset) connect(“DBI:mysql…prepare($_); $sth->execute(); $sth->finish(); } } $dbh->disconnect(); ###print “…

Comment: Solving INFORMATION_SCHEMA slowness

…procedures. It was taking the tool about one hour just to finish this query: “SELECT table_schema, table_name … rest of the percona tools that use the MySQL INFORMATION_SCHEMA ) allowing it to momentarily set innodb_… kind of queries), and leave the original value for that variable after it finishes. …

Post: Converting Character Sets

… have begun to migrate their databases to utf8.  Googling formysql convert charset to utf8″ results in a plethora of sites…) Add FULLTEXT indexes back For those of us routinely waiting hours, if not days, for a single alter statement to finish, this is unacceptable…) Usage: convert_charset –database=database [options] Options: –askpass Prompt for a MySQL password –charset The target character set to convert to –collate…

Comment: Why MySQL could be slow with large tables ?

…(we actually) getting reprimanded for sending queries that take a long time to finish. (30min up to 2/3 hours). My queries are… partially de-normalised state and then loading them into the MySQL server. I suspect that this may make things faster. (At…, thereby minimising load on the main server or even the mysql server. (running on 5.0, so I can’t even…

Post: Some fun with R visualization

My previous post I finished with the graph with unstable results. There I won’t … for 4 and 16 tables cases running MySQL 5.5.20. Let me remind how I do measurements. I run benchmark for 1 hours

Comment: Innodb Performance Optimization Basics

…buffer_pool_size). The MyISAM table finishes approximately 4 times faster than the … “Start Time for InnoDB: ” . $time_start . “\n”; $db = mysql_connect(“localhost”,”user”,”password”); for ($i=1;$i MyISAM results: 1532.69 seconds. (25.54 minutes) InnoDB results: 6815.43 seconds. (1 hour