June 19, 2013

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

in MyISAM. With 5.5: mysql: SELECT id, title, MATCH(title, body) AGAINST (‘corporation commission forms’ INmysql: CREATE TABLE innodb_ft_list2 ( value VARCHAR(18) NOT NULL DEFAULT ”) ENGINE=InnoDB DEFAULT CHARSET=latin1; Query

Post: Eventual Consistency in MySQL

CHECKS=0 to disable enforcement of RI when the overhead is too high.  But if you later restore enforcement, MySQL does notnull.  From that information, we can generate an exclusion-join query for each foreign key relationship: mysql> SELECT CONCAT( ‘SELECT

Post: MySQL 5.6.10 Optimizer Limitations: Index Condition Pushdown

… than the same “SELECT one_indexed_column” query in MySQL 5.6.10. This turned into a really nice exercise for checking the performance and…` int(11) NOT NULL AUTO_INCREMENT, `person_id` int(11) NOT NULL, `movie_id` int(11) NOT NULL, `person_role_id` int(11) DEFAULT NULL, `note` varchar…

Post: Flexviews - part 3 - improving query performance using materialized views

check that it parses by running the SELECT portion, adding LIMIT 0 to the SELECT part of the query…, as stored in the data dictionary: mysql> select * from flexviews…not take long to refresh: mysql> call flexviews.refresh( -> flexviews.get_id(‘demo’, -> ‘dashboard_customer_sales’),’BOTH’,NULL); Query

Post: Shard-Query EC2 images available

NULL, `Month` tinyint(4) DEFAULT NULL, `DayofMonth` tinyint(4) DEFAULT NULL, `DayOfWeek` tinyint(4) DEFAULT NULL, `FlightDate` date NOT NULL, `date_id` smallint(6) NOT NULLselect count(*) from ontime_fact;” | ./run_query

Post: Troubleshooting MySQL Memory Usage

In Percona Server you can do better as you can query temporary tables too: mysql> selectin set (0.00 sec) You can even go deeper to check which sessions have created which temporary tables (both in memory and not): mysql> select… CREATE_TIME: NULL UPDATE_TIME: NULL *************************** 2. row …

Post: MySQL Indexing Best Practices: Webinar Questions Followup

SELECT * FROM TBL WHERE hash=crc32(‘string’) AND string=’string’ The other thing you need to consider is string comparison in MySQLnot null, PRIMARY KEY(id1,id2), KEY K(id2)) engine=INNODB; when table has to be traversed in both directions for different queries

Post: Checking the subset sum set problem with set processing

… subset sum check from SQL, which you can then distribute with Shard-Query: CREATE TABLE `the list` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `val` bigint(20) NOT NULL DEFAULT ’0′, PRIMARY KEY (`id`), KEY `id` (`id`) ) ENGINE=MyISAM; SELECT val as `val… cardinality of each item in the input set). Notice that I have a lot of numbers in my list: mysql> select val, count(*) from…

Post: Distributed Set Processing with Shard-Query

…but right now only MySQL storage nodes are …in the data access layer. Shard-Query can provide querynot required — 2 items is less than the inlist-merge-threshold of 128 items * The following projections were selected for a UNIQUE CHECKIN (2009) GROUP BY 1 ORDER BY NULL ) — AGGREGATION SQL: SELECT