https://sys.nenocourier.co.ke/api/parcels/new

Query Metrics

24 Database Queries
16 Different statements
82.10 ms Query time
1 Invalid entities

Queries

Group similar statements

# Time Info
1 2.72 ms
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.is_active AS is_active_7, t0.person_id AS person_id_8 FROM user t0 WHERE t0.id = ? LIMIT 1
Parameters:
[
  172
]
2 1.51 ms
SELECT t0.id AS id_1, t0.organization_name AS organization_name_2, t0.code AS code_3, t0.county AS county_4, t0.town AS town_5, t0.address AS address_6, t0.person_id AS person_id_7, t0.created_by AS created_by_8 FROM organization t0 WHERE t0.id = ? LIMIT 1
Parameters:
[
  1
]
3 1.17 ms
SELECT s0_.id AS id_0, s0_.station_name AS station_name_1, s0_.station_address AS station_address_2, s0_.phone_numbers AS phone_numbers_3, s0_.created_at AS created_at_4, s0_.operating_hrs AS operating_hrs_5, s0_.is_mobile AS is_mobile_6, s0_.organization_id AS organization_id_7, s0_.created_by AS created_by_8 FROM station s0_ LIMIT 50
Parameters:
[]
4 1.23 ms
SELECT t0.id AS id_1, t0.is_active AS is_active_2, t0.created_at AS created_at_3, t0.user AS user_4, t0.station_id AS station_id_5 FROM user_station t0 WHERE t0.user = ? AND t0.is_active = ? ORDER BY t0.id DESC LIMIT 1
Parameters:
[
  172
  1
]
5 1.36 ms
SELECT t0.id AS id_1, t0.is_active AS is_active_2, t0.created_at AS created_at_3, t0.user AS user_4, t0.station_id AS station_id_5 FROM user_station t0 WHERE t0.user = ? AND t0.is_active = ? ORDER BY t0.id DESC LIMIT 1
Parameters:
[
  172
  1
]
6 4.52 ms
SELECT id FROM daily_account a WHERE 
                                   a.user_id = 172 
                                 and a.is_closed = false 
                                 and date(a.created_at) = cast(now() as date) ORDER BY a.id desc limit 1
Parameters:
[]
7 1.67 ms
SELECT t0.id AS id_1, t0.drawer_cash AS drawer_cash_2, t0.account_date AS account_date_3, t0.is_closed AS is_closed_4, t0.created_at AS created_at_5, t0.user_id AS user_id_6, t0.station_daily_account AS station_daily_account_7, t0.closed_by AS closed_by_8 FROM daily_account t0 WHERE t0.user_id = ? AND t0.is_closed = ? ORDER BY t0.id DESC LIMIT 1
Parameters:
[
  172
  0
]
8 2.02 ms
SELECT t0.id AS id_1, t0.account_date AS account_date_2, t0.is_closed AS is_closed_3, t0.closing_date AS closing_date_4, t0.is_banked AS is_banked_5, t0.created_at AS created_at_6, t0.closed_by AS closed_by_7, t0.created_by AS created_by_8, t0.station_id AS station_id_9 FROM station_daily_account t0 WHERE t0.station_id IS NULL AND t0.account_date = ? ORDER BY t0.id DESC LIMIT 1
Parameters:
[
  "2026-08-08"
]
9 0.44 ms
"START TRANSACTION"
Parameters:
[]
10 8.62 ms
INSERT INTO station_daily_account (account_date, is_closed, closing_date, is_banked, created_at, closed_by, created_by, station_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  "2026-08-08"
  0
  null
  0
  "2026-08-08 10:57:07"
  null
  172
  47
]
11 5.18 ms
INSERT INTO daily_account (drawer_cash, account_date, is_closed, created_at, user_id, station_daily_account, closed_by) VALUES (?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  0
  "2026-08-08"
  0
  "2026-08-08 10:57:07"
  172
  23966
  null
]
12 16.77 ms
"COMMIT"
Parameters:
[]
13 0.36 ms
"START TRANSACTION"
Parameters:
[]
14 3.84 ms
INSERT INTO way_bill (sender_name, sender_phone_number, receiver_name, receiver_phone_number, created_at, is_collected, is_received, received_at, percel_count, longitude, latitude, parcel_value, from_station_id, to_station_id, created_by, received_by, organization_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  "WINNIE NJERI"
  "0721 568 672"
  "LINET NJUE"
  "0795 984 254"
  "2026-08-08 10:57:07"
  0
  0
  null
  1
  36.957893371582
  -1.1608798503876
  0
  47
  25
  172
  null
  1
]
15 2.93 ms
INSERT INTO transaction (amount, cash_amount, mpesa_amount, tax_percentage, tax_amount, gross_amount, station_expenses, station_balance, expenses, balance, created_at, is_cancelled, is_complete, is_paid, paid_by, mpesa_payment_phone, payment_method, pin_number, cu_invoice_number, cu_invoice_number_credit, cu_serial_number, is_final, way_bill_id, created_by, organization_id, daily_account_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  200
  0
  0
  16
  27.59
  200
  0
  200
  0
  200
  "2026-08-08 10:57:07"
  0
  0
  0
  "CASH"
  null
  null
  null
  null
  null
  null
  0
  1393705
  172
  1
  48490
]
16 2.10 ms
INSERT INTO parcel (description, number, is_in_delivery, created_at, way_bill_id) VALUES (?, ?, ?, ?, ?)
Parameters:
[
  "red pk  soap"
  1
  0
  "2026-08-08 10:57:07"
  1393705
]
17 8.98 ms
"COMMIT"
Parameters:
[]
18 1.87 ms
SELECT t0.id AS id_1, t0.first_name AS first_name_2, t0.second_name AS second_name_3, t0.sir_name AS sir_name_4, t0.gender AS gender_5, t0.national_id AS national_id_6, t0.phone_number AS phone_number_7, t0.created_at AS created_at_8, t0.date_of_birth AS date_of_birth_9, t0.preferred_name AS preferred_name_10, t0.created_by AS created_by_11 FROM person t0 WHERE t0.id = ?
Parameters:
[
  3
]
19 2.40 ms
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.is_active AS is_active_7, t0.person_id AS person_id_8 FROM user t0 WHERE t0.id = ?
Parameters:
[
  2
]
20 4.00 ms
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.is_active AS is_active_7, t0.person_id AS person_id_8 FROM user t0 WHERE t0.id = ?
Parameters:
[
  86
]
21 4.25 ms
SELECT t0.id AS id_1, t0.first_name AS first_name_2, t0.second_name AS second_name_3, t0.sir_name AS sir_name_4, t0.gender AS gender_5, t0.national_id AS national_id_6, t0.phone_number AS phone_number_7, t0.created_at AS created_at_8, t0.date_of_birth AS date_of_birth_9, t0.preferred_name AS preferred_name_10, t0.created_by AS created_by_11 FROM person t0 WHERE t0.id = ?
Parameters:
[
  85
]
22 1.93 ms
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.is_active AS is_active_7, t0.person_id AS person_id_8 FROM user t0 WHERE t0.id = ?
Parameters:
[
  42
]
23 1.07 ms
SELECT t0.id AS id_1, t0.first_name AS first_name_2, t0.second_name AS second_name_3, t0.sir_name AS sir_name_4, t0.gender AS gender_5, t0.national_id AS national_id_6, t0.phone_number AS phone_number_7, t0.created_at AS created_at_8, t0.date_of_birth AS date_of_birth_9, t0.preferred_name AS preferred_name_10, t0.created_by AS created_by_11 FROM person t0 WHERE t0.id = ?
Parameters:
[
  44
]
24 1.15 ms
SELECT t0.id AS id_1, t0.first_name AS first_name_2, t0.second_name AS second_name_3, t0.sir_name AS sir_name_4, t0.gender AS gender_5, t0.national_id AS national_id_6, t0.phone_number AS phone_number_7, t0.created_at AS created_at_8, t0.date_of_birth AS date_of_birth_9, t0.preferred_name AS preferred_name_10, t0.created_by AS created_by_11 FROM person t0 WHERE t0.id = ?
Parameters:
[
  185
]

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\Organization 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.
App\Entity\Station No errors.
App\Entity\UserStation No errors.
App\Entity\Transaction No errors.
App\Entity\DailyAccount No errors.
App\Entity\StationDailyAccount No errors.
App\Entity\Parcel No errors.