Advertisement
helgatheviki

Brands query log

Aug 23rd, 2011
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.77 KB | None | 0 0
  1. //////////////////////////////////////////
  2.  
  3. August 23, 2011, 5:15:24 pm
  4.  
  5. SELECT wp_term_taxonomy.term_id
  6. FROM wp_term_taxonomy
  7. INNER JOIN wp_terms USING (term_id)
  8. WHERE taxonomy = 'portfolio-cats'
  9. AND wp_terms.slug IN ('brands')
  10. - (0.00059390068054199 s)
  11.  
  12.  
  13. SELECT term_taxonomy_id
  14. FROM wp_term_taxonomy
  15. WHERE taxonomy = 'portfolio-cats'
  16. AND term_id IN (11)
  17. - (0.00046014785766602 s)
  18.  
  19. SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (11) ) AND wp_posts.post_type IN ('post', 'page', 'attachment', 'portfolio') AND (wp_posts.post_status = 'publish' OR wp_posts.post_author = 2 AND wp_posts.post_status = 'private') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 10 - (0.011028051376343 s)
  20.  
  21. SELECT FOUND_ROWS() - (0.00042009353637695 s)
  22.  
  23. SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('portfolio-cats', 'kia_featured') AND tr.object_id IN (341, 336) ORDER BY t.name ASC - (0.0021967887878418 s)
  24.  
  25. SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (341,336) - (0.0025320053100586 s)
  26.  
  27. SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'portfolio-cats' AND t.slug = 'brands' LIMIT 1 - (0.0005040168762207 s)
  28.  
  29. SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'portfolio-cats' AND t.term_id = '4' LIMIT 1 - (0.00053310394287109 s)
  30.  
  31. SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'portfolio-cats' AND t.slug = 'brands' LIMIT 1 - (0.0003659725189209 s)
  32.  
  33. SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'portfolio-cats' AND t.slug = 'brands' LIMIT 1 - (0.00039911270141602 s)
  34.  
  35.  
  36. SELECT wp_term_taxonomy.term_id
  37. FROM wp_term_taxonomy
  38. INNER JOIN wp_terms USING (term_id)
  39. WHERE taxonomy = 'portfolio-cats'
  40. AND wp_terms.slug IN ('brands')
  41. - (0.0004429817199707 s)
  42.  
  43.  
  44. SELECT term_taxonomy_id
  45. FROM wp_term_taxonomy
  46. WHERE taxonomy = 'portfolio-cats'
  47. AND term_id IN (11)
  48. - (0.00039005279541016 s)
  49.  
  50. SELECT wp_posts.* FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1 AND wp_posts.post_parent = 0 AND ( wp_term_relationships.term_taxonomy_id IN (11) ) AND wp_posts.post_type = 'portfolio' AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date ASC - (0.0025839805603027 s)
  51.  
  52. SELECT * FROM wp_users WHERE ID = 1 LIMIT 1 - (0.00048995018005371 s)
  53.  
  54. SELECT user_id, meta_key, meta_value FROM wp_usermeta WHERE user_id IN (1) - (0.00043201446533203 s)
  55.  
  56.  
  57. SELECT wp_term_taxonomy.term_id
  58. FROM wp_term_taxonomy
  59. INNER JOIN wp_terms USING (term_id)
  60. WHERE taxonomy = 'portfolio-cats'
  61. AND wp_terms.slug IN ('brands')
  62. - (0.00036191940307617 s)
  63.  
  64.  
  65. SELECT term_taxonomy_id
  66. FROM wp_term_taxonomy
  67. WHERE taxonomy = 'portfolio-cats'
  68. AND term_id IN (11)
  69. - (0.00039482116699219 s)
  70.  
  71. SELECT wp_posts.* FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1 AND wp_posts.ID NOT IN (336,341) AND ( wp_term_relationships.term_taxonomy_id IN (11) ) AND wp_posts.post_type = 'portfolio' AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date ASC LIMIT 0, 1 - (0.0024511814117432 s)
  72.  
  73.  
  74. SELECT wp_term_taxonomy.term_id
  75. FROM wp_term_taxonomy
  76. INNER JOIN wp_terms USING (term_id)
  77. WHERE taxonomy = 'portfolio-cats'
  78. AND wp_terms.slug IN ('brands')
  79. - (0.00050187110900879 s)
  80.  
  81.  
  82. SELECT term_taxonomy_id
  83. FROM wp_term_taxonomy
  84. WHERE taxonomy = 'portfolio-cats'
  85. AND term_id IN (11)
  86. - (0.00050687789916992 s)
  87.  
  88. SELECT wp_posts.* FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1 AND wp_posts.ID NOT IN (336,341) AND ( wp_term_relationships.term_taxonomy_id IN (11) ) AND wp_posts.post_type = 'portfolio' AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 1 - (0.0024840831756592 s)
  89.  
  90. SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'portfolio-cats' AND t.slug = 'brands' LIMIT 1 - (0.0010790824890137 s)
  91.  
  92. SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'portfolio-cats' AND t.slug = 'brands' LIMIT 1 - (0.00045514106750488 s)
  93.  
  94. SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'portfolio-cats' AND t.slug = 'brands' LIMIT 1 - (0.0009009838104248 s)
  95.  
  96. SELECT tr.object_id FROM wp_term_relationships AS tr INNER JOIN wp_term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('nav_menu') AND tt.term_id IN ('20') ORDER BY tr.object_id ASC - (0.00072908401489258 s)
  97.  
  98. SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.ID IN (186,187,188,189,190) AND wp_posts.post_type = 'nav_menu_item' AND (wp_posts.post_status = 'publish') ORDER BY menu_order ASC - (0.00092101097106934 s)
  99.  
  100. SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (186,187,188,189,190) - (0.00040912628173828 s)
  101.  
  102. SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('portfolio-cats') AND ( t.term_id = 5 OR t.term_id = 8 OR t.term_id = 10 OR t.term_id = 11 OR t.term_id = 9 ) ORDER BY t.name ASC - (0.0030980110168457 s)
  103.  
  104. SELECT option_value FROM wp_options WHERE option_name = '_transient_timeout_firstprint' LIMIT 1 - (0.00072193145751953 s)
  105.  
  106. SELECT option_value FROM wp_options WHERE option_name = '_transient_firstprint' LIMIT 1 - (0.00073003768920898 s)
  107.  
  108. SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'portfolio-cats' AND t.slug = 'brands' LIMIT 1 - (0.00058794021606445 s)
  109.  
  110. SELECT tr.object_id FROM wp_term_relationships AS tr INNER JOIN wp_term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('nav_menu') AND tt.term_id IN ('7') ORDER BY tr.object_id ASC - (0.00064992904663086 s)
  111.  
  112. SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.ID IN (19,20,36,87) AND wp_posts.post_type = 'nav_menu_item' AND (wp_posts.post_status = 'publish') ORDER BY menu_order ASC - (0.00051212310791016 s)
  113.  
  114. SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (20,19,87,36) - (0.00046396255493164 s)
  115.  
  116. SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.ID IN (85,34) AND wp_posts.post_type = 'page' AND (wp_posts.post_status = 'publish') ORDER BY wp_posts.post_date DESC - (0.00076103210449219 s)
  117.  
  118. SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (85,34) - (0.00054502487182617 s)
  119.  
  120. SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('portfolio-cats') AND ( t.term_id = 4 OR t.term_id = 3 ) ORDER BY t.name ASC - (0.00083017349243164 s)
  121.  
  122.  
  123. SELECT wp_term_taxonomy.term_taxonomy_id
  124. FROM wp_term_taxonomy
  125. INNER JOIN wp_terms USING (term_id)
  126. WHERE taxonomy = 'kia_featured'
  127. AND wp_terms.slug IN ('excluded')
  128. - (0.00089502334594727 s)
  129.  
  130.  
  131. SELECT wp_term_taxonomy.term_id
  132. FROM wp_term_taxonomy
  133. INNER JOIN wp_terms USING (term_id)
  134. WHERE taxonomy = 'portfolio-cats'
  135. AND wp_terms.slug IN ('brands')
  136. - (0.00062298774719238 s)
  137.  
  138.  
  139. SELECT term_taxonomy_id
  140. FROM wp_term_taxonomy
  141. WHERE taxonomy = 'portfolio-cats'
  142. AND term_id IN (11)
  143. - (0.00043392181396484 s)
  144.  
  145. SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts INNER JOIN wp_term_relationships AS tt1 ON (wp_posts.ID = tt1.object_id) WHERE 1=1 AND wp_posts.post_parent = 0 AND ( wp_posts.ID NOT IN (
  146. SELECT object_id
  147. FROM wp_term_relationships
  148. WHERE term_taxonomy_id IN (17)
  149. ) AND tt1.term_taxonomy_id IN (11) ) AND wp_posts.post_type IN ('post', 'page', 'attachment', 'portfolio') AND (wp_posts.post_status = 'publish' OR wp_posts.post_author = 2 AND wp_posts.post_status = 'private') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 20 - (0.0031418800354004 s)
  150.  
  151. SELECT FOUND_ROWS() - (0.0012588500976562 s)
  152.  
  153. SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.post_parent = 341 AND wp_posts.post_type = 'portfolio' AND (wp_posts.post_status = 'publish') ORDER BY wp_posts.post_date DESC LIMIT 0, 1 - (0.00079107284545898 s)
  154.  
  155. SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.ID IN (345,337) AND wp_posts.post_type = 'attachment' AND (wp_posts.post_status = 'inherit') ORDER BY wp_posts.post_date DESC - (0.00065088272094727 s)
  156.  
  157. SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (345,337) - (0.0005950927734375 s)
  158.  
  159. SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.post_parent = 336 AND wp_posts.post_type = 'portfolio' AND (wp_posts.post_status = 'publish') ORDER BY wp_posts.post_date DESC LIMIT 0, 1 - (0.00051307678222656 s)
  160.  
  161. SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'portfolio-cats' AND t.slug = 'brands' LIMIT 1 - (0.00056695938110352 s)
  162.  
  163. SELECT comment_approved, COUNT( * ) AS num_comments FROM wp_comments GROUP BY comment_approved - (0.00045609474182129 s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement