May 25, 2012

Post: Beware of MySQL Data Truncation

…range value adjusted for column ‘article_id’ at row 1 | +———+——+————————————————————–+ 1 row in set (0.00 sec) MySQL optimizer behaves …out of range what could be stored in the column) it truncates the value, performs index lookup, scanning all rows…

Post: MySQL automatic data truncation can backfire

… unsigned 32bit values which did not fit in this column any more so MySQL was silently converting them to 2^32-1… values which can possibly be in the database we have MySQL truncating this value to 2^32-1, then performing index ref… cardinality for this constant is low) and discarding all of them before no values matched supplied key value. So beware, data truncation can…

Post: Ultimate MySQL variable and status reference list

MySQL…show_column_typesblogpercona…data_pending_readsblogpercona.commanual Innodb_data_pending_writesblogpercona.commanual Innodb_data_readblogpercona.commanual Innodb_data_readsblogpercona.commanual Innodb_data_writesblogpercona.commanual Innodb_data…unsafe_for_binlogblogpercona…Innodb_truncated_status…

Post: A quest for the full InnoDB status

… the limit. MySQL in such situation truncates the output so…. file located in MySQL data directory. Unfortunately this is …The file is actually used for every SHOW ENGINE InnoDB …mysql 12u REG 253,10 0 16 /tmp/iblnLBhO (deleted) The 4th column contains file descriptor numbers and in the 7th column

Post: Converting Character Sets

…mediumtext. This approach can result in modified data types and silent data truncation, which makes it unacceptable for our purposes. Approach #2 (outlined …for a target column Comma-separated. NO SPACES. table.column –ignore-tables A comma-separated list of tables to ignore –password|p The MySQL

Post: Identifying the load with the help of pt-query-digest and Percona Server

… logging atomically, not just for new connections as in MySQL. This is very helpful for measurement as otherwise we…9% 4 0.0192 1.00 0.00 TRUNCATE TABLE poller_time # 14 0x3E84BF7C0C2A3005 0.0624 0…._name column, or you might even compress the values stored in the option_value column so that less data

Comment: MySQL Server Memory Usage

…_show_collations’, ’176788′ ‘Com_show_column_types’, ’0′ ‘Com_show…’ ‘Com_stmt_send_long_data‘, ’0′ ‘Com_truncate‘, ’0′ ‘Com_unlock_tables’, …mysql.sock pid-file=/var/run/mysql/mysql.pid datadir=/db/disk2/mysql/data log-bin=/var/log/mysql/log log-slow-queries=/var/log/mysql…32M # Only for MyISAM which …

Comment: To UUID or not to UUID ?

truncated SHA1 (GUIDs) you can do some cool stuff. 1. If you’re using client side sharding of data…IO since you’re now using a smaller column. You also get to potentially drop another index…build larger clustered databases. I just with MySQL had support for showing varbinary values on the console …

Comment: High-Performance Click Analysis with MySQL

… another or switch. – we aggregate some data directly on runtime servers, then in intermediate MySQL nodes and finally when building reporting-ready… gets too big, we just delete it. Raw data required for aggregates processing is truncated daily. – we do not use a lot of… compact. After all, MySQL is not column oriented storage, so big tables should have the smallest row length possible for faster access. It…

Post: Implementing efficient counters with MySQL

… not only fetch the data but also update the view counter. For smaller single system web …, having say “id” and “counter” columns. Using separate table for updates already solves the problem in … tables insert into one and process and truncate another. MySQL offers atomic RENAME TABLE call which can …