Query Metrics
90
Database Queries
16
Different statements
31.82 ms
Query time
0
Invalid entities
Grouped Statements
| Time▼ | Count | Info |
|---|---|---|
|
15.30 ms (48.08%) |
2 |
SELECT t.foreign_key, t.value, gt.content AS translated_value FROM translator t LEFT JOIN ext_translations gt ON gt.foreign_key=t.id AND gt.object_class=? AND gt.locale=? WHERE t.foreign_key LIKE ?
Parameters:
[ "App\Admin\Modules\Translator\Entity\Translator" "en" "modul_produkty_%" ] |
|
7.98 ms (25.08%) |
44 |
SELECT e0_.content AS content_0, e0_.field AS field_1 FROM ext_translations e0_ WHERE e0_.foreign_key = ? AND e0_.locale = ? AND e0_.object_class = ?
Parameters:
[ "215" "en" "App\Admin\Modules\Translator\Entity\Translator" ] |
|
3.12 ms (9.81%) |
27 |
SELECT t0.id AS id_1, t0.foreign_key AS foreign_key_2, t0.value AS value_3 FROM translator t0 WHERE t0.foreign_key = ? LIMIT 1
Parameters:
[
"modul_produkty"
]
|
|
0.85 ms (2.69%) |
3 |
SELECT t0.id AS id_1, t0.title AS title_2, t0.content_type AS content_type_3, t0.visibility AS visibility_4, t0.position AS position_5, t0.id_structure AS id_structure_6 FROM structure_element t0 WHERE t0.id_structure = ? ORDER BY t0.position ASC
Parameters:
[
11
]
|
|
0.67 ms (2.11%) |
1 |
SELECT COUNT(DISTINCT m0_.id) AS sclr_0 FROM module_product m0_ INNER JOIN module_multilang_entry m6_ ON m0_.id_module_multilang_entry = m6_.id INNER JOIN module_multilang_entry_lang m7_ ON m6_.id = m7_.id_module_multilang_entry LEFT JOIN ext_translations t1_ ON t1_.locale = 'en' AND t1_.field = 'name' AND t1_.object_class = 'App\\Admin\\Modules\\ModuleProduct\\Entity\\ModuleProduct' AND t1_.foreign_key = m0_.id LEFT JOIN ext_translations t2_ ON t2_.locale = 'en' AND t2_.field = 'slug' AND t2_.object_class = 'App\\Admin\\Modules\\ModuleProduct\\Entity\\ModuleProduct' AND t2_.foreign_key = m0_.id LEFT JOIN ext_translations t3_ ON t3_.locale = 'en' AND t3_.field = 'shortDescription' AND t3_.object_class = 'App\\Admin\\Modules\\ModuleProduct\\Entity\\ModuleProduct' AND t3_.foreign_key = m0_.id LEFT JOIN ext_translations t4_ ON t4_.locale = 'en' AND t4_.field = 'description' AND t4_.object_class = 'App\\Admin\\Modules\\ModuleProduct\\Entity\\ModuleProduct' AND t4_.foreign_key = m0_.id LEFT JOIN ext_translations t5_ ON t5_.locale = 'en' AND t5_.field = 'htmlContent' AND t5_.object_class = 'App\\Admin\\Modules\\ModuleProduct\\Entity\\ModuleProduct' AND t5_.foreign_key = m0_.id WHERE m0_.is_visible = 1 AND m0_.id_product_category IS NOT NULL AND (m7_.lang = ? AND m7_.content_edited = 1)
Parameters:
[
"en"
]
|
|
0.61 ms (1.92%) |
1 |
SELECT DISTINCT m0_.id AS id_0, m0_.is_recommended AS is_recommended_1, COALESCE(t1_.content, m0_.name) AS name_2 FROM module_product m0_ INNER JOIN module_multilang_entry m6_ ON m0_.id_module_multilang_entry = m6_.id INNER JOIN module_multilang_entry_lang m7_ ON m6_.id = m7_.id_module_multilang_entry LEFT JOIN ext_translations t1_ ON t1_.locale = 'en' AND t1_.field = 'name' AND t1_.object_class = 'App\\Admin\\Modules\\ModuleProduct\\Entity\\ModuleProduct' AND t1_.foreign_key = m0_.id LEFT JOIN ext_translations t2_ ON t2_.locale = 'en' AND t2_.field = 'slug' AND t2_.object_class = 'App\\Admin\\Modules\\ModuleProduct\\Entity\\ModuleProduct' AND t2_.foreign_key = m0_.id LEFT JOIN ext_translations t3_ ON t3_.locale = 'en' AND t3_.field = 'shortDescription' AND t3_.object_class = 'App\\Admin\\Modules\\ModuleProduct\\Entity\\ModuleProduct' AND t3_.foreign_key = m0_.id LEFT JOIN ext_translations t4_ ON t4_.locale = 'en' AND t4_.field = 'description' AND t4_.object_class = 'App\\Admin\\Modules\\ModuleProduct\\Entity\\ModuleProduct' AND t4_.foreign_key = m0_.id LEFT JOIN ext_translations t5_ ON t5_.locale = 'en' AND t5_.field = 'htmlContent' AND t5_.object_class = 'App\\Admin\\Modules\\ModuleProduct\\Entity\\ModuleProduct' AND t5_.foreign_key = m0_.id WHERE m0_.is_visible = 1 AND m0_.id_product_category IS NOT NULL AND (m7_.lang = ? AND m7_.content_edited = 1) ORDER BY m0_.is_recommended DESC, COALESCE(t1_.content, m0_.name) ASC LIMIT 12
Parameters:
[
"en"
]
|
|
0.45 ms (1.42%) |
1 |
SELECT p0_.id AS id_0, COUNT(m1_.id) AS sclr_1 FROM module_product m1_ INNER JOIN module_multilang_entry m2_ ON m1_.id_module_multilang_entry = m2_.id INNER JOIN module_multilang_entry_lang m3_ ON m2_.id = m3_.id_module_multilang_entry INNER JOIN product_category p4_ ON m1_.id_product_category = p4_.id INNER JOIN product_category p0_ ON (p0_.lft <= p4_.lft AND p0_.rgt >= p4_.rgt AND p0_.depth = 0) WHERE m1_.is_visible = 1 AND m1_.id_product_category IS NOT NULL AND (m3_.lang = ? AND m3_.content_edited = 1) GROUP BY p0_.id
Parameters:
[
"en"
]
|
|
0.41 ms (1.29%) |
1 |
SELECT s0_.id AS id_0, s0_.type AS type_1, s0_.name AS name_2, s0_.is_homepage AS is_homepage_3, s0_.visibility AS visibility_4, s0_.access_type AS access_type_5, s0_.page_layout AS page_layout_6, s0_.lft AS lft_7, s0_.rgt AS rgt_8, s0_.depth AS depth_9, s0_.lang AS lang_10, s0_.slug AS slug_11, s0_.updated_at AS updated_at_12, s0_.id_target AS id_target_13 FROM structure s0_ INNER JOIN structure_element s1_ ON s0_.id = s1_.id_structure WHERE s0_.lang = ? AND s1_.content_type = ? ORDER BY s0_.lft ASC, s1_.position ASC LIMIT 1
Parameters:
[ "en" 103 ] |
|
0.37 ms (1.15%) |
1 |
SELECT m0_.grammage AS grammage_0, COUNT(m0_.id) AS sclr_1 FROM module_product m0_ INNER JOIN module_multilang_entry m1_ ON m0_.id_module_multilang_entry = m1_.id INNER JOIN module_multilang_entry_lang m2_ ON m1_.id = m2_.id_module_multilang_entry WHERE m0_.is_visible = 1 AND m0_.id_product_category IS NOT NULL AND (m2_.lang = ? AND m2_.content_edited = 1) GROUP BY m0_.grammage
Parameters:
[
"en"
]
|
|
0.35 ms (1.11%) |
3 |
SELECT t0.id AS id_1, t0.name AS name_2, t0.extension AS extension_3, t0.full_name AS full_name_4, t0.file AS file_5, t0.description AS description_6, t0.updated_at AS updated_at_7, t0.added_at AS added_at_8, t0.id_file_repository_folder AS id_file_repository_folder_9, t0.id_updated_by_user AS id_updated_by_user_10, t0.id_added_by_user AS id_added_by_user_11 FROM file_repository t0 WHERE t0.id = ?
Parameters:
[
"37"
]
|
|
0.35 ms (1.09%) |
1 |
SELECT s0_.id AS id_0, s0_.type AS type_1, s0_.name AS name_2, s0_.is_homepage AS is_homepage_3, s0_.visibility AS visibility_4, s0_.access_type AS access_type_5, s0_.page_layout AS page_layout_6, s0_.lft AS lft_7, s0_.rgt AS rgt_8, s0_.depth AS depth_9, s0_.lang AS lang_10, s0_.slug AS slug_11, s0_.updated_at AS updated_at_12, s0_.id_target AS id_target_13 FROM structure s0_ WHERE s0_.lang = ? ORDER BY s0_.depth ASC, s0_.lft ASC
Parameters:
[
"en"
]
|
|
0.32 ms (1.02%) |
1 |
SELECT s0_.id AS id_0, s0_.type AS type_1, s0_.name AS name_2, s0_.is_homepage AS is_homepage_3, s0_.visibility AS visibility_4, s0_.access_type AS access_type_5, s0_.page_layout AS page_layout_6, s0_.lft AS lft_7, s0_.rgt AS rgt_8, s0_.depth AS depth_9, s0_.lang AS lang_10, s0_.slug AS slug_11, s0_.updated_at AS updated_at_12, s0_.id_target AS id_target_13 FROM structure s0_ WHERE s0_.lang = ? AND s0_.is_homepage = 1 LIMIT 1
Parameters:
[
"en"
]
|
|
0.32 ms (1.00%) |
1 |
SELECT COUNT(m0_.id) AS sclr_0 FROM module_product m0_ INNER JOIN module_multilang_entry m1_ ON m0_.id_module_multilang_entry = m1_.id INNER JOIN module_multilang_entry_lang m2_ ON m1_.id = m2_.id_module_multilang_entry WHERE m0_.is_visible = 1 AND m0_.id_product_category IS NOT NULL AND (m2_.lang = ? AND m2_.content_edited = 1) AND (m0_.available_quantity IS NULL OR m0_.available_quantity > 0)
Parameters:
[
"en"
]
|
|
0.30 ms (0.94%) |
1 |
SELECT b0_.id AS id_0, b0_.name AS name_1, COUNT(m1_.id) AS sclr_2 FROM module_product m1_ INNER JOIN module_multilang_entry m2_ ON m1_.id_module_multilang_entry = m2_.id INNER JOIN module_multilang_entry_lang m3_ ON m2_.id = m3_.id_module_multilang_entry INNER JOIN brand b0_ ON m1_.id_brand = b0_.id WHERE m1_.is_visible = 1 AND m1_.id_product_category IS NOT NULL AND (m3_.lang = ? AND m3_.content_edited = 1) GROUP BY b0_.id, b0_.name, b0_.id_logo_file_repository
Parameters:
[
"en"
]
|
|
0.29 ms (0.90%) |
1 |
SELECT COUNT(m0_.id) AS sclr_0 FROM module_product m0_ INNER JOIN module_multilang_entry m1_ ON m0_.id_module_multilang_entry = m1_.id INNER JOIN module_multilang_entry_lang m2_ ON m1_.id = m2_.id_module_multilang_entry WHERE m0_.is_visible = 1 AND m0_.id_product_category IS NOT NULL AND (m2_.lang = ? AND m2_.content_edited = 1) AND m0_.available_quantity = 0
Parameters:
[
"en"
]
|
|
0.12 ms (0.39%) |
1 |
SELECT t0.name AS name_1, t0.value AS value_2 FROM settings t0 WHERE t0.name = ?
Parameters:
[
"app.settings"
]
|
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.