… are sort of like unindexed MySQL columns. They are the extra details you may want to filter by, which is usually things… in a full text index that I can use for filtering: sphinx> select * from catalog where match(‘@userkey userkey_50′); … 20 rows… selective search and then filtering, using attribute is orders of magnitude better than using a fulltext key. That being said, for highly selective…
Post: How fast can MySQL Process Data
…=MEMORY DEFAULT CHARSET=latin1 mysql> select count(*) from m; +———-+ | count(*) | +———-+ | 1047684 | +———-+ 1 row in set (0.00 sec) mysql> select count(*) from m where…) the filtering speed stays about the same: mysql> select count(*) from m3; +———-+ | count(*) | +———-+ | 10476840 | +———-+ 1 row in set (0.00 sec) mysql> select count(*) from…
Post: Index Condition Pushdown in MySQL 5.6 and MariaDB 5.5 and its performance impact
… in preparation for the talk comparing the optimizer enhancements in MySQL 5.6 and MariaDB 5.5. We are taking a… optimizer enhancement Index Condition Pushdown (ICP). Its available in both MySQL 5.6 and MariaDB 5.5 Now let’s take… on which range condition is applied cannot be used for filtering records. For example, suppose you have a key defined as…
Post: Filtered MySQL Replication
…filtered or partial MySQL Replication (as of version MySQL 5.0) – there is enough gotchas with replication itself and getting things right with filtering…ve seen such filtering being broken by developer forgetting this restriction and running one time update query without selecting proper default …
Post: Shard-Query turbo charges Infobright community edition (ICE)
…so there are only 29 air carriers in the table: mysql> select count(*), count(distinct UniqueCarrier) from dim_flightG *************************** 1. row ***************************…, Shard-Query performance continues to improve when grouping and filtering is used. Again, notice Q9. It doesn’t use…
Post: Multi Range Read (MRR) in MySQL 5.6 and MariaDB 5.5
… on IO bound workload, mentioned above. Counter Name MySQL 5.5 MySQL 5.6 MySQL 5.6 w/ read_rnd_bufer_size=4M… plans. a. Bad Plan id select_type table type possible_keys key key_len ref rows filtered Extra 1 SIMPLE nation ALL… where b. Good Plan id select_type table type possible_keys key key_len ref rows filtered Extra 1 SIMPLE orders range…
Comment: MySQL VIEW as performance troublemaker
…, first select (view) is SLOWLY, then simple select (it’s obvious, becouse “group by” with index filtering is slowly, that simple index filtering). Problem not in VIEW MECHANISM in mySQL…
Post: How (not) to find unused indexes
…=latin1; mysql> SELECT count(*) FROM Country; +———-+ | count(*) | +———-+ |     239 | +———-+ 1 row in set (0.00 sec) mysql> SELECT count(distinct… row in set (0.04 sec) mysql> EXPLAIN SELECT * FROM country WHERE population > 100000000; # query 4 +—-+————-+———+——-+—————+————+———+——+——+————-+ | id | select_type | table  | type | possible… lead yourself into a trap where your index can not filter out enough rows to be effective. I see this…
Post: Using index for ORDER BY vs restricting number of rows.
… from different categories, different sellers different locations which can be filtered on, and there are also bunch of fields which sorting…`,`price`), KEY `cat_id_2` (`cat_id`,`seller_id` ) mysql> explain select * from goods where cat_id=5 and seller_id=1… where; Using filesort 1 row in set (0.00 sec) mysql> explain select * from goods force index(cat_id) where cat_id…
Post: MySQL Slow query log in the table
…of MySQL 5.1 get MySQL slow query log logged in mysql.slow_log table instead of the file as you… interval (ie after I’ve done some changes) or filter out queries which you already looked at using LIKE… get new queries in the end you can do SELECT * FROM (SELECT * FROM slow_log ORDER BY start_time DESC…

