GET https://prod-api.callme4d.com/v3/admin/dash/statistics/Asia-Riyadh

Query Metrics

9 Database Queries
9 Different statements
865.69 ms Query time
6 Invalid entities
1 Managed entities

Grouped Statements

Show all queries

Time Count Info
824.41 ms
(95.23%)
1
SELECT o0_.id AS id_0, c1_.id AS id_1, c1_.captain_name AS captain_name_2, c1_.created_at AS created_at_3, o0_.created_at AS created_at_4, i2_.image_path AS image_path_5, e3_.id AS id_6, e3_.company_name AS company_name_7, o4_.created_at AS created_at_8 FROM order_entity o0_ LEFT JOIN order_status_entity o5_ ON (o5_.order_id_id = o0_.id) LEFT JOIN captain_entity c1_ ON (c1_.id = o5_.captain_profile_id) LEFT JOIN image_entity i2_ ON (i2_.item_id = c1_.id AND i2_.entity_type = ? AND i2_.used_as = ?) LEFT JOIN externally_delivered_order_entity e6_ ON (e6_.order_id_id = o0_.id AND e6_.status IN (?, ?, ?, ?, ?, ?, ?)) LEFT JOIN external_delivery_company_entity e3_ ON (e3_.id = e6_.external_delivery_company_id) LEFT JOIN order_log_entity o4_ ON (o4_.order_id_id = o0_.id) WHERE o0_.state = ? AND (o4_.state = ? AND o4_.action IN (?, ?, ?, ?, ?)) ORDER BY o0_.id DESC LIMIT 5
Parameters:
[
  2
  0
  "DELIVERED"
  "Delivered"
  "Pending order preparation"
  "Order delivered"
  "delivered"
  "RAP"
  "Delivered"
  "delivered"
  6
  43
  44
  20
  14
  72
]
16.78 ms
(1.94%)
1
SELECT DATE_FORMAT(o0_.created_at, '%Y-%m-%d') AS sclr_0, COUNT(o0_.id) AS sclr_1 FROM order_entity o0_ WHERE o0_.state = ? AND o0_.created_at >= ? AND o0_.created_at <= ? GROUP BY sclr_0 ORDER BY sclr_0 DESC
Parameters:
[
  "delivered"
  "2025-12-11 03:00:00"
  "2025-12-18 02:59:59"
]
8.04 ms
(0.93%)
1
SELECT COUNT(*) FROM order_status_entity t0 WHERE t0.status = ? AND t0.is_hide = ?
Parameters:
[
  1
  2
]
8.03 ms
(0.93%)
1
SELECT DATE_FORMAT(w0_.created_at, '%Y-%m-%d') AS sclr_0, COUNT(w0_.id) AS sclr_1 FROM whatsapp_order_details_entity w0_ WHERE ((w0_.is_delivery = ?) OR (w0_.is_delivery = ? AND w0_.delivery_company <> ?)) AND w0_.order_status = ? AND w0_.created_at >= ? AND w0_.created_at <= ? GROUP BY sclr_0 ORDER BY sclr_0 DESC
Parameters:
[
  0
  1
  1
  8
  "2025-12-11 03:00:00"
  "2025-12-18 02:59:59"
]
6.19 ms
(0.72%)
1
SELECT COUNT(*) FROM order_status_entity t0 WHERE t0.status IN (?, ?, ?)
Parameters:
[
  2
  3
  5
]
0.74 ms
(0.09%)
1
SELECT o0_.id AS id_0, o0_.created_at AS created_at_1, o0_.whatsapp_order_id AS whatsapp_order_id_2, s1_.id AS id_3, s1_.store_owner_name AS store_owner_name_4, s1_.images AS images_5, s1_.created_at AS created_at_6 FROM order_entity o0_ LEFT JOIN store_owner_profile_entity s1_ ON (s1_.id = o0_.store_owner_id) WHERE o0_.state IN (?, ?, ?, ?, ?, ?) ORDER BY o0_.id DESC LIMIT 5
Parameters:
[
  "pending"
  "on way to pick order"
  "in store"
  "picked"
  "ongoing"
  "delivered"
]
0.63 ms
(0.07%)
1
SELECT w0_.id AS id_0, w0_.created_at AS created_at_1, s1_.id AS id_2, s1_.store_owner_name AS store_owner_name_3, s1_.images AS images_4, s1_.created_at AS created_at_5 FROM whatsapp_order_details_entity w0_ LEFT JOIN store_owner_branch_entity s2_ ON (s2_.id = w0_.store_branch_id) LEFT JOIN store_owner_profile_entity s1_ ON (s1_.id = s2_.store_owner_id) WHERE w0_.order_status IN (?, ?, ?) ORDER BY w0_.id DESC LIMIT 5
Parameters:
[
  6
  7
  8
]
0.53 ms
(0.06%)
1
SELECT c0_.id AS id_0, c0_.name AS name_1 FROM city_entity c0_ WHERE c0_.status = ?
Parameters:
[
  1
]
0.33 ms
(0.04%)
1
SELECT t0.id AS id_1, t0.user_id AS user_id_2, t0.roles AS roles_3, t0.password AS password_4, t0.verification_status AS verification_status_5, t0.status AS status_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8 FROM user_entity t0 WHERE t0.user_id = ? LIMIT 1
Parameters:
[
  "966552222223"
]

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\UserEntity 1

Entities Mapping

Class Mapping errors
App\Entity\UserEntity No errors.
App\Entity\RateEntity
  • The mappings App\Entity\RateEntity#rated and App\Entity\UserEntity#rateEntities are inconsistent with each other.
App\Entity\VerificationEntity No errors.
App\Entity\ResetPasswordOrderEntity No errors.
App\Entity\NotificationFirebaseTokenEntity No errors.
App\Entity\OrderEntity
  • The mappings App\Entity\OrderEntity#OrderLogsEntity and App\Entity\OrderTimeLineEntity#orderId are inconsistent with each other.
App\Entity\WhatsappOrderDetailsEntity No errors.
App\Entity\StoreOwnerProfileEntity
  • The mappings App\Entity\StoreOwnerProfileEntity#OrderLogsEntity and App\Entity\OrderTimeLineEntity#storeOwnerProfile are inconsistent with each other.
App\Entity\StoreOwnerBranchEntity
  • The mappings App\Entity\StoreOwnerBranchEntity#orderLogsEntity and App\Entity\OrderTimeLineEntity#storeOwnerBranch are inconsistent with each other.
  • The mappings App\Entity\StoreOwnerBranchEntity#cityId and App\Entity\CityEntity#stores are inconsistent with each other.
App\Entity\OrderStatusEntity No errors.
App\Entity\CaptainEntity
  • The mappings App\Entity\CaptainEntity#OrderLogsEntity and App\Entity\OrderTimeLineEntity#captainProfile are inconsistent with each other.
  • The association App\Entity\CaptainEntity#deletedBy refers to the inverse side field App\Entity\AdminProfileEntity#deletedCaptainsProfiles which does not exist.
  • The mappings App\Entity\CaptainEntity#cityId and App\Entity\CityEntity#captains are inconsistent with each other.
App\Entity\ImageEntity No errors.
App\Entity\ExternallyDeliveredOrderEntity No errors.
App\Entity\ExternalDeliveryCompanyEntity No errors.
App\Entity\OrderLogEntity No errors.
App\Entity\CityEntity
  • The association App\Entity\CityEntity#captains refers to the owning side field App\Entity\CaptainEntity#cityEntity which does not exist.
  • The association App\Entity\CityEntity#stores refers to the owning side field App\Entity\StoreOwnerProfileEntity#cityEntity which does not exist.