June 20, 2013

Post: Statement based replication with Stored Functions, Triggers and Events

….17-22.1. AUTO INCREMENTAL VALUES In order to have the same auto incremental values on master and slaves the actual used auto incremental value is logged as an…); Binary Log: The value 4 is inserted with the INSERT statement and the INSERT_ID is the next auto incremental value: #111214 21:54…

Post: Efficient Boolean value storage for Innodb Tables

… Max_data_length: 1970324836974591 Index_length: 1024 Data_free: 0 Auto_increment: NULL Create_time: 2008-04-24 00:41:01 Update… Max_data_length: 1970324836974591 Index_length: 1024 Data_free: 0 Auto_increment: NULL Create_time: 2008-04-24 01:14:06 Update… convenient to work with. Using NULL as one of flag values means you can’t use normal “=” comparison operator with them…

Post: Stored Function to generate Sequences

… use sequences instead of MySQL auto_increment columns ? Leaving aside more exotic ways of sequences even pure sequential value as in the case… 5.0 you may with to use them instead of auto_increment with Innodb tables to avoid short term “table level locks… innodb sets when Insert is happening in the table with auto_increment values. It is also helpful if you need to decouple ID…

Comment: Sharing an auto_increment value across multiple MySQL tables

… of each table, so I it is safe to use auto_increment on each shard (if you need to identify insert order… some_sharded_table( shard_key int, some_child_key bigint auto_increment not null, key(some_child_key), primary key (shard_key… the increased length of the secondary key used for the auto_increment value. You can use the primary key index to get the…

Post: InnoDB Full-text Search in MySQL 5.6 (part 1)

… dir_test_innodb4 (fts_doc_id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY); ERROR 1166 (42000): Incorrect column name ‘fts_doc… something to provide some sort of sequence value for that column, whether as an auto_increment value or via some other means, but the… sec) mysql> select * from information_schema.innodb_ft_config; +—————————+———+ | KEY | VALUE | +—————————+———+ | optimize_checkpoint_limit | 180 | | synced_doc_id | 1032677 | | last_optimized…

Post: What's up with HandlerSocket?

… MySQL interface. No support for auto increment – Exactly as it sounds, you couldn’t have auto-incrementing columns get an auto increment value on insert. Distribution Lots…

Comment: INSERT ON DUPLICATE KEY UPDATE and REPLACE INTO

…, but there is a question in my head: If the auto-increment primary key is 7 now (for example), after doing REPLACE… row or less than 7, what will be the next auto-increment value? will it be 8 or 9?

Comment: Should we give a MySQL Query Cache a second chance ?

… foo disable query_cache; create table bar (id int(4) auto_increment, value varchar(255)) disable query_cache; Not that I’m sure…

Comment: Should we give a MySQL Query Cache a second chance ?

… foo disable query_cache; create table bar (id int(4) auto_increment, value varchar(255)) disable query_cache; Not that I’m sure…

Comment: Hacking to make ALTER TABLE online for certain changes

… `dbname`.`tablename`;” 5. change `dbname`.`tablename` -> `dbname`.`tablename2` 6. change auto_increment value at the last line 7. execute 8. shutdown mysql server…