Query Metrics

10 Database Queries
6 Different statements
5.47 ms Query time
0 Invalid entities
33 Managed entities

Queries

Group similar statements

# Time Info
1 0.98 ms
SELECT m0_.id AS id_0, m0_.title AS title_1, m0_.description AS description_2, m0_.image AS image_3, m0_.enabled AS enabled_4, m0_.score AS score_5, m0_.visit_count AS visit_count_6, m0_.url_tracking AS url_tracking_7, m0_.manual_boost AS manual_boost_8, m0_.category_id AS category_id_9 FROM merchant m0_ WHERE m0_.enabled = ? ORDER BY m0_.visit_count + m0_.manual_boost DESC LIMIT 6
Parameters:
[
  1
]
2 0.55 ms
SELECT t0.id AS id_1, t0.title AS title_2, t0.description AS description_3, t0.enabled AS enabled_4, t0.parent_id AS parent_id_5 FROM category t0 WHERE t0.enabled = ? ORDER BY t0.title ASC
Parameters:
[
  1
]
3 1.28 ms
SELECT count(DISTINCT n0_.id) AS sclr_0 FROM news n0_ WHERE n0_.enabled = ?
Parameters:
[
  1
]
4 0.27 ms
SELECT DISTINCT n0_.id AS id_0, n0_.id AS id_1 FROM news n0_ WHERE n0_.enabled = ? ORDER BY n0_.id DESC LIMIT 5
Parameters:
[
  1
]
5 0.42 ms
SELECT m0_.id AS id_0, m0_.title AS title_1, m0_.description AS description_2, m0_.image AS image_3, m0_.enabled AS enabled_4, m0_.score AS score_5, m0_.visit_count AS visit_count_6, m0_.url_tracking AS url_tracking_7, m0_.manual_boost AS manual_boost_8, m0_.category_id AS category_id_9 FROM merchant m0_ WHERE m0_.enabled = ? ORDER BY m0_.visit_count + m0_.manual_boost DESC LIMIT 6
Parameters:
[
  1
]
6 0.26 ms
SELECT t0.id AS id_1, t0.title AS title_2, t0.description AS description_3, t0.enabled AS enabled_4, t0.parent_id AS parent_id_5 FROM category t0 WHERE t0.enabled = ? ORDER BY t0.title ASC
Parameters:
[
  1
]
7 0.70 ms
SELECT c0_.id AS id_0, c0_.created_at AS created_at_1, c0_.updated_at AS updated_at_2, c0_.expired_at AS expired_at_3, c0_.code AS code_4, c0_.description AS description_5, c0_.gift AS gift_6, c0_.shipping_free AS shipping_free_7, c0_.discount_amount AS discount_amount_8, c0_.discount_unit AS discount_unit_9, c0_.click_count AS click_count_10, (CASE WHEN c0_.expired_at IS NOT NULL AND c0_.expired_at <= ? THEN 1 ELSE 0 END) AS sclr_11, c0_.discount_amount AS discount_amount_12, (CASE WHEN c0_.gift = 1 OR c0_.shipping_free = 1 THEN 1 ELSE 0 END) AS sclr_13, c0_.merchant_id AS merchant_id_14 FROM coupon c0_ WHERE c0_.expired_at IS NULL OR c0_.expired_at > ? ORDER BY sclr_11 DESC, discount_amount_12 DESC, sclr_13 DESC, c0_.id DESC LIMIT 8
Parameters:
[
  "2026-04-23 12:46:25"
  "2026-04-16 12:46:25"
]
8 0.54 ms
SELECT t0.id AS id_1, t0.title AS title_2, t0.description AS description_3, t0.image AS image_4, t0.enabled AS enabled_5, t0.score AS score_6, t0.visit_count AS visit_count_7, t0.url_tracking AS url_tracking_8, t0.manual_boost AS manual_boost_9, t0.category_id AS category_id_10 FROM merchant t0 WHERE t0.id = ?
Parameters:
[
  53
]
9 0.23 ms
SELECT t0.id AS id_1, t0.title AS title_2, t0.description AS description_3, t0.image AS image_4, t0.enabled AS enabled_5, t0.score AS score_6, t0.visit_count AS visit_count_7, t0.url_tracking AS url_tracking_8, t0.manual_boost AS manual_boost_9, t0.category_id AS category_id_10 FROM merchant t0 WHERE t0.id = ?
Parameters:
[
  46
]
10 0.23 ms
SELECT t0.id AS id_1, t0.title AS title_2, t0.description AS description_3, t0.image AS image_4, t0.enabled AS enabled_5, t0.score AS score_6, t0.visit_count AS visit_count_7, t0.url_tracking AS url_tracking_8, t0.manual_boost AS manual_boost_9, t0.category_id AS category_id_10 FROM merchant t0 WHERE t0.id = ?
Parameters:
[
  45
]

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\Category 20
App\Entity\Merchant 9
App\Entity\Coupon 4

Entities Mapping

Class Mapping errors
App\Entity\Merchant No errors.
App\Entity\Category No errors.
App\Entity\Coupon No errors.
App\Entity\News No errors.