https://sys.nenocourier.co.ke/api/sms/failed/22

Query Metrics

2 Database Queries
2 Different statements
1863.96 ms Query time
1 Invalid entities

Grouped Statements

Show all queries

Time Count Info
1862.62 ms
(99.93%)
1
select  ANY_VALUE(c.id) as sms_id, a.id as waybill,a.receiver_name,a.receiver_phone_number,a.sender_name, a.sender_phone_number,ANY_VALUE(c.recepient) as receipient,ANY_VALUE(c.sms) as sms ,c.status,ANY_VALUE(c.status_code) as status_code,ANY_VALUE(c.created_at) as created_at,
                    ( select description from parcel where way_bill_id= a.id limit 1) as description      
                from sms c 
                    JOIN transaction b on b.id = c.transaction_id 
                    JOIN way_bill a ON b.way_bill_id = a.id
            WHERE c.recepient = concat('+254',substr(Replace(a.receiver_phone_number,' ',''),2))
              AND c.status = 'Failed' 
              AND c.action = 'receiving'
              AND a.to_station_id = 22 
              AND (c.manually_sent= 0 or c.manually_sent IS NULL)  
              AND date(c.created_at) >= DATE_SUB(cast(now() as date),INTERVAL 5 DAY) group by c.transaction_id  order by c.transaction_id desc
Parameters:
[]
1.35 ms
(0.07%)
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:
[
  79
]

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.

Entities Mapping

Class Mapping errors
App\Entity\User No errors.
App\Entity\Person No errors.
App\Entity\WayBill
  • The field App\Entity\WayBill#collectedParcel is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity App\Entity\CollectedParcel#waybill does not contain the required 'inversedBy="collectedParcel"' attribute.