Guest User

Untitled

a guest
Apr 11th, 2013
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1.  
  2. root@sub [~]# tail /var/lib/mysql/slow.log
  3. ORDER BY `rating` DESC LIMIT 72, 12;
  4. # Time: 130411 12:32:27
  5. # User@Host: davym123_gallery[davym123_gallery] @ localhost []
  6. # Query_time: 4.937780 Lock_time: 0.000057 Rows_sent: 12 Rows_examined: 252041 02
  7. SET timestamp=1365697947;
  8. SELECT `images`.*, (SELECT AVG(`score`)
  9. FROM `ra tings` WHERE `image_id`=`images`.`image_id`) AS `rating`,
  10. (SELECT COUNT(*) FROM `ratings` WHERE `image_id`=`images`.`image_id`) AS `votes`
  11. FROM `im ages` WHERE `champion_id`='27' AND `approved`='1'
  12. ORDER BY `rating` DESC LIMIT 48, 12;
  13. root@sub [~]# tail /var/lib/mysql/slow.log
  14. ORDER BY `rating` DESC LIMIT 24, 12;
  15. # Time: 130411 12:32:39
  16. # User@Host: davym123_gallery[davym123_gallery] @ localhost []
  17. # Query_time: 52.766777 Lock_time: 0.000066 Rows_sent: 48 Rows_examined: 312030741
  18. SET timestamp=1365697959;
  19. SELECT `images`.*, (SELECT AVG(`score`)
  20. FROM `ratings` WHERE `image_id`=`images`.`image_id`) AS `rating`,
  21. (SELECT COUNT(*) FROM `ratings` WHERE `image_id`=`images`.`image_id`) AS `votes`
  22. FROM `images` WHERE `approved`='1'
  23. ORDER BY `rating` DESC LIMIT 672, 48;
  24. root@sub [~]# tail /var/lib/mysql/slow.log
  25. ORDER BY `rating` DESC LIMIT 24, 12;
  26. # Time: 130411 12:32:39
  27. # User@Host: davym123_gallery[davym123_gallery] @ localhost []
  28. # Query_time: 52.766777 Lock_time: 0.000066 Rows_sent: 48 Rows_examined: 312030741
  29. SET timestamp=1365697959;
  30. SELECT `images`.*, (SELECT AVG(`score`)
  31. FROM `ratings` WHERE `image_id`=`images`.`image_id`) AS `rating`,
  32. (SELECT COUNT(*) FROM `ratings` WHERE `image_id`=`images`.`image_id`) AS `votes`
  33. FROM `images` WHERE `approved`='1'
  34. ORDER BY `rating` DESC LIMIT 672, 48;
Advertisement
Add Comment
Please, Sign In to add comment