Advertisement
Guest User

Slow SQL query in Views relationship from Content Profile

a guest
Aug 12th, 2014
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.50 KB | None | 0 0
  1. SELECT node.nid AS nid,
  2.        node_users.field_photo_fid AS node_users_node_data_field_photo_field_photo_fid,
  3.        node_users.field_photo_list AS node_users_node_data_field_photo_field_photo_list,
  4.        node_users.field_photo_data AS node_users_node_data_field_photo_field_photo_data,
  5.        node_users.nid AS node_users_nid,
  6.        node_users.language AS node_users_language,
  7.        node_users.type AS node_users_type,
  8.        node_users.vid AS node_users_vid,
  9.        users.name AS users_name,
  10.        users.uid AS users_uid,
  11.        node.type AS node_type,
  12.        node.language AS node_language,
  13.        node.title AS node_title,
  14.        node.created AS node_created,
  15.        userpoints.points AS userpoints_points,
  16.        node.vid AS node_vid,
  17.        node_revisions.teaser AS node_revisions_teaser,
  18.        node_revisions.format AS node_revisions_format,
  19.        'taxonomy_views:page_1' AS view_name
  20. FROM node node
  21. INNER JOIN term_node tn ON tn.tid = 11855 and node.vid = tn.vid
  22. INNER JOIN users users ON node.uid = users.uid
  23. LEFT JOIN (SELECT n.nid, uid, type, language, n.vid, field_photo_fid, field_photo_list, field_photo_data FROM node n
  24.                 INNER JOIN content_type_profile ctp ON n.vid = ctp.vid
  25.                 WHERE type = 'profile'
  26.       ) node_users ON users.uid = node_users.uid
  27. LEFT JOIN userpoints userpoints ON node.uid = userpoints.uid
  28. LEFT JOIN node_revisions node_revisions ON node.vid = node_revisions.vid
  29. WHERE (node.status <> 0 OR (node.uid = 1 AND 1 <> 0) OR 1 = 1)
  30. LIMIT 0, 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement