Advertisement
Guest User

EXPLAIN Slow SQL query in Views relationship

a guest
Aug 10th, 2014
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. +----+--------------------+----------------------------------+--------+-------------------------------------+-----------+---------+-----------------------+-------+-------------+
  2. | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
  3. +----+--------------------+----------------------------------+--------+-------------------------------------+-----------+---------+-----------------------+-------+-------------+
  4. | 1 | PRIMARY | node_users | ref | vid,node_type,uid | node_type | 14 | const | 11286 | Using where |
  5. | 1 | PRIMARY | users | eq_ref | PRIMARY,uid_status | PRIMARY | 4 | joinup.node_users.uid | 1 | Using where |
  6. | 1 | PRIMARY | node_users_node_data_field_photo | eq_ref | PRIMARY | PRIMARY | 4 | joinup.node_users.vid | 1 | |
  7. | 1 | PRIMARY | node | ref | node_status_type,uid,status_created | uid | 4 | joinup.users.uid | 1 | Using where |
  8. | 1 | PRIMARY | userpoints | ref | uid_tid | uid_tid | 4 | joinup.node.uid | 1 | |
  9. | 1 | PRIMARY | node_revisions | eq_ref | PRIMARY | PRIMARY | 4 | joinup.node.vid | 1 | |
  10. | 3 | DEPENDENT SUBQUERY | tn | eq_ref | PRIMARY,vid | PRIMARY | 8 | const,func | 1 | Using index |
  11. | 2 | DEPENDENT SUBQUERY | na | ref | PRIMARY | PRIMARY | 4 | joinup.node.nid | 1 | Using where |
  12. +----+--------------------+----------------------------------+--------+-------------------------------------+-----------+---------+-----------------------+-------+-------------+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement