#1 [20:25:24.764]
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:25:24.766]
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:25:24.768]
1.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:25:24.771]
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:25:24.822]
49.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:25:26.826]
2003.0ms
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:25:26.829]
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:25:26.831]
1.2ms
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:25:26.833]
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…
#10 [20:25:26.835]
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…
#11 [20:25:26.921]
84.6ms
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_…
#12 [20:25:26.924]
1.7ms
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) AND shoot_score.…
#13 [20:25:26.926]
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) AND shoot…
#14 [20:25:26.928]
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:25:26.933]
3.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…
#16 [20:25:26.935]
1.3ms
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:25:26.938]
1.5ms
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
#18 [20:25:26.942]
2.8ms
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…
#19 [20:25:26.946]
2.9ms
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 …
#20 [20:25:27.022]
74.1ms
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…
#21 [20:25:27.024]
1.2ms
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
#22 [20:25:27.026]
1.1ms
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
#23 [20:25:27.027]
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 = %(key_1)s
LIMIT %(param_1)s
#24 [20:25:27.029]
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
#25 [20:25:27.031]
1.1ms
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_…
#26 [20:25:27.033]
1.2ms
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…
#27 [20:25:27.034]
1.1ms
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…
#28 [20:25:27.037]
2.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 IN (%(key_1_1)s, %(key_1_2)s, %(key_1_3)s, %(key_1_4)s)
#29 [20:25:27.038]
1.0ms
admin_menu_item
SELECT DISTINCT admin_menu_item.active_tab AS admin_menu_item_active_tab
FROM admin_menu_item