Tag Info

New answers tagged

3

Conditions with OR are harder for the optimizer than conditions with AND only. Two or more range conditions (>, >=, <, <=, BETWEEN, LIKE 'search%') are harder than conditions with equality only or with only one range. Your query has both the above difficulties. Noticing that it is equivalent to this rewriting: WHERE ( languageId = 3 AND ...


0

I think you need a third table, orders, which connects the items and persons. Tables CREATE TABLE IF NOT EXISTS `persons` ( `person_id` int(4) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, PRIMARY KEY (`person_id`) ); CREATE TABLE IF NOT EXISTS `items` ( `item_id` int(4) NOT NULL AUTO_INCREMENT, `item_type` varchar(50) NOT NULL, ...


0

By default, pt-table-checksum displays as result all tables even if there is no error or diffs. If you want to display just errors and diffs you can add the --quiet to the invocation of pt-table-checksum Print only the most important information (disables --progress). Specifying this option once causes the tool to print only errors, warnings, and tables ...


0

This seems to be one of those errors that won't go away. In this case, it may be a case of human error. First of all, here are a series of links with similar error messages on Shutdowns http://www.webhostingtalk.com/showthread.php?t=518682 http://bugs.mysql.com/bug.php?id=7403 http://bugs.mysql.com/bug.php?id=48879 http://lists.mysql.com/mysql/206094 ...



Top 50 recent answers are included