GET https://lootopia-test.ordwen-dev.com/leaderboard?page=1

Query Metrics

33 Database Queries
5 Different statements
61.90 ms Query time
1 Invalid entities
53 Managed entities

Queries

Group similar statements

# Time Info
1 9.47 ms
SELECT count(DISTINCT u0_.id) AS sclr_0 FROM participant p1_ INNER JOIN user u0_ ON p1_.id = u0_.id LEFT JOIN participant_hunt p3_ ON p1_.id = p3_.participant_id LEFT JOIN hunt h2_ ON h2_.id = p3_.hunt_id LEFT JOIN participant_badge p4_ ON p1_.id = p4_.participant_id GROUP BY u0_.id
Parameters:
[]
2 2.78 ms
SELECT DISTINCT u0_.id AS id_0, p1_.completed_hunts_count AS completed_hunts_count_1, u0_.username AS username_2 FROM participant p1_ INNER JOIN user u0_ ON p1_.id = u0_.id LEFT JOIN participant_hunt p3_ ON p1_.id = p3_.participant_id LEFT JOIN hunt h2_ ON h2_.id = p3_.hunt_id LEFT JOIN participant_badge p4_ ON p1_.id = p4_.participant_id GROUP BY u0_.id ORDER BY p1_.completed_hunts_count DESC, u0_.username ASC LIMIT 15
Parameters:
[]
3 3.79 ms
SELECT u0_.id AS id_0, u0_.username AS username_1, u0_.firstname AS firstname_2, u0_.lastname AS lastname_3, u0_.mail_address AS mail_address_4, u0_.password AS password_5, u0_.created AS created_6, u0_.updated AS updated_7, p1_.crowns AS crowns_8, p1_.completed_hunts_count AS completed_hunts_count_9, p1_.avatar_path AS avatar_path_10, COUNT(DISTINCT h2_.id) AS sclr_11, COUNT(DISTINCT p3_.id) AS sclr_12, u0_.discriminator AS discriminator_13 FROM participant p1_ INNER JOIN user u0_ ON p1_.id = u0_.id LEFT JOIN participant_hunt p4_ ON p1_.id = p4_.participant_id LEFT JOIN hunt h2_ ON h2_.id = p4_.hunt_id LEFT JOIN participant_badge p3_ ON p1_.id = p3_.participant_id WHERE u0_.id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) GROUP BY u0_.id ORDER BY p1_.completed_hunts_count DESC, u0_.username ASC
Parameters:
[
  264
  268
  267
  255
  263
  260
  266
  256
  258
  254
  261
  250
  252
  253
  257
]
4 3.21 ms
SELECT t0.id AS id_1, t0.description AS description_2, t0.public AS public_3, t0.world AS world_4, t0.title AS title_5, t0.start_latitude AS start_latitude_6, t0.start_longitude AS start_longitude_7, t0.start_city AS start_city_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t11.id AS id_12, t11.cost AS cost_13, t11.participants_limit AS participants_limit_14, t11.hunt_id AS hunt_id_15, t0.organizer_id AS organizer_id_16, t17.id AS id_18, t17.latitude AS latitude_19, t17.longitude AS longitude_20, t17.radius AS radius_21, t17.hunt_id AS hunt_id_22 FROM hunt t0 LEFT JOIN participation_condition t11 ON t11.hunt_id = t0.id LEFT JOIN landmark t17 ON t17.hunt_id = t0.id INNER JOIN participant_hunt ON t0.id = participant_hunt.hunt_id WHERE participant_hunt.participant_id = ?
Parameters:
[
  264
]
5 1.60 ms
SELECT t0.id AS id_1, t0.obtained_at AS obtained_at_2, t0.participant_id AS participant_id_3, t0.badge_id AS badge_id_4 FROM participant_badge t0 WHERE t0.participant_id = ?
Parameters:
[
  264
]
6 1.81 ms
SELECT t0.id AS id_1, t0.description AS description_2, t0.public AS public_3, t0.world AS world_4, t0.title AS title_5, t0.start_latitude AS start_latitude_6, t0.start_longitude AS start_longitude_7, t0.start_city AS start_city_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t11.id AS id_12, t11.cost AS cost_13, t11.participants_limit AS participants_limit_14, t11.hunt_id AS hunt_id_15, t0.organizer_id AS organizer_id_16, t17.id AS id_18, t17.latitude AS latitude_19, t17.longitude AS longitude_20, t17.radius AS radius_21, t17.hunt_id AS hunt_id_22 FROM hunt t0 LEFT JOIN participation_condition t11 ON t11.hunt_id = t0.id LEFT JOIN landmark t17 ON t17.hunt_id = t0.id INNER JOIN participant_hunt ON t0.id = participant_hunt.hunt_id WHERE participant_hunt.participant_id = ?
Parameters:
[
  268
]
7 1.11 ms
SELECT t0.id AS id_1, t0.obtained_at AS obtained_at_2, t0.participant_id AS participant_id_3, t0.badge_id AS badge_id_4 FROM participant_badge t0 WHERE t0.participant_id = ?
Parameters:
[
  268
]
8 1.70 ms
SELECT t0.id AS id_1, t0.description AS description_2, t0.public AS public_3, t0.world AS world_4, t0.title AS title_5, t0.start_latitude AS start_latitude_6, t0.start_longitude AS start_longitude_7, t0.start_city AS start_city_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t11.id AS id_12, t11.cost AS cost_13, t11.participants_limit AS participants_limit_14, t11.hunt_id AS hunt_id_15, t0.organizer_id AS organizer_id_16, t17.id AS id_18, t17.latitude AS latitude_19, t17.longitude AS longitude_20, t17.radius AS radius_21, t17.hunt_id AS hunt_id_22 FROM hunt t0 LEFT JOIN participation_condition t11 ON t11.hunt_id = t0.id LEFT JOIN landmark t17 ON t17.hunt_id = t0.id INNER JOIN participant_hunt ON t0.id = participant_hunt.hunt_id WHERE participant_hunt.participant_id = ?
Parameters:
[
  267
]
9 1.12 ms
SELECT t0.id AS id_1, t0.obtained_at AS obtained_at_2, t0.participant_id AS participant_id_3, t0.badge_id AS badge_id_4 FROM participant_badge t0 WHERE t0.participant_id = ?
Parameters:
[
  267
]
10 1.66 ms
SELECT t0.id AS id_1, t0.description AS description_2, t0.public AS public_3, t0.world AS world_4, t0.title AS title_5, t0.start_latitude AS start_latitude_6, t0.start_longitude AS start_longitude_7, t0.start_city AS start_city_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t11.id AS id_12, t11.cost AS cost_13, t11.participants_limit AS participants_limit_14, t11.hunt_id AS hunt_id_15, t0.organizer_id AS organizer_id_16, t17.id AS id_18, t17.latitude AS latitude_19, t17.longitude AS longitude_20, t17.radius AS radius_21, t17.hunt_id AS hunt_id_22 FROM hunt t0 LEFT JOIN participation_condition t11 ON t11.hunt_id = t0.id LEFT JOIN landmark t17 ON t17.hunt_id = t0.id INNER JOIN participant_hunt ON t0.id = participant_hunt.hunt_id WHERE participant_hunt.participant_id = ?
Parameters:
[
  255
]
11 1.16 ms
SELECT t0.id AS id_1, t0.obtained_at AS obtained_at_2, t0.participant_id AS participant_id_3, t0.badge_id AS badge_id_4 FROM participant_badge t0 WHERE t0.participant_id = ?
Parameters:
[
  255
]
12 1.54 ms
SELECT t0.id AS id_1, t0.description AS description_2, t0.public AS public_3, t0.world AS world_4, t0.title AS title_5, t0.start_latitude AS start_latitude_6, t0.start_longitude AS start_longitude_7, t0.start_city AS start_city_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t11.id AS id_12, t11.cost AS cost_13, t11.participants_limit AS participants_limit_14, t11.hunt_id AS hunt_id_15, t0.organizer_id AS organizer_id_16, t17.id AS id_18, t17.latitude AS latitude_19, t17.longitude AS longitude_20, t17.radius AS radius_21, t17.hunt_id AS hunt_id_22 FROM hunt t0 LEFT JOIN participation_condition t11 ON t11.hunt_id = t0.id LEFT JOIN landmark t17 ON t17.hunt_id = t0.id INNER JOIN participant_hunt ON t0.id = participant_hunt.hunt_id WHERE participant_hunt.participant_id = ?
Parameters:
[
  263
]
13 1.11 ms
SELECT t0.id AS id_1, t0.obtained_at AS obtained_at_2, t0.participant_id AS participant_id_3, t0.badge_id AS badge_id_4 FROM participant_badge t0 WHERE t0.participant_id = ?
Parameters:
[
  263
]
14 1.53 ms
SELECT t0.id AS id_1, t0.description AS description_2, t0.public AS public_3, t0.world AS world_4, t0.title AS title_5, t0.start_latitude AS start_latitude_6, t0.start_longitude AS start_longitude_7, t0.start_city AS start_city_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t11.id AS id_12, t11.cost AS cost_13, t11.participants_limit AS participants_limit_14, t11.hunt_id AS hunt_id_15, t0.organizer_id AS organizer_id_16, t17.id AS id_18, t17.latitude AS latitude_19, t17.longitude AS longitude_20, t17.radius AS radius_21, t17.hunt_id AS hunt_id_22 FROM hunt t0 LEFT JOIN participation_condition t11 ON t11.hunt_id = t0.id LEFT JOIN landmark t17 ON t17.hunt_id = t0.id INNER JOIN participant_hunt ON t0.id = participant_hunt.hunt_id WHERE participant_hunt.participant_id = ?
Parameters:
[
  260
]
15 1.09 ms
SELECT t0.id AS id_1, t0.obtained_at AS obtained_at_2, t0.participant_id AS participant_id_3, t0.badge_id AS badge_id_4 FROM participant_badge t0 WHERE t0.participant_id = ?
Parameters:
[
  260
]
16 1.53 ms
SELECT t0.id AS id_1, t0.description AS description_2, t0.public AS public_3, t0.world AS world_4, t0.title AS title_5, t0.start_latitude AS start_latitude_6, t0.start_longitude AS start_longitude_7, t0.start_city AS start_city_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t11.id AS id_12, t11.cost AS cost_13, t11.participants_limit AS participants_limit_14, t11.hunt_id AS hunt_id_15, t0.organizer_id AS organizer_id_16, t17.id AS id_18, t17.latitude AS latitude_19, t17.longitude AS longitude_20, t17.radius AS radius_21, t17.hunt_id AS hunt_id_22 FROM hunt t0 LEFT JOIN participation_condition t11 ON t11.hunt_id = t0.id LEFT JOIN landmark t17 ON t17.hunt_id = t0.id INNER JOIN participant_hunt ON t0.id = participant_hunt.hunt_id WHERE participant_hunt.participant_id = ?
Parameters:
[
  266
]
17 1.06 ms
SELECT t0.id AS id_1, t0.obtained_at AS obtained_at_2, t0.participant_id AS participant_id_3, t0.badge_id AS badge_id_4 FROM participant_badge t0 WHERE t0.participant_id = ?
Parameters:
[
  266
]
18 1.63 ms
SELECT t0.id AS id_1, t0.description AS description_2, t0.public AS public_3, t0.world AS world_4, t0.title AS title_5, t0.start_latitude AS start_latitude_6, t0.start_longitude AS start_longitude_7, t0.start_city AS start_city_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t11.id AS id_12, t11.cost AS cost_13, t11.participants_limit AS participants_limit_14, t11.hunt_id AS hunt_id_15, t0.organizer_id AS organizer_id_16, t17.id AS id_18, t17.latitude AS latitude_19, t17.longitude AS longitude_20, t17.radius AS radius_21, t17.hunt_id AS hunt_id_22 FROM hunt t0 LEFT JOIN participation_condition t11 ON t11.hunt_id = t0.id LEFT JOIN landmark t17 ON t17.hunt_id = t0.id INNER JOIN participant_hunt ON t0.id = participant_hunt.hunt_id WHERE participant_hunt.participant_id = ?
Parameters:
[
  256
]
19 1.19 ms
SELECT t0.id AS id_1, t0.obtained_at AS obtained_at_2, t0.participant_id AS participant_id_3, t0.badge_id AS badge_id_4 FROM participant_badge t0 WHERE t0.participant_id = ?
Parameters:
[
  256
]
20 1.63 ms
SELECT t0.id AS id_1, t0.description AS description_2, t0.public AS public_3, t0.world AS world_4, t0.title AS title_5, t0.start_latitude AS start_latitude_6, t0.start_longitude AS start_longitude_7, t0.start_city AS start_city_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t11.id AS id_12, t11.cost AS cost_13, t11.participants_limit AS participants_limit_14, t11.hunt_id AS hunt_id_15, t0.organizer_id AS organizer_id_16, t17.id AS id_18, t17.latitude AS latitude_19, t17.longitude AS longitude_20, t17.radius AS radius_21, t17.hunt_id AS hunt_id_22 FROM hunt t0 LEFT JOIN participation_condition t11 ON t11.hunt_id = t0.id LEFT JOIN landmark t17 ON t17.hunt_id = t0.id INNER JOIN participant_hunt ON t0.id = participant_hunt.hunt_id WHERE participant_hunt.participant_id = ?
Parameters:
[
  258
]
21 1.09 ms
SELECT t0.id AS id_1, t0.obtained_at AS obtained_at_2, t0.participant_id AS participant_id_3, t0.badge_id AS badge_id_4 FROM participant_badge t0 WHERE t0.participant_id = ?
Parameters:
[
  258
]
22 1.56 ms
SELECT t0.id AS id_1, t0.description AS description_2, t0.public AS public_3, t0.world AS world_4, t0.title AS title_5, t0.start_latitude AS start_latitude_6, t0.start_longitude AS start_longitude_7, t0.start_city AS start_city_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t11.id AS id_12, t11.cost AS cost_13, t11.participants_limit AS participants_limit_14, t11.hunt_id AS hunt_id_15, t0.organizer_id AS organizer_id_16, t17.id AS id_18, t17.latitude AS latitude_19, t17.longitude AS longitude_20, t17.radius AS radius_21, t17.hunt_id AS hunt_id_22 FROM hunt t0 LEFT JOIN participation_condition t11 ON t11.hunt_id = t0.id LEFT JOIN landmark t17 ON t17.hunt_id = t0.id INNER JOIN participant_hunt ON t0.id = participant_hunt.hunt_id WHERE participant_hunt.participant_id = ?
Parameters:
[
  254
]
23 1.55 ms
SELECT t0.id AS id_1, t0.obtained_at AS obtained_at_2, t0.participant_id AS participant_id_3, t0.badge_id AS badge_id_4 FROM participant_badge t0 WHERE t0.participant_id = ?
Parameters:
[
  254
]
24 1.55 ms
SELECT t0.id AS id_1, t0.description AS description_2, t0.public AS public_3, t0.world AS world_4, t0.title AS title_5, t0.start_latitude AS start_latitude_6, t0.start_longitude AS start_longitude_7, t0.start_city AS start_city_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t11.id AS id_12, t11.cost AS cost_13, t11.participants_limit AS participants_limit_14, t11.hunt_id AS hunt_id_15, t0.organizer_id AS organizer_id_16, t17.id AS id_18, t17.latitude AS latitude_19, t17.longitude AS longitude_20, t17.radius AS radius_21, t17.hunt_id AS hunt_id_22 FROM hunt t0 LEFT JOIN participation_condition t11 ON t11.hunt_id = t0.id LEFT JOIN landmark t17 ON t17.hunt_id = t0.id INNER JOIN participant_hunt ON t0.id = participant_hunt.hunt_id WHERE participant_hunt.participant_id = ?
Parameters:
[
  261
]
25 1.24 ms
SELECT t0.id AS id_1, t0.obtained_at AS obtained_at_2, t0.participant_id AS participant_id_3, t0.badge_id AS badge_id_4 FROM participant_badge t0 WHERE t0.participant_id = ?
Parameters:
[
  261
]
26 1.69 ms
SELECT t0.id AS id_1, t0.description AS description_2, t0.public AS public_3, t0.world AS world_4, t0.title AS title_5, t0.start_latitude AS start_latitude_6, t0.start_longitude AS start_longitude_7, t0.start_city AS start_city_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t11.id AS id_12, t11.cost AS cost_13, t11.participants_limit AS participants_limit_14, t11.hunt_id AS hunt_id_15, t0.organizer_id AS organizer_id_16, t17.id AS id_18, t17.latitude AS latitude_19, t17.longitude AS longitude_20, t17.radius AS radius_21, t17.hunt_id AS hunt_id_22 FROM hunt t0 LEFT JOIN participation_condition t11 ON t11.hunt_id = t0.id LEFT JOIN landmark t17 ON t17.hunt_id = t0.id INNER JOIN participant_hunt ON t0.id = participant_hunt.hunt_id WHERE participant_hunt.participant_id = ?
Parameters:
[
  250
]
27 1.10 ms
SELECT t0.id AS id_1, t0.obtained_at AS obtained_at_2, t0.participant_id AS participant_id_3, t0.badge_id AS badge_id_4 FROM participant_badge t0 WHERE t0.participant_id = ?
Parameters:
[
  250
]
28 1.61 ms
SELECT t0.id AS id_1, t0.description AS description_2, t0.public AS public_3, t0.world AS world_4, t0.title AS title_5, t0.start_latitude AS start_latitude_6, t0.start_longitude AS start_longitude_7, t0.start_city AS start_city_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t11.id AS id_12, t11.cost AS cost_13, t11.participants_limit AS participants_limit_14, t11.hunt_id AS hunt_id_15, t0.organizer_id AS organizer_id_16, t17.id AS id_18, t17.latitude AS latitude_19, t17.longitude AS longitude_20, t17.radius AS radius_21, t17.hunt_id AS hunt_id_22 FROM hunt t0 LEFT JOIN participation_condition t11 ON t11.hunt_id = t0.id LEFT JOIN landmark t17 ON t17.hunt_id = t0.id INNER JOIN participant_hunt ON t0.id = participant_hunt.hunt_id WHERE participant_hunt.participant_id = ?
Parameters:
[
  252
]
29 1.17 ms
SELECT t0.id AS id_1, t0.obtained_at AS obtained_at_2, t0.participant_id AS participant_id_3, t0.badge_id AS badge_id_4 FROM participant_badge t0 WHERE t0.participant_id = ?
Parameters:
[
  252
]
30 1.94 ms
SELECT t0.id AS id_1, t0.description AS description_2, t0.public AS public_3, t0.world AS world_4, t0.title AS title_5, t0.start_latitude AS start_latitude_6, t0.start_longitude AS start_longitude_7, t0.start_city AS start_city_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t11.id AS id_12, t11.cost AS cost_13, t11.participants_limit AS participants_limit_14, t11.hunt_id AS hunt_id_15, t0.organizer_id AS organizer_id_16, t17.id AS id_18, t17.latitude AS latitude_19, t17.longitude AS longitude_20, t17.radius AS radius_21, t17.hunt_id AS hunt_id_22 FROM hunt t0 LEFT JOIN participation_condition t11 ON t11.hunt_id = t0.id LEFT JOIN landmark t17 ON t17.hunt_id = t0.id INNER JOIN participant_hunt ON t0.id = participant_hunt.hunt_id WHERE participant_hunt.participant_id = ?
Parameters:
[
  253
]
31 1.08 ms
SELECT t0.id AS id_1, t0.obtained_at AS obtained_at_2, t0.participant_id AS participant_id_3, t0.badge_id AS badge_id_4 FROM participant_badge t0 WHERE t0.participant_id = ?
Parameters:
[
  253
]
32 1.81 ms
SELECT t0.id AS id_1, t0.description AS description_2, t0.public AS public_3, t0.world AS world_4, t0.title AS title_5, t0.start_latitude AS start_latitude_6, t0.start_longitude AS start_longitude_7, t0.start_city AS start_city_8, t0.created_at AS created_at_9, t0.updated_at AS updated_at_10, t11.id AS id_12, t11.cost AS cost_13, t11.participants_limit AS participants_limit_14, t11.hunt_id AS hunt_id_15, t0.organizer_id AS organizer_id_16, t17.id AS id_18, t17.latitude AS latitude_19, t17.longitude AS longitude_20, t17.radius AS radius_21, t17.hunt_id AS hunt_id_22 FROM hunt t0 LEFT JOIN participation_condition t11 ON t11.hunt_id = t0.id LEFT JOIN landmark t17 ON t17.hunt_id = t0.id INNER JOIN participant_hunt ON t0.id = participant_hunt.hunt_id WHERE participant_hunt.participant_id = ?
Parameters:
[
  257
]
33 2.80 ms
SELECT t0.id AS id_1, t0.obtained_at AS obtained_at_2, t0.participant_id AS participant_id_3, t0.badge_id AS badge_id_4 FROM participant_badge t0 WHERE t0.participant_id = ?
Parameters:
[
  257
]

Database Connections

Name Service
default doctrine.dbal.default_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager

Second Level Cache

Second Level Cache is not enabled.

Managed Entities

default entity manager

Class Amount of managed objects
App\Entity\User 19
App\Entity\Hunt 11
App\Entity\ParticipationCondition 11
App\Entity\Landmark 6
App\Entity\ParticipantBadge 3
App\Entity\Badge 3

Entities Mapping

Class Mapping errors
App\Entity\User No errors.
App\Entity\Participant No errors.
App\Entity\Hunt
  • The field 'App\Entity\Hunt#startLatitude' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
  • The field 'App\Entity\Hunt#startLongitude' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.
App\Entity\ParticipantBadge No errors.
App\Entity\ParticipantArtifact No errors.
App\Entity\Transaction No errors.
App\Entity\ParticipationCondition No errors.
App\Entity\Organizer No errors.
App\Entity\Landmark No errors.
App\Entity\Reward No errors.
App\Entity\Badge No errors.