#1 [20:22:19.353]
1.9ms
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:22:19.355]
1.1ms
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:22:19.358]
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:22:19.360]
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:22:19.363]
1.6ms
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:22:21.223]
1859.3ms
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:22:21.226]
1.9ms
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:22:21.229]
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:22:21.321]
90.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:22:21.326]
2.0ms
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_…
#11 [20:22:21.328]
1.3ms
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.…
#12 [20:22:21.330]
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…
#13 [20:22:21.332]
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…
#14 [20:22:21.334]
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…
#15 [20:22:21.336]
1.4ms
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
#16 [20:22:21.423]
85.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…
#17 [20:22:21.522]
96.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 …
#18 [20:22:21.528]
3.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…
#19 [20:22:21.621]
92.6ms
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
#20 [20:22:21.623]
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
#21 [20:22:21.625]
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
#22 [20:22:21.721]
94.5ms
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
#23 [20:22:21.724]
1.2ms
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_…
#24 [20:22:21.725]
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…
#25 [20:22:21.727]
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…
#26 [20:22:21.729]
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 IN (%(key_1_1)s, %(key_1_2)s, %(key_1_3)s, %(key_1_4)s)
#27 [20:22:21.731]
1.0ms
admin_menu_item
SELECT DISTINCT admin_menu_item.active_tab AS admin_menu_item_active_tab
FROM admin_menu_item