Query Metrics

12 Database Queries
11 Different statements
580.95 ms Query time
0 Invalid entities
0 Cache hits
0 Cache misses
1 Cache puts

Grouped Statements

Show all queries

default connection

Time Count Info
472.11 ms
(81.27%)
1
SELECT DISTINCT p0_.id AS id_0, (SELECT SUM(d1_.quantity) AS sclr_2 FROM depot_product d1_ WHERE d1_.product = p0_.id AND d1_.depot = ?) AS sclr_1 FROM product p0_ LEFT JOIN depot_product d2_ ON p0_.id = d2_.product LEFT JOIN depot d3_ ON d2_.depot = d3_.id WHERE (p0_.disabled IS NULL OR p0_.disabled = false) AND (EXISTS (SELECT 1 AS sclr_3 FROM depot_product d4_ WHERE d4_.product = p0_.id AND d4_.quantity > 0 AND d4_.price > 0)) ORDER BY sclr_1 DESC LIMIT 8 OFFSET 3296
Parameters:
[
  4
]
58.40 ms
(10.05%)
1
SELECT count(DISTINCT p0_.id) AS sclr_0 FROM product p0_ LEFT JOIN depot_product d1_ ON p0_.id = d1_.product LEFT JOIN depot d2_ ON d1_.depot = d2_.id WHERE (p0_.disabled IS NULL OR p0_.disabled = false) AND (EXISTS (SELECT 1 AS sclr_1 FROM depot_product d3_ WHERE d3_.product = p0_.id AND d3_.quantity > 0 AND d3_.price > 0))
Parameters:
[]
15.27 ms
(2.63%)
1
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.sorting_priority AS sorting_priority_2, p0_.created_at AS created_at_3, p0_.updated_at AS updated_at_4, p0_.synced_at AS synced_at_5, p0_.index_at AS index_at_6, p0_.remote_id AS remote_id_7 FROM product_manufacturer p0_ WHERE EXISTS (SELECT p1_.id FROM product p1_ WHERE (p1_.disabled IS NULL OR p1_.disabled = false) AND (EXISTS (SELECT 1 AS sclr_8 FROM depot_product d2_ WHERE d2_.product = p1_.id AND d2_.quantity > 0)) AND p1_.category IN (?) AND p1_.manufacturer = p0_.id)
Parameters:
[
  [
    "21"
  ]
]
7.60 ms
(1.31%)
1
SELECT p0_.id AS id_0, p0_.name AS name_1, p0_.sorting_priority AS sorting_priority_2, p0_.created_at AS created_at_3, p0_.updated_at AS updated_at_4, p0_.synced_at AS synced_at_5, p0_.index_at AS index_at_6, p0_.remote_id AS remote_id_7 FROM product_manufacturer p0_ WHERE EXISTS (SELECT 1 AS sclr_8 FROM product p1_ WHERE p1_.manufacturer = p0_.id)
Parameters:
[]
6.73 ms
(1.16%)
1
SELECT (SELECT SUM(d0_.quantity) AS sclr_1 FROM depot_product d0_ WHERE d0_.product = p1_.id AND d0_.depot = ?) AS sclr_0, p1_.id AS id_2, p1_.code AS code_3, p1_.barcode AS barcode_4, p1_.title AS title_5, p1_.original_title AS original_title_6, p1_.search_title AS search_title_7, p1_.slug AS slug_8, p1_.origin AS origin_9, p1_.link AS link_10, p1_.inner_diameter_min AS inner_diameter_min_11, p1_.inner_diameter_max AS inner_diameter_max_12, p1_.outer_diameter_min AS outer_diameter_min_13, p1_.outer_diameter_max AS outer_diameter_max_14, p1_.width_min AS width_min_15, p1_.width_max AS width_max_16, p1_.weight AS weight_17, p1_.gross_price AS gross_price_18, p1_.minimal_quantity AS minimal_quantity_19, p1_.disabled AS disabled_20, p1_.created_at AS created_at_21, p1_.updated_at AS updated_at_22, p1_.synced_at AS synced_at_23, p1_.index_at AS index_at_24, p1_.remote_id AS remote_id_25, d2_.id AS id_26, d2_.remote_id AS remote_id_27, d2_.quantity AS quantity_28, d2_.minimal_quantity AS minimal_quantity_29, d2_.optimal_quantity AS optimal_quantity_30, d2_.price AS price_31, d2_.tax_rate AS tax_rate_32, d2_.location AS location_33, d2_.created_at AS created_at_34, d2_.updated_at AS updated_at_35, d2_.synced_at AS synced_at_36, d2_.index_at AS index_at_37, d3_.id AS id_38, d3_.name AS name_39, d3_.country AS country_40, d3_.colors AS colors_41, d3_.deliver_at AS deliver_at_42, d3_.created_at AS created_at_43, d3_.updated_at AS updated_at_44, d3_.synced_at AS synced_at_45, d3_.index_at AS index_at_46, p1_.category AS category_47, p1_.sub_category AS sub_category_48, p1_.product_group AS product_group_49, p1_.manufacturer AS manufacturer_50, p1_.unit_of_measurement AS unit_of_measurement_51, d2_.product AS product_52, d2_.depot AS depot_53, d3_.currency AS currency_54 FROM product p1_ LEFT JOIN depot_product d2_ ON p1_.id = d2_.product LEFT JOIN depot d3_ ON d2_.depot = d3_.id WHERE (p1_.disabled IS NULL OR p1_.disabled = false) AND (EXISTS (SELECT 1 AS sclr_55 FROM depot_product d4_ WHERE d4_.product = p1_.id AND d4_.quantity > 0 AND d4_.price > 0)) AND p1_.id IN (?) ORDER BY sclr_0 DESC
Parameters:
[
  4
  [
    549
    591
    610
    626
    656
    658
    659
    668
  ]
]
5.50 ms
(0.95%)
1
SELECT t0.id AS id_1, t0.title AS title_2, t0.file_name AS file_name_3, t0.tries AS tries_4, t0.error AS error_5, t0.original AS original_6, t0.created_at AS created_at_7, t0.updated_at AS updated_at_8, t0.synced_at AS synced_at_9, t0.index_at AS index_at_10, t0.product AS product_11 FROM product_photo t0 WHERE t0.product IN (?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  549
  591
  610
  626
  656
  658
  659
  668
]
4.60 ms
(0.79%)
1
SELECT c0_.code AS code_0, c0_.name AS name_1, c0_.rate AS rate_2, c0_.created_at AS created_at_3, c0_.updated_at AS updated_at_4, c0_.synced_at AS synced_at_5, c0_.index_at AS index_at_6 FROM currency c0_ WHERE c0_.code = ?
Parameters:
[
  "RSD"
]
3.09 ms
(0.53%)
1
SELECT p0_.id AS id_0, p0_.remote_id AS remote_id_1, p0_.code AS code_2, p0_.name AS name_3, p0_.created_at AS created_at_4, p0_.updated_at AS updated_at_5, p0_.synced_at AS synced_at_6, p0_.index_at AS index_at_7, p0_.product_category AS product_category_8 FROM product_sub_category p0_ WHERE EXISTS (SELECT 1 AS sclr_9 FROM product p1_ WHERE p1_.sub_category = p0_.id)
Parameters:
[]
2.78 ms
(0.48%)
1
SELECT t0.id AS id_1, t0.page AS page_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.synced_at AS synced_at_5, t0.index_at AS index_at_6, t0.document AS document_7, t0.product AS product_8 FROM product_document t0 WHERE t0.product IN (?, ?, ?, ?, ?, ?, ?, ?)
Parameters:
[
  549
  591
  610
  626
  656
  658
  659
  668
]
2.73 ms
(0.47%)
2
SELECT p0_.id AS id_0, p0_.remote_id AS remote_id_1, p0_.created_at AS created_at_2, p0_.updated_at AS updated_at_3, p0_.synced_at AS synced_at_4, p0_.index_at AS index_at_5 FROM product_category p0_ INNER JOIN product_category_translation p1_ ON p0_.id = p1_.translatable_id AND (p1_.locale = ?) WHERE EXISTS (SELECT 1 AS sclr_6 FROM product p2_ WHERE p2_.sub_category = p0_.id)
Parameters:
[
  "ba"
]
2.14 ms
(0.37%)
1
SELECT d0_.id AS id_0, d0_.name AS name_1, d0_.country AS country_2, d0_.colors AS colors_3, d0_.deliver_at AS deliver_at_4, d0_.created_at AS created_at_5, d0_.updated_at AS updated_at_6, d0_.synced_at AS synced_at_7, d0_.index_at AS index_at_8, d0_.currency AS currency_9 FROM depot d0_ ORDER BY d0_.id ASC LIMIT 1
Parameters:
[]

client_rel_management connection

No database queries were performed.

client_rel_web_management connection

No database queries were performed.

Database Connections

Name Service
default doctrine.dbal.default_connection
client_rel_management doctrine.dbal.client_rel_management_connection
client_rel_web_management doctrine.dbal.client_rel_web_management_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager
client_rel_management doctrine.orm.client_rel_management_entity_manager
client_rel_web_management doctrine.orm.client_rel_web_management_entity_manager

Second Level Cache

0 Hits
0 Misses
1 Puts

Number of cache puts

Region Puts
public 1

Entities Mapping

default entity manager

Class Mapping errors
App\Entity\ECommerce\Currency No errors.
App\Entity\ECommerce\DepotProduct No errors.
App\Entity\ECommerce\Depot No errors.
App\Entity\ECommerce\Client No errors.
App\Entity\ECommerce\Shipping No errors.
App\Entity\ECommerce\ProductManufacturer No errors.
App\Entity\ECommerce\ProductCategory No errors.
App\Entity\ECommerce\ProductSubCategory No errors.
App\Entity\ECommerce\ProductInfo No errors.
App\Entity\ECommerce\Product No errors.
App\Entity\ECommerce\ProductGroup No errors.
App\Entity\App\User No errors.
App\Entity\ECommerce\DepotTranslation No errors.
App\Entity\ECommerce\ProductPhoto No errors.
App\Entity\ECommerce\ProductDocument No errors.
App\Entity\ECommerce\ProductAlternative No errors.
App\Entity\ECommerce\Unit No errors.
App\Entity\ECommerce\ProductTranslation No errors.
App\Entity\Content\Document No errors.
App\Entity\ECommerce\Cart No errors.

client_rel_management entity manager

No loaded entities.

client_rel_web_management entity manager

No loaded entities.