#1 [20:21:45.727]
2.0ms
ground
SELECT ground.id AS ground_id, ground.name AS ground_name, ground.url AS ground_url, ground.postcode AS ground_postcode, ground.what3words AS ground_what3words, ground.email AS ground_email, ground.website AS ground_website, ground.num_events_cpsa AS ground_num_events_cpsa, ground.num_events_cpsa_la…
#2 [20:21:45.730]
1.2ms
shoot_event
SELECT shoot_event.id AS shoot_event_id, shoot_event.cpsa_fixture_id AS shoot_event_cpsa_fixture_id, shoot_event.name AS shoot_event_name, shoot_event.date AS shoot_event_date, shoot_event.discipline AS shoot_event_discipline, shoot_event.ground AS shoot_event_ground, shoot_event.url AS shoot_event_…
#3 [20:21:45.738]
3.5ms
shoot_event
SELECT shoot_event.discipline AS shoot_event_discipline, count(shoot_score.id) AS count_1, sum(shoot_score.hits) AS sum_1, sum(shoot_score.targets) AS sum_2, avg(shoot_score.percentage) AS avg_1
FROM shoot_event JOIN shoot_score ON shoot_score.event_id = shoot_event.id
WHERE shoot_event.ground = %…
#4 [20:21:45.747]
1.7ms
shoot_event
SELECT EXTRACT(year FROM shoot_event.date) AS yr, EXTRACT(month FROM shoot_event.date) AS mo, shoot_event.discipline AS shoot_event_discipline, avg(shoot_score.percentage) AS avg_1
FROM shoot_event JOIN shoot_score ON shoot_score.event_id = shoot_event.id
WHERE shoot_event.ground = %(ground_1)s AN…
#5 [20:21:45.750]
1.5ms
shoot_score
SELECT shoot_event.discipline AS shoot_event_discipline, trim(replace(shoot_score.shooter_class, %(replace_1)s, %(replace_2)s)) AS trim_1, count(shoot_score.id) AS count_1
FROM shoot_score JOIN shoot_event ON shoot_score.event_id = shoot_event.id
WHERE shoot_event.ground = %(ground_1)s AND shoot_e…
#6 [20:21:47.725]
1974.7ms
shoot_score
SELECT trim(replace(shoot_score.shooter_class, %(replace_1)s, %(replace_2)s)) AS trim_1, count(shoot_score.id) AS count_1
FROM shoot_score JOIN shoot_event ON shoot_score.event_id = shoot_event.id
WHERE shoot_event.date <= %(date_1)s AND shoot_event.admin_hidden != true AND shoot_score.shooter_cla…
#7 [20:21:47.728]
1.5ms
shoot_event
SELECT EXTRACT(year FROM shoot_event.date) AS yr, EXTRACT(month FROM shoot_event.date) AS mo, shoot_event.discipline AS shoot_event_discipline, count(shoot_event.id) AS count_1
FROM shoot_event
WHERE shoot_event.ground = %(ground_1)s AND shoot_event.date <= %(date_1)s AND shoot_event.admin_hidden …
#8 [20:21:47.730]
1.1ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#9 [20:21:47.732]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#10 [20:21:47.734]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#11 [20:21:47.735]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#12 [20:21:47.737]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#13 [20:21:47.739]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#14 [20:21:47.740]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#15 [20:21:47.742]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#16 [20:21:47.744]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#17 [20:21:47.745]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#18 [20:21:47.747]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#19 [20:21:47.750]
1.7ms
shoot_score
SELECT shoot_score.event_id AS shoot_score_event_id, shoot_score.percentage AS shoot_score_percentage, shooter.name AS shooter_name
FROM shoot_score JOIN shooter ON shoot_score.shooter_id = shooter.id JOIN (SELECT shoot_score.event_id AS event_id, max(shoot_score.percentage) AS max_pct
FROM shoot_…
#20 [20:21:47.821]
70.0ms
shoot_score
SELECT shoot_score.event_id AS shoot_score_event_id, avg(shoot_score.percentage) AS avg_1, count(shoot_score.id) AS count_1, min(shoot_score.percentage) AS min_1
FROM shoot_score
WHERE shoot_score.event_id IN (%(event_id_1_1)s, %(event_id_1_2)s, %(event_id_1_3)s, %(event_id_1_4)s, %(event_id_1_5)s…
#21 [20:21:47.824]
1.4ms
shoot_score
SELECT shoot_score.event_id AS shoot_score_event_id, trim(replace(shoot_score.shooter_class, %(replace_1)s, %(replace_2)s)) AS cls, avg(shoot_score.percentage) AS avg_1
FROM shoot_score
WHERE shoot_score.event_id IN (%(event_id_1_1)s, %(event_id_1_2)s, %(event_id_1_3)s, %(event_id_1_4)s, %(event_i…
#22 [20:21:47.826]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#23 [20:21:47.827]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#24 [20:21:47.829]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#25 [20:21:47.830]
0.9ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#26 [20:21:47.832]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#27 [20:21:47.833]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#28 [20:21:47.835]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#29 [20:21:47.836]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#30 [20:21:47.837]
0.9ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#31 [20:21:47.839]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#32 [20:21:47.841]
1.0ms
shoot_score
SELECT count(*) AS count_1
FROM (SELECT shoot_score.id AS shoot_score_id, shoot_score.targets AS shoot_score_targets, shoot_score.hits AS shoot_score_hits, shoot_score.points AS shoot_score_points, shoot_score.percentage AS shoot_score_percentage, shoot_score.shooter_id AS shoot_score_shooter_id, s…
#33 [20:21:47.843]
1.3ms
shoot_score
SELECT count(distinct(shoot_score.shooter_id)) AS count_1
FROM shoot_score JOIN shoot_event ON shoot_score.event_id = shoot_event.id
WHERE shoot_event.ground = %(ground_1)s AND shoot_event.date <= %(date_1)s AND shoot_event.admin_hidden != true
#34 [20:21:47.845]
1.6ms
shoot_score
SELECT shoot_score.percentage AS shoot_score_percentage, shooter.name AS shooter_name, shoot_event.discipline AS shoot_event_discipline, shoot_event.date AS shoot_event_date
FROM shoot_score JOIN shooter ON shoot_score.shooter_id = shooter.id JOIN shoot_event ON shoot_score.event_id = shoot_event.i…
#35 [20:21:47.848]
1.7ms
shooter
SELECT shooter.name AS shooter_name, count(shoot_score.id) AS count_1, avg(shoot_score.percentage) AS avg_1, max(shoot_score.percentage) AS max_1
FROM shooter JOIN shoot_score ON shoot_score.shooter_id = shooter.id JOIN shoot_event ON shoot_score.event_id = shoot_event.id
WHERE shoot_event.ground …
#36 [20:21:47.852]
2.0ms
shoot_event
SELECT shoot_event.discipline AS shoot_event_discipline, shoot_score.percentage AS shoot_score_percentage, shooter.name AS shooter_name, shoot_event.date AS shoot_event_date
FROM shoot_event JOIN shoot_score ON shoot_score.event_id = shoot_event.id JOIN shooter ON shoot_score.shooter_id = shooter.i…
#37 [20:21:47.854]
1.0ms
site_configuration
SELECT site_configuration.id AS site_configuration_id, site_configuration.key AS site_configuration_key, site_configuration.value AS site_configuration_value
FROM site_configuration
WHERE site_configuration.key LIKE %(key_1)s OR site_configuration.key LIKE %(key_2)s
#38 [20:21:47.855]
0.9ms
site_configuration
SELECT site_configuration.id AS site_configuration_id, site_configuration.key AS site_configuration_key, site_configuration.value AS site_configuration_value
FROM site_configuration
WHERE site_configuration.key = %(key_1)s
LIMIT %(param_1)s
#39 [20:21:47.856]
0.9ms
site_configuration
SELECT site_configuration.id AS site_configuration_id, site_configuration.key AS site_configuration_key, site_configuration.value AS site_configuration_value
FROM site_configuration
WHERE site_configuration.key = %(key_1)s
LIMIT %(param_1)s
#40 [20:21:47.858]
1.0ms
ground_review
SELECT avg(ground_review.rating) AS avg_1, count(ground_review.id) AS count_1
FROM ground_review
WHERE ground_review.ground_id = %(ground_id_1)s
#41 [20:21:47.859]
1.0ms
ground_review
SELECT count(*) AS count_1
FROM (SELECT ground_review.id AS ground_review_id, ground_review.ground_id AS ground_review_ground_id, ground_review.rating AS ground_review_rating, ground_review.review_text AS ground_review_review_text, ground_review.reviewer_name AS ground_review_reviewer_name, ground_…
#42 [20:21:47.861]
1.0ms
ground_review
SELECT ground_review.id AS ground_review_id, ground_review.ground_id AS ground_review_ground_id, ground_review.rating AS ground_review_rating, ground_review.review_text AS ground_review_review_text, ground_review.reviewer_name AS ground_review_reviewer_name, ground_review.reviewer_hash AS ground_rev…
#43 [20:21:47.862]
0.9ms
ground_review
SELECT ground_review.id AS ground_review_id, ground_review.ground_id AS ground_review_ground_id, ground_review.rating AS ground_review_rating, ground_review.review_text AS ground_review_review_text, ground_review.reviewer_name AS ground_review_reviewer_name, ground_review.reviewer_hash AS ground_rev…
#44 [20:21:47.864]
0.9ms
site_configuration
SELECT site_configuration.id AS site_configuration_id, site_configuration.key AS site_configuration_key, site_configuration.value AS site_configuration_value
FROM site_configuration
WHERE site_configuration.key IN (%(key_1_1)s, %(key_1_2)s, %(key_1_3)s, %(key_1_4)s)
#45 [20:21:47.865]
0.9ms
admin_menu_item
SELECT DISTINCT admin_menu_item.active_tab AS admin_menu_item_active_tab
FROM admin_menu_item