GET https://garage.farahtech.ma/supplier

Query Metrics

5 Database Queries
5 Different statements
7.45 ms Query time
0 Invalid entities
2 Managed entities

Grouped Statements

Show all queries

Time Count Info
3.24 ms
(43.52%)
1
SELECT count(DISTINCT s0_.id) AS sclr_0 FROM supplier s0_ LEFT JOIN supplier_credit s1_ ON s0_.id = s1_.supplier_id GROUP BY s0_.id
Parameters:
[]
1.56 ms
(20.90%)
1
SELECT s0_.id AS id_0, s0_.name AS name_1, s0_.contact_person AS contact_person_2, s0_.email AS email_3, s0_.phone AS phone_4, s0_.address AS address_5, s0_.tax_number AS tax_number_6, s0_.payment_terms AS payment_terms_7, s0_.website AS website_8, s0_.notes AS notes_9, s0_.created_at AS created_at_10, s0_.updated_at AS updated_at_11, COALESCE(SUM(CASE WHEN s1_.type = 'credit' THEN s1_.amount WHEN s1_.type = 'payment' THEN -s1_.amount ELSE 0 END), 0) AS sclr_12 FROM supplier s0_ LEFT JOIN supplier_credit s1_ ON s0_.id = s1_.supplier_id WHERE s0_.id IN (?) GROUP BY s0_.id ORDER BY s0_.id DESC
Parameters:
[
  1
]
1.10 ms
(14.75%)
1
SELECT DISTINCT s0_.id AS id_0, s0_.id AS id_1 FROM supplier s0_ LEFT JOIN supplier_credit s1_ ON s0_.id = s1_.supplier_id GROUP BY s0_.id ORDER BY s0_.id DESC LIMIT 12
Parameters:
[]
1.02 ms
(13.70%)
1
SELECT t0.id AS id_1, t0.amount AS amount_2, t0.type AS type_3, t0.status AS status_4, t0.date AS date_5, t0.reference AS reference_6, t0.description AS description_7, t0.created_at AS created_at_8, t0.updated_at AS updated_at_9, t0.supplier_id AS supplier_id_10, t0.delivery_note_id AS delivery_note_id_11, t0.supplier_payment_id AS supplier_payment_id_12 FROM supplier_credit t0 WHERE t0.supplier_id = ?
Parameters:
[
  1
]
0.53 ms
(7.13%)
1
SELECT t0.id AS id_1, t0.garage AS garage_2, t0.currency AS currency_3, t0.date_format AS date_format_4, t0.time_format AS time_format_5, t0.notifications AS notifications_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.logo AS logo_9 FROM app_settings t0 LIMIT 1
Parameters:
[]

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\Supplier 1
App\Entity\AppSettings 1

Entities Mapping