June 19, 2013

Post: Is Synchronous Replication right for your app?

…a single row (well, the PRIMARY KEY index entry for that row).  This means typically on a single Innodb… This is not implemented for full BEGIN … COMMIT multi-statement transactions since it cannot be assumed …Example 2, above, how above moving the ‘joined’ column to the users_groups table so we don…

Post: Multi Range Read (MRR) in MySQL 5.6 and MariaDB 5.5

… brings. Multi Range Read With traditional secondary index lookups, if the columns that are being fetched do not belong to the secondary index definition… that traditional index lookup (for non-index-only columns) involves, reading an index record, and then using the PK column value in the index record to make a lookup in the PK. Both these lookups are performed in a single call…

Post: Multi Column indexes vs Index Merge

… see index merge indeed improves performance compared to single index only but it is by far better to use multi column indexes. But the problems with Index… combined index in this case. In case you’re using OR between columnssingle column indexes are required for index merge to work and combined indexes can…

Post: Multi-Column IN clause - Unexpected MySQL Issue

… of urls. To save on indexes instead of using URL we index CRC32 of the URL which allows… feature. I should not be surprised though as multi-column in is not the most used MySQL feature… we could simply rewrite query using more standard single column IN clause: mysql> explain SELECT url FROM 106pages….

Post: 3 ways MySQL uses indexes

column in explain plan to see how many index parts are actually used for row lookup. Very common problem I see is multi column indexes… uses single index – there are more complex rules of how indexes will be used if you look at multiple indexes usage with “index merge” Using Index

Comment: How to find wrong indexing with glance view

… drop a few columns from that index without losing any performance. And there’s the problem of mysql choosing single column indexes where multi-column indexes are present, and wasting memory and disk space. I still think that single column indexes make more sense…

Post: On Character Sets and Disappearing Tables

…(32) not null, fkto1 char(32) not null primary key, index(fkfrom1), index(fkfrom2), foreign key (fkto1) references dos1(fkfrom3) ) engine=innodb…-referenced column from INT to SMALLINT, but it will allow us to change from a multi-byte character column to a single-byte character column

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

… need to create an *InnoDB* table with a single VARCHAR column named “value”. OK, sounds easy enough: mysql: … case of GEN_CLUST_INDEX causing me issues, I tried adding a second column to the table which …This may or may not be the case with multi-byte character sets or with ideographic languages such…

Post: MySQL Users Conference - Innodb

…to specify single page size for Innodb table, while data pages and pages for different indexes may …for statement duration for Inserts with auto-increment column. This starts giving you problems if you … for full statement duration. The problem with multi value inserts however is the following – even …

Comment: Why InnoDB index cardinality varies strangely

… is much worse than it is sounds. For single-column indexes we get variations. For multi-column indexes we have problems. Lets consider CREATE TABLE T…. In their opinion the behavior is inherent, as sampling of indexes happen independently. I guess, expectations of optimizer are: 1) x1…