Query Metrics
26
Database Queries
12
Different statements
26.02 ms
Query time
0
Invalid entities
49
Managed entities
Grouped Statements
| Time▼ | Count | Info | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
13.64 ms (52.43%) |
1 |
"COMMIT"
Parameters:
[]
|
||||||||||||||||||||||||||||||||
|
4.89 ms (18.79%) |
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:
[
50
]
|
||||||||||||||||||||||||||||||||
|
1.66 ms (6.39%) |
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
]
|
||||||||||||||||||||||||||||||||
|
1.56 ms (6.01%) |
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 12:51:34" 63 50 ]
|
||||||||||||||||||||||||||||||||
|
0.96 ms (3.70%) |
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.88 ms (3.37%) |
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 50 ]
|
||||||||||||||||||||||||||||||||
|
0.60 ms (2.29%) |
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 12:51:34" "2026-04-16 12:51:34" ]
|
||||||||||||||||||||||||||||||||
|
0.43 ms (1.63%) |
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 4
Parameters:
[ "2026-04-23 12:51:34" "2026-04-16 12:51:34" ]
|
||||||||||||||||||||||||||||||||
|
0.42 ms (1.63%) |
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 12:51:34" 50 ]
|
||||||||||||||||||||||||||||||||
|
0.37 ms (1.40%) |
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.36 ms (1.38%) |
1 |
UPDATE merchant SET visit_count = ? WHERE id = ?
Parameters:
[ 13 50 ]
|
||||||||||||||||||||||||||||||||
|
0.25 ms (0.97%) |
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 | 15 |
| App\Entity\Coupon | 14 |
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. |