GET https://askanbi.com/ad/en-us/menu/motel

Query Metrics

9 Database Queries
9 Different statements
6.03 ms Query time
0 Invalid entities

Queries

Group similar statements

# Time Info
1 0.99 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.name_en AS name_en_3, t0.slug AS slug_4 FROM us_ad_menu t0 WHERE t0.slug = ? LIMIT 1
Parameters:
[
  "motel"
]
2 1.89 ms
SELECT COUNT(*) AS dctrn_count FROM (SELECT DISTINCT id_0 FROM (SELECT u0_.id AS id_0, u0_.chrono AS chrono_1, u0_.ref AS ref_2, u0_.motel AS motel_3, u0_.immovable AS immovable_4, u0_.agricultural AS agricultural_5, u0_.machinery AS machinery_6, u0_.vehicle AS vehicle_7, u0_.slug AS slug_8, u0_.sum_by_hour AS sum_by_hour_9, u0_.sum_by_day AS sum_by_day_10, u0_.sum_by_night AS sum_by_night_11, u0_.sum_by_month AS sum_by_month_12, u0_.deposit_month AS deposit_month_13, u0_.content AS content_14, u0_.is_enabled AS is_enabled_15, u0_.disabled_title AS disabled_title_16, u0_.disabled_message AS disabled_message_17, u0_.filename AS filename_18, u0_.file_url AS file_url_19, u0_.created_at AS created_at_20, u0_.updated_at AS updated_at_21, u0_.premium_end AS premium_end_22, CASE WHEN u0_.created_at IS NULL THEN 1 ELSE 0 END AS sclr_23 FROM us_ad u0_ INNER JOIN us_ad_sub_menu u1_ ON u0_.sub_menu_id = u1_.id INNER JOIN us_author u2_ ON u0_.author_id = u2_.id INNER JOIN us_ad_menu u3_ ON u1_.menu_id = u3_.id WHERE u0_.is_enabled = true AND u2_.is_enabled = true AND u3_.slug = ? ORDER BY sclr_23 DESC, u0_.created_at DESC) dctrn_result) dctrn_table
Parameters:
[
  "motel"
]
3 0.28 ms
SELECT u0_.name AS name_0, u0_.slug AS slug_1 FROM us_ad_billing u0_ ORDER BY u0_.id ASC
Parameters:
[]
4 0.21 ms
SELECT u0_.name AS name_0, u0_.slug AS slug_1 FROM us_ad_menu u0_ ORDER BY u0_.id ASC
Parameters:
[]
5 0.54 ms
SELECT u0_.id AS id_0, u0_.is_enabled AS is_enabled_1, u0_.code AS code_2, u0_.flag AS flag_3, u0_.currency AS currency_4, u0_.phone_code AS phone_code_5, u0_.language AS language_6, u0_.name AS name_7, u0_.name_en AS name_en_8, u0_.created_at AS created_at_9, u0_.updated_at AS updated_at_10 FROM us_country u0_ WHERE LOWER(u0_.code) = ? AND u0_.is_enabled = true LIMIT 1
Parameters:
[
  "us"
]
6 0.66 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.name_en AS name_en_3, t0.slug AS slug_4 FROM us_ad_menu t0
Parameters:
[]
7 0.40 ms
SELECT u0_.id AS id_0, u0_.is_enabled AS is_enabled_1, u0_.code AS code_2, u0_.flag AS flag_3, u0_.currency AS currency_4, u0_.phone_code AS phone_code_5, u0_.language AS language_6, u0_.name AS name_7, u0_.name_en AS name_en_8, u0_.created_at AS created_at_9, u0_.updated_at AS updated_at_10 FROM us_country u0_ WHERE u0_.is_enabled = true ORDER BY u0_.id ASC
Parameters:
[]
8 0.22 ms
SELECT t0.id AS id_1, t0.is_enabled AS is_enabled_2, t0.code AS code_3, t0.flag AS flag_4, t0.currency AS currency_5, t0.phone_code AS phone_code_6, t0.language AS language_7, t0.name AS name_8, t0.name_en AS name_en_9, t0.created_at AS created_at_10, t0.updated_at AS updated_at_11 FROM us_country t0 WHERE t0.code = ? LIMIT 1
Parameters:
[
  "us"
]
9 0.83 ms
SELECT DISTINCT id_0, MIN(sclr_24) AS dctrn_minrownum FROM (SELECT u0_.id AS id_0, u0_.chrono AS chrono_1, u0_.ref AS ref_2, u0_.motel AS motel_3, u0_.immovable AS immovable_4, u0_.agricultural AS agricultural_5, u0_.machinery AS machinery_6, u0_.vehicle AS vehicle_7, u0_.slug AS slug_8, u0_.sum_by_hour AS sum_by_hour_9, u0_.sum_by_day AS sum_by_day_10, u0_.sum_by_night AS sum_by_night_11, u0_.sum_by_month AS sum_by_month_12, u0_.deposit_month AS deposit_month_13, u0_.content AS content_14, u0_.is_enabled AS is_enabled_15, u0_.disabled_title AS disabled_title_16, u0_.disabled_message AS disabled_message_17, u0_.filename AS filename_18, u0_.file_url AS file_url_19, u0_.created_at AS created_at_20, u0_.updated_at AS updated_at_21, u0_.premium_end AS premium_end_22, CASE WHEN u0_.created_at IS NULL THEN 1 ELSE 0 END AS sclr_23, ROW_NUMBER() OVER(ORDER BY CASE WHEN u0_.created_at IS NULL THEN 1 ELSE 0 END DESC, u0_.created_at DESC) AS sclr_24 FROM us_ad u0_ INNER JOIN us_ad_sub_menu u1_ ON u0_.sub_menu_id = u1_.id INNER JOIN us_author u2_ ON u0_.author_id = u2_.id INNER JOIN us_ad_menu u3_ ON u1_.menu_id = u3_.id WHERE u0_.is_enabled = true AND u2_.is_enabled = true AND u3_.slug = ?) dctrn_result GROUP BY id_0 ORDER BY dctrn_minrownum ASC LIMIT 10
Parameters:
[
  "motel"
]

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.

Entities Mapping

Class Mapping errors
App\Entity\AdMenu No errors.
App\Entity\AdSubMenu No errors.
App\Entity\Ad No errors.
App\Entity\Author No errors.
App\Entity\AdBilling No errors.
App\Entity\Country No errors.