Meta: What locals are saying about what's best in Downingtown, PA
[0.00047707557678223] Connecting to MySQL server
[0.00078511238098145] SELECT * FROM countries ORDER BY country_name ASC
[0.0012469291687012] SELECT * FROM locations l LEFT JOIN states s ON s.state_id = l.state_id LEFT JOIN countries c ON c.country_id = s.country_id WHERE state = 'pa' AND slug = 'downingtown' AND c.country_slug = 'united-states'
[0.0013270378112793] SELECT `a`.* , `b`.`subject` , `c`.`prefix` , `d`.`answers` , `d`.`location_id` , `d`.`ql_id` , `g`.`username` , `g`.`last_name` , `g`.`first_name` FROM `questions` AS `a` LEFT JOIN `questions_subject` AS `b` ON (`b`.`qs_id` = `a`.`subject_id`) LEFT JOIN `questions_prefix` AS `c` ON (`c`.`qp_id` = `a`.`prefix_id`) LEFT JOIN `questions_location` AS `d` ON (`d`.`question_id` = `a`.`question_id` AND `d`.`location_id` IN ('4637')) LEFT JOIN `locations` AS `e` ON (`e`.`location_id` = `d`.`location_id`) LEFT JOIN `states` AS `f` ON (`f`.`state_id` = `e`.`state_id`) LEFT JOIN `users` AS `g` ON (`g`.`user_id` = `d`.`user_id`) LEFT JOIN `responses` AS `h` ON (`h`.`question_id` = `d`.`question_id` AND `h`.`location_id` = `d`.`location_id`) WHERE (`a`.`status` IN ('new','open') AND `d`.`ql_id` IS NOT NULL AND (`f`.`country_id` IN ('1') OR `d`.`ql_id` IS NULL )) GROUP BY `a`.`question_id` ORDER BY `d`.`answers` DESC LIMIT 0, 10
[0.00054311752319336] SELECT r.text, r.text_slug, r.total, p.comments, p.place_id, r.question_id, r.location_id FROM responses_summary r LEFT JOIN places p ON p.location_id = r.location_id AND p.place_slug = r.text_slug WHERE r.question_id = '324' AND r.location_id = '4637' AND r.total > 0 ORDER BY r.total DESC, r.rs_id ASC LIMIT 0,4
[0.00048398971557617] SELECT r.text, r.text_slug, r.total, p.comments, p.place_id, r.question_id, r.location_id FROM responses_summary r LEFT JOIN places p ON p.location_id = r.location_id AND p.place_slug = r.text_slug WHERE r.question_id = '335' AND r.location_id = '4637' AND r.total > 0 ORDER BY r.total DESC, r.rs_id ASC LIMIT 0,4
[0.001072883605957] SELECT `a`.* , `b`.`subject` , `c`.`prefix` , `d`.`answers` , `d`.`location_id` , `d`.`ql_id` , `g`.`username` , `g`.`last_name` , `g`.`first_name` FROM `questions` AS `a` LEFT JOIN `questions_subject` AS `b` ON (`b`.`qs_id` = `a`.`subject_id`) LEFT JOIN `questions_prefix` AS `c` ON (`c`.`qp_id` = `a`.`prefix_id`) LEFT JOIN `questions_location` AS `d` ON (`d`.`question_id` = `a`.`question_id` AND `d`.`location_id` IN ('4637')) LEFT JOIN `locations` AS `e` ON (`e`.`location_id` = `d`.`location_id`) LEFT JOIN `states` AS `f` ON (`f`.`state_id` = `e`.`state_id`) LEFT JOIN `users` AS `g` ON (`g`.`user_id` = `d`.`user_id`) LEFT JOIN `responses` AS `h` ON (`h`.`question_id` = `d`.`question_id` AND `h`.`location_id` = `d`.`location_id`) WHERE (`a`.`status` IN ('new','open') AND `d`.`ql_id` IS NOT NULL AND (`f`.`country_id` IN ('1') OR `d`.`ql_id` IS NULL )) GROUP BY `a`.`question_id` ORDER BY `d`.`answers` DESC LIMIT 0, 6
[0.0009310245513916] SELECT `a`.* , `b`.`subject` , `c`.`prefix` , `d`.`answers` , `d`.`location_id` , `d`.`ql_id` , `g`.`username` , `g`.`last_name` , `g`.`first_name` FROM `questions` AS `a` LEFT JOIN `questions_subject` AS `b` ON (`b`.`qs_id` = `a`.`subject_id`) LEFT JOIN `questions_prefix` AS `c` ON (`c`.`qp_id` = `a`.`prefix_id`) LEFT JOIN `questions_location` AS `d` ON (`d`.`question_id` = `a`.`question_id` AND `d`.`location_id` IN ('4637')) LEFT JOIN `locations` AS `e` ON (`e`.`location_id` = `d`.`location_id`) LEFT JOIN `states` AS `f` ON (`f`.`state_id` = `e`.`state_id`) LEFT JOIN `users` AS `g` ON (`g`.`user_id` = `d`.`user_id`) WHERE (`a`.`status` IN ('new','open') AND `d`.`ql_id` IS NOT NULL AND (`f`.`country_id` IN ('1') OR `d`.`ql_id` IS NULL )) ORDER BY `d`.`ql_id` DESC LIMIT 0, 6
[0.0084118843078613] SELECT `a`.* , `b`.`subject` , `c`.`prefix` , `d`.`answers` , `d`.`location_id` , `d`.`ql_id` FROM `questions` AS `a` LEFT JOIN `questions_subject` AS `b` ON (`b`.`qs_id` = `a`.`subject_id`) LEFT JOIN `questions_prefix` AS `c` ON (`c`.`qp_id` = `a`.`prefix_id`) LEFT JOIN `questions_location` AS `d` ON (`d`.`question_id` = `a`.`question_id` AND `d`.`location_id` IN ('4637')) WHERE (`a`.`status` IN ('new','open') AND `d`.`ql_id` IS NULL )
[0.012480020523071] SELECT * FROM locations l LEFT JOIN states s ON s.state_id = l.state_id LEFT JOIN countries c ON c.country_id = s.country_id WHERE l.status IN ('new','pending','validated') AND l.longitude BETWEEN -76.0032742 AND -75.4032742 AND l.latitude BETWEEN 39.7064958 AND 40.3064958
[0.0033400058746338] SELECT `a`.* , `b`.`subject` , `c`.`prefix` , `d`.`answers` , `d`.`location_id` , `d`.`ql_id` FROM `questions` AS `a` LEFT JOIN `questions_subject` AS `b` ON (`b`.`qs_id` = `a`.`subject_id`) LEFT JOIN `questions_prefix` AS `c` ON (`c`.`qp_id` = `a`.`prefix_id`) LEFT JOIN `questions_location` AS `d` ON (`d`.`question_id` = `a`.`question_id` AND `d`.`location_id` IN ('2','4204','4594','4630','4631','4632','4633','4634','4635','4636','4638','4639','4640','4642','4643','4644','4645','4646','4649','4650','4651','4652','4653','4654','4655','4659','4662','4663','4669','4671','4673','4676','4678','4687','4691','4692','4703','4719','4725','4726','25735','25737','25738','33589','33590')) LEFT JOIN `locations` AS `e` ON (`e`.`location_id` = `d`.`location_id`) LEFT JOIN `states` AS `f` ON (`f`.`state_id` = `e`.`state_id`) WHERE (`a`.`status` IN ('new','open') AND `d`.`ql_id` IS NOT NULL AND (`f`.`country_id` IN ('1') OR `d`.`ql_id` IS NULL )) ORDER BY `d`.`ql_id` DESC , RAND() LIMIT 0, 6
[0.0024259090423584] SELECT user_id, username, first_name, last_name, profile_pic, questions, answers FROM users WHERE default_location IN ('4637') AND answers > 0 ORDER BY answers DESC LIMIT 0, 5
[0.001194953918457] SELECT * FROM locations l LEFT JOIN states s ON s.state_id = l.state_id LEFT JOIN countries c ON c.country_id = s.country_id WHERE l.status IN ('new','pending','validated') AND l.longitude BETWEEN -76.0032742 AND -75.4032742 AND l.latitude BETWEEN 39.7064958 AND 40.3064958
[0.0034060478210449] SELECT location_id, COUNT(response_id) AS activity FROM responses WHERE location_id IN ('2','4594','4630','4631','4632','4633','4634','4635','4638','4639','4640','4642','4643','4645','4649','4650','4651','4652','4653','4654','4655','4662','4669','4671','4676','4678','4692','4703','4726','25735','25737','25738','33589','33590') AND date_answered > '2013-05-11 11:27:00' GROUP BY location_id ORDER BY activity DESC LIMIT 5
[0.00068902969360352] SELECT * FROM locations l LEFT JOIN states s ON s.state_id = l.state_id LEFT JOIN countries c ON c.country_id = s.country_id WHERE location_id = '4651'
[0.00043892860412598] SELECT * FROM locations l LEFT JOIN states s ON s.state_id = l.state_id LEFT JOIN countries c ON c.country_id = s.country_id WHERE location_id = '33590'
getting prod_location_downingtown,pa,united-states (apc)
setting prod_location_downingtown,pa,united-states (apc)
setting prod_location_4637 (apc)
getting prod_questions_starter_4637, prod_questions_trending_4637, prod_questions_newest_4637 (apc)
getting prod_questions_trending_4637 (apc)
setting prod_questions_trending_4637 (apc)
getting prod_questions_newest_4637 (apc)
setting prod_questions_newest_4637 (apc)
setting prod_questions_starter_4637 (apc)
getting prod_location_2 (apc)
getting prod_top5_users_4637 (apc)
setting prod_top5_users_4637 (apc)
getting prod_location_closest_4637 (apc)
setting prod_location_closest_4637 (apc)
getting prod_location_4651, prod_location_25737, prod_location_4639, prod_location_33590 (apc)
getting prod_location_4651 (apc)
setting prod_location_thorndale,pa,united-states (apc)
setting prod_location_4651 (apc)
getting prod_location_33590 (apc)
setting prod_location_chester-county,pa,united-states (apc)
setting prod_location_33590 (apc)
Login type: ;