Query Metrics

26 Database Queries
12 Different statements
15.69 ms Query time
0 Invalid entities
48 Managed entities

Grouped Statements

Show all queries

Time Count Info
6.19 ms
(39.47%)
1
"COMMIT"
Parameters:
[]
4.25 ms
(27.11%)
13
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.updated_at AS updated_at_3, t0.expired_at AS expired_at_4, t0.code AS code_5, t0.description AS description_6, t0.gift AS gift_7, t0.shipping_free AS shipping_free_8, t0.discount_amount AS discount_amount_9, t0.discount_unit AS discount_unit_10, t0.click_count AS click_count_11, t0.merchant_id AS merchant_id_12 FROM coupon t0 WHERE t0.merchant_id = ?
Parameters:
[
  47
]
1.27 ms
(8.11%)
2
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
]
0.91 ms
(5.82%)
1
SELECT n0_.id AS id_0, n0_.title AS title_1, n0_.content AS content_2, n0_.created_at AS created_at_3, n0_.image AS image_4, n0_.enabled AS enabled_5, n0_.category_id AS category_id_6, n0_.merchant_id AS merchant_id_7 FROM news n0_ WHERE n0_.enabled = ? AND n0_.merchant_id = ? ORDER BY n0_.id DESC
Parameters:
[
  1
  47
]
0.80 ms
(5.07%)
2
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
]
0.44 ms
(2.78%)
1
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 14:11:00"
  "2026-04-16 14:11:00"
]
0.42 ms
(2.67%)
1
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, c0_.merchant_id AS merchant_id_11 FROM coupon c0_ INNER JOIN merchant m1_ ON c0_.merchant_id = m1_.id WHERE (c0_.expired_at > ? OR c0_.expired_at IS NULL) AND m1_.category_id = ? AND c0_.merchant_id NOT IN (?) ORDER BY c0_.id DESC
Parameters:
[
  "2026-04-16 14:11:00"
  69
  47
]
0.35 ms
(2.23%)
1
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 = 1 ORDER BY m0_.score DESC LIMIT 12
Parameters:
[]
0.32 ms
(2.02%)
1
UPDATE merchant SET visit_count = ? WHERE id = ?
Parameters:
[
  5
  47
]
0.28 ms
(1.77%)
1
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, c0_.merchant_id AS merchant_id_11 FROM coupon c0_ WHERE (c0_.expired_at > ? OR c0_.expired_at IS NULL) AND c0_.merchant_id = ? ORDER BY c0_.id DESC
Parameters:
[
  "2026-04-16 14:11:00"
  47
]
0.24 ms
(1.50%)
1
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:
[
  "47"
]
0.23 ms
(1.45%)
1
"START TRANSACTION"
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\Category 20
App\Entity\Merchant 16
App\Entity\Coupon 12

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.