Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.07 KB | None | 0 0
  1. mysql> EXPLAIN SELECT EXISTS(SELECT 1 FROM xbl WHERE xuid LIKE '%25%' ORDER BY xuid DESC LIMIT 5000);
  2. +----+-------------+-------+------------+-------+---------------+------+---------+------+-------+----------+--------------------------+
  3. | id | select_type | table | partitions | type  | possible_keys | key  | key_len | ref  | rows  | filtered | Extra                    |
  4. +----+-------------+-------+------------+-------+---------------+------+---------+------+-------+----------+--------------------------+
  5. |  1 | PRIMARY     | NULL  | NULL       | NULL  | NULL          | NULL | NULL    | NULL |  NULL |     NULL | No tables used           |
  6. |  2 | SUBQUERY    | xbl   | NULL       | index | NULL          | xuid | 8       | NULL | 37458 |    11.11 | Using where; Using index |
  7. +----+-------------+-------+------------+-------+---------------+------+---------+------+-------+----------+--------------------------+
  8. 2 rows in set, 1 warning (0.00 sec)
  9.  
  10. mysql> SELECT COUNT(1) FROM xbl;
  11. +----------+
  12. | COUNT(1) |
  13. +----------+
  14. |    38725 |
  15. +----------+
  16. 1 row in set (0.00 sec)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement