Query Metrics

15 Database Queries
9 Different statements
21.34 ms Query time
0 Invalid entities
118 Managed entities

Queries

Group similar statements

# Time Info
1 3.58 ms
SELECT count(DISTINCT v0_.id) AS sclr_0 FROM vehicle v0_ LEFT JOIN vehicle_model v1_ ON v0_.vehicle_model_id = v1_.id LEFT JOIN brand b2_ ON v1_.brand_id = b2_.id LEFT JOIN model m3_ ON v1_.model_id = m3_.id LEFT JOIN body_type b4_ ON v1_.body_type_id = b4_.id LEFT JOIN fuel_type f5_ ON v1_.fuel_type_id = f5_.id
Parameters:
[]
2 4.98 ms
SELECT DISTINCT v0_.id AS id_0, b1_.name AS name_1 FROM vehicle v0_ LEFT JOIN vehicle_model v2_ ON v0_.vehicle_model_id = v2_.id LEFT JOIN brand b1_ ON v2_.brand_id = b1_.id LEFT JOIN model m3_ ON v2_.model_id = m3_.id LEFT JOIN body_type b4_ ON v2_.body_type_id = b4_.id LEFT JOIN fuel_type f5_ ON v2_.fuel_type_id = f5_.id ORDER BY b1_.name ASC LIMIT 12
Parameters:
[]
3 3.04 ms
SELECT v0_.id AS id_0, v0_.status AS status_1, v0_.usage_type AS usage_type_2, v0_.first_registration_date AS first_registration_date_3, v0_.mileage AS mileage_4, v0_.price AS price_5, v0_.vin AS vin_6, v0_.registration_number AS registration_number_7, v0_.is_featured AS is_featured_8, v0_.created_at AS created_at_9, v0_.updated_at AS updated_at_10, v1_.id AS id_11, v1_.euro_norm AS euro_norm_12, v1_.power_hp AS power_hp_13, v1_.power_fiscal AS power_fiscal_14, v1_.consumption AS consumption_15, v1_.co2 AS co2_16, v1_.cnit AS cnit_17, v1_.utac_code AS utac_code_18, v1_.homologation_date AS homologation_date_19, v1_.mass_min AS mass_min_20, v1_.mass_max AS mass_max_21, b2_.id AS id_22, b2_.name AS name_23, m3_.id AS id_24, m3_.name AS name_25, b4_.id AS id_26, b4_.name AS name_27, b4_.slug AS slug_28, b4_.position AS position_29, b4_.icon AS icon_30, f5_.id AS id_31, f5_.name AS name_32, v0_.vehicle_model_id AS vehicle_model_id_33, v0_.fuel_type_id AS fuel_type_id_34, v0_.gear_type_id AS gear_type_id_35, v0_.color_id AS color_id_36, v0_.supplier_id AS supplier_id_37, v1_.brand_id AS brand_id_38, v1_.model_id AS model_id_39, v1_.variant_id AS variant_id_40, v1_.fuel_type_id AS fuel_type_id_41, v1_.gear_type_id AS gear_type_id_42, v1_.body_type_id AS body_type_id_43, m3_.brand_id AS brand_id_44 FROM vehicle v0_ LEFT JOIN vehicle_model v1_ ON v0_.vehicle_model_id = v1_.id LEFT JOIN brand b2_ ON v1_.brand_id = b2_.id LEFT JOIN model m3_ ON v1_.model_id = m3_.id LEFT JOIN body_type b4_ ON v1_.body_type_id = b4_.id LEFT JOIN fuel_type f5_ ON v1_.fuel_type_id = f5_.id WHERE v0_.id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ORDER BY b2_.name ASC
Parameters:
[
  189
  235
  271
  296
  336
  417
  457
  32
  119
  127
  205
  303
]
4 0.72 ms
SELECT MIN(v0_.first_registration_date) AS sclr_0, MAX(v0_.first_registration_date) AS sclr_1 FROM vehicle v0_
Parameters:
[]
5 3.10 ms
SELECT b0_.id AS id_0, b0_.name AS name_1 FROM brand b0_ WHERE EXISTS (SELECT 1 AS sclr_2 FROM vehicle v1_ INNER JOIN vehicle_model v2_ ON v1_.vehicle_model_id = v2_.id WHERE v2_.brand_id = b0_.id) ORDER BY b0_.name ASC
Parameters:
[]
6 0.27 ms
SELECT b0_.id AS id_0, b0_.name AS name_1, b0_.slug AS slug_2, b0_.position AS position_3, b0_.icon AS icon_4 FROM body_type b0_ ORDER BY b0_.name ASC
Parameters:
[]
7 0.24 ms
SELECT f0_.id AS id_0, f0_.name AS name_1 FROM fuel_type f0_ ORDER BY f0_.name ASC
Parameters:
[]
8 0.36 ms
SELECT MIN(v0_.price) AS sclr_0 FROM vehicle v0_
Parameters:
[]
9 0.35 ms
SELECT MAX(v0_.price) AS sclr_0 FROM vehicle v0_
Parameters:
[]
10 0.57 ms
SELECT MIN(v0_.first_registration_date) AS sclr_0, MAX(v0_.first_registration_date) AS sclr_1 FROM vehicle v0_
Parameters:
[]
11 3.05 ms
SELECT b0_.id AS id_0, b0_.name AS name_1 FROM brand b0_ WHERE EXISTS (SELECT 1 AS sclr_2 FROM vehicle v1_ INNER JOIN vehicle_model v2_ ON v1_.vehicle_model_id = v2_.id WHERE v2_.brand_id = b0_.id) ORDER BY b0_.name ASC
Parameters:
[]
12 0.24 ms
SELECT b0_.id AS id_0, b0_.name AS name_1, b0_.slug AS slug_2, b0_.position AS position_3, b0_.icon AS icon_4 FROM body_type b0_ ORDER BY b0_.name ASC
Parameters:
[]
13 0.22 ms
SELECT f0_.id AS id_0, f0_.name AS name_1 FROM fuel_type f0_ ORDER BY f0_.name ASC
Parameters:
[]
14 0.32 ms
SELECT MIN(v0_.price) AS sclr_0 FROM vehicle v0_
Parameters:
[]
15 0.29 ms
SELECT MAX(v0_.price) AS sclr_0 FROM vehicle v0_
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\Brand 31
App\Entity\Vehicle 12
App\Entity\VehicleModel 12
App\Entity\FuelType 11
App\Entity\Supplier 11
App\Entity\Variant 10
App\Entity\Model 10
App\Entity\Color 9
App\Entity\BodyType 9
App\Entity\GearType 3

Entities Mapping

Class Mapping errors
App\Entity\Vehicle No errors.
App\Entity\VehicleModel No errors.
App\Entity\Brand No errors.
App\Entity\Model No errors.
App\Entity\BodyType No errors.
App\Entity\FuelType No errors.
App\Entity\GearType No errors.
App\Entity\Color No errors.
App\Entity\Supplier No errors.
App\Entity\Variant No errors.
App\Entity\Image No errors.
App\Entity\Dossier No errors.
App\Entity\Maintenance No errors.
App\Entity\Rental No errors.
App\Entity\Sale No errors.
App\Entity\Favorite No errors.
App\Entity\Feature No errors.
App\Entity\VehicleBadge No errors.