https://courier.ohau.co.ke/api/deliveries/1

Query Metrics

8 Database Queries
4 Different statements
123.70 ms Query time
2 Invalid entities
  • Grouped Statements
  • Database Connections
  • Entity Managers
  • Second Level Cache
  • Entities Mapping

Show all queries

Time Count Info
110.87 ms
(89.62%)
1
SELECT d0_.id AS id_0, d0_.is_received_fully AS is_received_fully_1, d0_.parcel_count AS parcel_count_2, s1_.id AS id_3, s2_.id AS id_4, d0_.is_cancelled AS is_cancelled_5, d0_.is_received AS is_received_6, d0_.is_loaded AS is_loaded_7, u3_.id AS id_8 FROM delivery d0_ INNER JOIN station s1_ ON d0_.destination = s1_.id INNER JOIN station s2_ ON d0_.origin_station = s2_.id INNER JOIN user u3_ ON d0_.created_by = u3_.id WHERE s2_.id = ? AND d0_.is_cancelled = 0 AND d0_.is_verified = 0
Parameters:
0 of 0
[ "1" ]
7.26 ms
(5.87%)
3
SELECT d0_.id AS id_0, w1_.id AS id_1, s2_.station_name AS station_name_2, t3_.amount AS amount_3, d4_.id AS id_4, p5_.id AS id_5, d0_.is_cancelled AS is_cancelled_6, d0_.cancelled_because AS cancelled_because_7, p6_.first_name AS first_name_8, p5_.description AS description_9 FROM delivery_parcel d0_ INNER JOIN parcel p5_ ON d0_.parcel_id = p5_.id INNER JOIN way_bill w1_ ON p5_.way_bill_id = w1_.id INNER JOIN transaction t3_ ON w1_.id = t3_.way_bill_id INNER JOIN station s2_ ON w1_.to_station_id = s2_.id INNER JOIN delivery d4_ ON d0_.delivery_id = d4_.id INNER JOIN user u7_ ON d0_.created_by = u7_.id INNER JOIN person p6_ ON u7_.person_id = p6_.id WHERE d4_.id = ?
Parameters:
0 of 0
[ 65321 ]
4.02 ms
(3.25%)
3
SELECT d0_.id AS id_0, v1_.id AS id_1, v1_.reg_number AS reg_number_2, d2_.id AS id_3 FROM delivery_vehicle d0_ LEFT JOIN delivery d2_ ON d0_.delivery_id = d2_.id LEFT JOIN vehicle v1_ ON d0_.vehicle_id = v1_.id LEFT JOIN station s3_ ON d2_.origin_station = s3_.id WHERE d2_.id = ? AND d0_.is_cancelled = 0
Parameters:
0 of 0
[ 65321 ]
1.55 ms
(1.26%)
1
SELECT t0.id AS id_1, t0.username AS username_2, t0.password AS password_3, t0.created_at AS created_at_4, t0.roles AS roles_5, t0.email AS email_6, t0.person_id AS person_id_7 FROM user t0 WHERE t0.id = ? LIMIT 1
Parameters:
0 of 0
[ 53 ]