Query Metrics

10 Database Queries
7 Different statements
32.01 ms Query time
2 Invalid entities

Queries

Group similar statements

default connection

# Time Info
1 0.58 ms
SELECT t0.id AS id_1, t0.username AS username_2, t0.roles AS roles_3, t0.password AS password_4, t0.is_valid AS is_valid_5, t0.is_verified AS is_verified_6 FROM user t0 WHERE t0.id = ?
Parameters:
[
  6407
]
2 0.64 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3 FROM role t0 INNER JOIN role_user ON t0.id = role_user.role_id WHERE role_user.user_id = ?
Parameters:
[
  6407
]
3 0.35 ms
SELECT t0.id AS id_1, t0.name AS name_2, t0.image AS image_3, t0.created_at AS created_at_4, t0.email AS email_5, t0.description AS description_6, t0.is_valid AS is_valid_7, t0.full_name AS full_name_8, t0.tel AS tel_9, t0.address AS address_10, t0.city AS city_11, t0.ice AS ice_12, t0.rc AS rc_13, t0.simulate_username AS simulate_username_14, t0.simulate_password AS simulate_password_15, t0.cover_image AS cover_image_16, t0.path_rcimage AS path_rcimage_17, t0.path_ice_image AS path_ice_image_18, t0.path_ifimage AS path_ifimage_19, t0.identifiant_fiscale AS identifiant_fiscale_20, t0.user_id AS user_id_21 FROM vendor t0 WHERE t0.user_id = ? LIMIT 1
Parameters:
[
  6407
]
4 13.65 ms
SELECT DISTINCT c0_.id AS id_0, c0_.created_at AS created_at_1 FROM customer c0_ LEFT JOIN `order` o1_ ON c0_.id = o1_.customer_id AND (o1_.deleted_at IS NULL) LEFT JOIN document d2_ ON o1_.id = d2_.id LEFT JOIN order_item o3_ ON o1_.id = o3_.parent_order_id LEFT JOIN stock s4_ ON o3_.id = s4_.id WHERE ((LOWER(c0_.description) LIKE ? OR LOWER(c0_.description) IN (?) OR LOWER(c0_.email) LIKE ? OR LOWER(c0_.email) IN (?) OR LOWER(c0_.first_name) LIKE ? OR LOWER(c0_.first_name) IN (?) OR LOWER(c0_.last_name) LIKE ? OR LOWER(c0_.last_name) IN (?) OR LOWER(c0_.address) LIKE ? OR LOWER(c0_.address) IN (?) OR LOWER(c0_.city) LIKE ? OR LOWER(c0_.city) IN (?) OR LOWER(c0_.phone) LIKE ? OR LOWER(c0_.phone) IN (?) OR LOWER(c0_.company_name) LIKE ? OR LOWER(c0_.company_name) IN (?) OR LOWER(c0_.address_indication) LIKE ? OR LOWER(c0_.address_indication) IN (?) OR LOWER(c0_.country) LIKE ? OR LOWER(c0_.country) IN (?) OR LOWER(c0_.post_code) LIKE ? OR LOWER(c0_.post_code) IN (?) OR LOWER(c0_.gender) LIKE ? OR LOWER(c0_.gender) IN (?) OR LOWER(c0_.sponsorship_code) LIKE ? OR LOWER(c0_.sponsorship_code) IN (?) OR LOWER(c0_.image) LIKE ? OR LOWER(c0_.image) IN (?) OR LOWER(c0_.blind_password) LIKE ? OR LOWER(c0_.blind_password) IN (?) OR LOWER(c0_.collect_address) LIKE ? OR LOWER(c0_.collect_address) IN (?) OR LOWER(c0_.shipping_address) LIKE ? OR LOWER(c0_.shipping_address) IN (?) OR LOWER(c0_.collect_lat) LIKE ? OR LOWER(c0_.collect_lat) IN (?) OR LOWER(c0_.collect_lng) LIKE ? OR LOWER(c0_.collect_lng) IN (?) OR LOWER(c0_.shipping_lng) LIKE ? OR LOWER(c0_.shipping_lng) IN (?) OR LOWER(c0_.code) LIKE ? OR LOWER(c0_.code) IN (?) OR LOWER(c0_.reference) LIKE ? OR LOWER(c0_.reference) IN (?) OR LOWER(c0_.identity_number) LIKE ? OR LOWER(c0_.identity_number) IN (?)) AND o3_.id IS NOT NULL) AND (c0_.deleted_at IS NULL) ORDER BY c0_.created_at DESC LIMIT 10
Parameters:
[
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
]
5 13.98 ms
SELECT count(DISTINCT c0_.id) AS sclr_0 FROM customer c0_ LEFT JOIN `order` o1_ ON c0_.id = o1_.customer_id AND (o1_.deleted_at IS NULL) LEFT JOIN document d2_ ON o1_.id = d2_.id LEFT JOIN order_item o3_ ON o1_.id = o3_.parent_order_id LEFT JOIN stock s4_ ON o3_.id = s4_.id WHERE ((LOWER(c0_.description) LIKE ? OR LOWER(c0_.description) IN (?) OR LOWER(c0_.email) LIKE ? OR LOWER(c0_.email) IN (?) OR LOWER(c0_.first_name) LIKE ? OR LOWER(c0_.first_name) IN (?) OR LOWER(c0_.last_name) LIKE ? OR LOWER(c0_.last_name) IN (?) OR LOWER(c0_.address) LIKE ? OR LOWER(c0_.address) IN (?) OR LOWER(c0_.city) LIKE ? OR LOWER(c0_.city) IN (?) OR LOWER(c0_.phone) LIKE ? OR LOWER(c0_.phone) IN (?) OR LOWER(c0_.company_name) LIKE ? OR LOWER(c0_.company_name) IN (?) OR LOWER(c0_.address_indication) LIKE ? OR LOWER(c0_.address_indication) IN (?) OR LOWER(c0_.country) LIKE ? OR LOWER(c0_.country) IN (?) OR LOWER(c0_.post_code) LIKE ? OR LOWER(c0_.post_code) IN (?) OR LOWER(c0_.gender) LIKE ? OR LOWER(c0_.gender) IN (?) OR LOWER(c0_.sponsorship_code) LIKE ? OR LOWER(c0_.sponsorship_code) IN (?) OR LOWER(c0_.image) LIKE ? OR LOWER(c0_.image) IN (?) OR LOWER(c0_.blind_password) LIKE ? OR LOWER(c0_.blind_password) IN (?) OR LOWER(c0_.collect_address) LIKE ? OR LOWER(c0_.collect_address) IN (?) OR LOWER(c0_.shipping_address) LIKE ? OR LOWER(c0_.shipping_address) IN (?) OR LOWER(c0_.collect_lat) LIKE ? OR LOWER(c0_.collect_lat) IN (?) OR LOWER(c0_.collect_lng) LIKE ? OR LOWER(c0_.collect_lng) IN (?) OR LOWER(c0_.shipping_lng) LIKE ? OR LOWER(c0_.shipping_lng) IN (?) OR LOWER(c0_.code) LIKE ? OR LOWER(c0_.code) IN (?) OR LOWER(c0_.reference) LIKE ? OR LOWER(c0_.reference) IN (?) OR LOWER(c0_.identity_number) LIKE ? OR LOWER(c0_.identity_number) IN (?)) AND o3_.id IS NOT NULL) AND (c0_.deleted_at IS NULL)
Parameters:
[
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
  "%beloul%"
  "beloul"
]
6 0.75 ms
SELECT t0.id AS id_1, t0.is_monday AS is_monday_2, t0.is_tuesday AS is_tuesday_3, t0.is_wednesday AS is_wednesday_4, t0.is_thursday AS is_thursday_5, t0.is_friday AS is_friday_6, t0.is_saturday AS is_saturday_7, t0.is_sunday AS is_sunday_8, t0.start_work_at AS start_work_at_9, t0.end_work_at AS end_work_at_10, t0.exclude_days AS exclude_days_11, t0.exclude_dates AS exclude_dates_12, t0.exclude_hours AS exclude_hours_13, t0.logo AS logo_14, t0.logo_base64 AS logo_base64_15, t0.favicon AS favicon_16, t0.email AS email_17, t0.address AS address_18, t0.currency AS currency_19, t0.default_lang AS default_lang_20, t0.project_name AS project_name_21, t0.code AS code_22, t0.asset_folder_name AS asset_folder_name_23, t0.mail_order_created_body AS mail_order_created_body_24, t0.mail_order_created_title AS mail_order_created_title_25, t0.prefix_order AS prefix_order_26, t0.root_url AS root_url_27, t0.description AS description_28, t0.is_mercure_enabled AS is_mercure_enabled_29, t0.front_theme_id AS front_theme_id_30 FROM settings t0 WHERE t0.code = ? LIMIT 1
Parameters:
[
  "main"
]
7 0.64 ms
SELECT t0.id AS id_1, t0.start_at AS start_at_2, t0.end_at AS end_at_3, t0.user_id AS user_id_4 FROM session_history t0 WHERE t0.user_id = ? ORDER BY t0.id DESC LIMIT 1
Parameters:
[
  6407
]
8 0.18 ms
SELECT t0.id AS id_1, t0.start_at AS start_at_2, t0.end_at AS end_at_3, t0.user_id AS user_id_4 FROM session_history t0 WHERE t0.user_id = ? ORDER BY t0.id DESC LIMIT 1
Parameters:
[
  6407
]
9 0.69 ms
SELECT t0.id AS id_1, t0.start_at AS start_at_2, t0.end_at AS end_at_3, t0.user_id AS user_id_4 FROM session_history t0 WHERE t0.user_id = ? ORDER BY t0.id DESC LIMIT 1
Parameters:
[
  6407
]
10 0.54 ms
SELECT t0.id AS id_1, t0.is_monday AS is_monday_2, t0.is_tuesday AS is_tuesday_3, t0.is_wednesday AS is_wednesday_4, t0.is_thursday AS is_thursday_5, t0.is_friday AS is_friday_6, t0.is_saturday AS is_saturday_7, t0.is_sunday AS is_sunday_8, t0.start_work_at AS start_work_at_9, t0.end_work_at AS end_work_at_10, t0.exclude_days AS exclude_days_11, t0.exclude_dates AS exclude_dates_12, t0.exclude_hours AS exclude_hours_13, t0.logo AS logo_14, t0.logo_base64 AS logo_base64_15, t0.favicon AS favicon_16, t0.email AS email_17, t0.address AS address_18, t0.currency AS currency_19, t0.default_lang AS default_lang_20, t0.project_name AS project_name_21, t0.code AS code_22, t0.asset_folder_name AS asset_folder_name_23, t0.mail_order_created_body AS mail_order_created_body_24, t0.mail_order_created_title AS mail_order_created_title_25, t0.prefix_order AS prefix_order_26, t0.root_url AS root_url_27, t0.description AS description_28, t0.is_mercure_enabled AS is_mercure_enabled_29, t0.front_theme_id AS front_theme_id_30 FROM settings t0 WHERE t0.code = ? LIMIT 1
Parameters:
[
  "main"
]

Database Connections

Name Service
default doctrine.dbal.default_connection
salle2 doctrine.dbal.salle2_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\Flexy\ShopBundle\Entity\Vendor\Vendor No errors.
App\Entity\User No errors.
App\Entity\Role No errors.
App\Entity\SessionHistory No errors.
App\Flexy\ShopBundle\Entity\Customer\Customer No errors.
App\Flexy\ShopBundle\Entity\Order\Order
  • The mappings App\Flexy\ShopBundle\Entity\Order\Order#cityRegionShipping and App\Flexy\ShopBundle\Entity\Shipping\CityRegion#orders are inconsistent with each other.
App\Flexy\ShopBundle\Entity\Order\OrderItem No errors.
App\Flexy\StockBundle\Entity\Document
  • The mappings App\Flexy\StockBundle\Entity\Document#cityRegionShipping and App\Flexy\ShopBundle\Entity\Shipping\CityRegion#orders are inconsistent with each other.
App\Flexy\StockBundle\Entity\Stock No errors.
App\Entity\Settings No errors.
App\Entity\FrontTheme No errors.