June 20, 2013

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

get a corresponding FTS_*_DOC_ID… 10 rows in set (0.00 sec) mysql> insertmysql> select * from information_schema.innodb_ft_config; +—————————+———+ | KEY | VALUE | +—————————+———+ | optimize_checkpoint_limit | 180 | | synced_doc_id | 1028261 | | last

Post: Can MySQL temporary tables be made safe for statement-based replication?

…table doesn’t get dropped. It…row *************************** Log_name: mysql-bin.000007 Pos: 271 Event_type: Query Server_id: 1 End_log_pos: 90 Info: insertrow *************************** Last_Errno: 1146 Last_Error: Error ‘Table ‘test.t’ doesn’t exist’ on query. Default database: ”. Query: ‘insert

Post: Percona XtraDB Cluster: Failure Scenarios with only 2 nodes

mysql> insert into percona values (0,’percona2′,’daniel’); Query OK, 1 row affected (0.02 sec) percona2 mysql> select * from percona; +—-+—————+——–+ | id | insertedid = 6, members = 2/3 (joined/total), act_id = 19, last

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

MySQL. This is very helpful for measurement as otherwise we might not catch some long running connections. Now let’s getid: 1 Schema: test Last_errno: 0 Killed: 0 # Query_time: 0.117904 Lock_time: 0.002886 Rows_sent: 1 Rows_examined: 655360 Rows…0.0002 1.00 0.00 INSERT poller_output # MISC 0xMISC 0….

Post: InnoDB Full-text Search in MySQL 5.6: Part 2, The Queries!

…against InnoDB on 5.6.10: mysql: SELECT id, title, MATCH(title, body… OK, now I’m starting to get a little worried. …rows affected (0.00 sec) mysql: INSERT INTO innodb_ft_list2 SELECT * FROM innodb_myisam_stopword; Query OK, 543 rows… may surprise you. That last point bears particular emphasis…

Post: Recovery after DROP & CREATE

gets overwritten. mysql> CREATE TABLE actor ( ->   actor_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, ->   first_name VARCHAR(45) NOT NULL, ->   lastid), ->   KEY idx_actor_last_name (last_name) -> )ENGINE=InnoDB DEFAULT CHARSET=utf8; Query OK, 0 rows… when new record is inserted. But the actual old…

Post: Why audit logging with triggers in MySQL is bad for replication

last. Commit; Now when these statements get run on the slave they will be serialized, thus changing the order of the inserts

Comment: Edge-case behavior of INSERT...ODKU

…benchmarked it, but when I get time I will. I am basing…is all a question of how many rows to insert / update at once. Furthermore, …be a VERY good feature in MySQL. InsODKU would be much better implemented… mean that last_insert_id should return an array of inserted ids, instead of only the last one,…

Post: Full Text Search Webinar Questions Followup

…index before declaring the `FTS_DOC_ID` primary key column properly, MySQL crashed with an out of … you get Sphinx to report which matched? The SHOW META command in Sphinx shows how many rows …data to the MySQL database or else periodically batch-insert data that has changed since last time you …

Post: Implementing efficient counters with MySQL

… special counter table, having say “id” and “counter” columns. Using… have approximately 20 byte rows even for Innodb tables … paramount as if you get it you will be… which processes the views within last hour has to run rather … two tables insert into one and process and truncate another. MySQL offers …