Query Metrics
8
Database Queries
7
Different statements
11.65 ms
Query time
0
Invalid entities
34
Managed entities
Queries
| #▲ | Time | Info | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1.20 ms |
SELECT t0.id AS id_1, t0.enabled AS enabled_2, t0.shop_name AS shop_name_3, t0.tagline AS tagline_4, t0.theme_color AS theme_color_5, t0.pickup_address AS pickup_address_6, t0.pickup_instructions AS pickup_instructions_7, t0.phone AS phone_8, t0.contact_email AS contact_email_9, t0.notify_email AS notify_email_10, t0.timezone AS timezone_11, t0.open_time AS open_time_12, t0.close_time AS close_time_13, t0.prep_minutes AS prep_minutes_14, t0.slot_minutes AS slot_minutes_15, t0.min_order_cents AS min_order_cents_16, t0.stock_buffer AS stock_buffer_17, t0.delivery_enabled AS delivery_enabled_18, t0.pickup_enabled AS pickup_enabled_19, t0.delivery_fee_cents AS delivery_fee_cents_20, t0.free_delivery_over_cents AS free_delivery_over_cents_21, t0.delivery_tax_basis_points AS delivery_tax_basis_points_22, t0.delivery_minutes AS delivery_minutes_23, t0.delivery_areas AS delivery_areas_24, t0.pay_online AS pay_online_25, t0.pay_at_pickup AS pay_at_pickup_26, t0.id_categories AS id_categories_27, t0.clover_environment AS clover_environment_28, t0.clover_region AS clover_region_29, t0.clover_merchant_id AS clover_merchant_id_30, t0.clover_private_token AS clover_private_token_31, t0.clover_webhook_secret AS clover_webhook_secret_32, t0.created_at AS created_at_33, t0.updated_at AS updated_at_34, t0.store_id AS store_id_35 FROM shop_settings t0 ORDER BY t0.created_at ASC LIMIT 1
Parameters:
[]
|
||||||||||||||||||||||||||||||||||
| 2 | 1.88 ms |
SELECT DISTINCT p0_.category AS category_0 FROM products p0_ LEFT JOIN offers o1_ ON p0_.id = o1_.product_id AND (o1_.is_deleted = 0) WHERE p0_.store_id = ? AND p0_.is_deleted = 0 AND p0_.online_enabled = 1 AND p0_.is_weight_from_scale = 0 AND p0_.price_cents > 0
Parameters:
[
"8241c908-a268-4867-85dc-e6714e489812"
]
|
||||||||||||||||||||||||||||||||||
| 3 | 0.83 ms |
SELECT p0_.id AS id_0, p0_.slug AS slug_1, p0_.name AS name_2, p0_.tax_basis_points AS tax_basis_points_3, p0_.sort_order AS sort_order_4, p0_.is_active AS is_active_5, p0_.is_pos_key AS is_pos_key_6, p0_.created_at AS created_at_7, p0_.updated_at AS updated_at_8, p0_.store_id AS store_id_9 FROM product_categories p0_ WHERE p0_.store_id = ? ORDER BY p0_.sort_order ASC, p0_.name ASC
Parameters:
[
"8241c908-a268-4867-85dc-e6714e489812"
]
|
||||||||||||||||||||||||||||||||||
| 4 | 1.60 ms |
SELECT COUNT(DISTINCT p0_.id) AS sclr_0 FROM products p0_ LEFT JOIN offers o1_ ON p0_.id = o1_.product_id AND (o1_.is_deleted = 0) WHERE p0_.store_id = ? AND p0_.is_deleted = 0 AND p0_.online_enabled = 1 AND p0_.is_weight_from_scale = 0 AND p0_.price_cents > 0
Parameters:
[
"8241c908-a268-4867-85dc-e6714e489812"
]
|
||||||||||||||||||||||||||||||||||
| 5 | 2.03 ms |
SELECT DISTINCT id_0 FROM (SELECT DISTINCT id_0, name_2 FROM (SELECT p0_.id AS id_0, p0_.barcode AS barcode_1, p0_.name AS name_2, p0_.brand AS brand_3, p0_.category AS category_4, p0_.subcategory AS subcategory_5, p0_.price_cents AS price_cents_6, p0_.previous_price_cents AS previous_price_cents_7, p0_.price_changed_at AS price_changed_at_8, p0_.size AS size_9, p0_.size_label AS size_label_10, p0_.shelf_name AS shelf_name_11, p0_.stock_on_hand AS stock_on_hand_12, p0_.reorder_point AS reorder_point_13, p0_.min_stock AS min_stock_14, p0_.max_stock AS max_stock_15, p0_.cost_cents AS cost_cents_16, p0_.is_tax_allowed AS is_tax_allowed_17, p0_.is_weight_from_scale AS is_weight_from_scale_18, p0_.is_favorite AS is_favorite_19, p0_.online_enabled AS online_enabled_20, p0_.is_deleted AS is_deleted_21, p0_.image_path AS image_path_22, p0_.image_url AS image_url_23, p0_.sync_status AS sync_status_24, p0_.client_id AS client_id_25, p0_.created_at AS created_at_26, p0_.updated_at AS updated_at_27, o1_.id AS id_28, o1_.quantity AS quantity_29, o1_.price_cents AS price_cents_30, o1_.is_deleted AS is_deleted_31, o1_.updated_at AS updated_at_32 FROM products p0_ LEFT JOIN offers o1_ ON p0_.id = o1_.product_id AND (o1_.is_deleted = 0) WHERE p0_.store_id = ? AND p0_.is_deleted = 0 AND p0_.online_enabled = 1 AND p0_.is_weight_from_scale = 0 AND p0_.price_cents > 0 ORDER BY o1_.quantity ASC) dctrn_result_inner ORDER BY name_2 ASC) dctrn_result LIMIT 24 OFFSET 96
Parameters:
[
"8241c908-a268-4867-85dc-e6714e489812"
]
|
||||||||||||||||||||||||||||||||||
| 6 | 1.86 ms |
SELECT p0_.id AS id_0, p0_.barcode AS barcode_1, p0_.name AS name_2, p0_.brand AS brand_3, p0_.category AS category_4, p0_.subcategory AS subcategory_5, p0_.price_cents AS price_cents_6, p0_.previous_price_cents AS previous_price_cents_7, p0_.price_changed_at AS price_changed_at_8, p0_.size AS size_9, p0_.size_label AS size_label_10, p0_.shelf_name AS shelf_name_11, p0_.stock_on_hand AS stock_on_hand_12, p0_.reorder_point AS reorder_point_13, p0_.min_stock AS min_stock_14, p0_.max_stock AS max_stock_15, p0_.cost_cents AS cost_cents_16, p0_.is_tax_allowed AS is_tax_allowed_17, p0_.is_weight_from_scale AS is_weight_from_scale_18, p0_.is_favorite AS is_favorite_19, p0_.online_enabled AS online_enabled_20, p0_.is_deleted AS is_deleted_21, p0_.image_path AS image_path_22, p0_.image_url AS image_url_23, p0_.sync_status AS sync_status_24, p0_.client_id AS client_id_25, p0_.created_at AS created_at_26, p0_.updated_at AS updated_at_27, o1_.id AS id_28, o1_.quantity AS quantity_29, o1_.price_cents AS price_cents_30, o1_.is_deleted AS is_deleted_31, o1_.updated_at AS updated_at_32, p0_.store_id AS store_id_33, p0_.supplier_id AS supplier_id_34, o1_.product_id AS product_id_35 FROM products p0_ LEFT JOIN offers o1_ ON p0_.id = o1_.product_id AND (o1_.is_deleted = 0) WHERE p0_.store_id = ? AND p0_.is_deleted = 0 AND p0_.online_enabled = 1 AND p0_.is_weight_from_scale = 0 AND p0_.price_cents > 0 AND p0_.id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ORDER BY p0_.name ASC, o1_.quantity ASC
Parameters:
[ "8241c908-a268-4867-85dc-e6714e489812" "dd17ed5b-ad68-4965-9332-c5563cb847c8" "879a8bfa-b16a-415d-ae71-a9e41f216d5d" "9b105a05-10a8-40b1-b0b8-b6f668553427" "8c3f9f53-0512-4eaa-9330-9705fb6c42fb" "a84455a8-0ebe-4d23-af74-40422b44fef6" "3fcb2699-b19e-4033-8020-4e6e2bd6adc9" "5f021865-67db-4c47-9f35-c70a5e72cd5c" "86159f94-e70c-40a3-915c-10bb4572187b" "d6318164-ea88-4895-a60b-d0b25b2e01ee" "c3c0c6a0-8e0d-4f48-93f8-37e51786533e" "d8a42060-b44b-47e4-801e-927e7063d836" "e06b4966-6c20-4b96-86e9-6bb8905d7d90" "d5dfccdb-734b-4a10-a149-9ef5b4f23425" "8af8d7f6-8e39-426b-9e6d-ed7bdff34e2e" "89b880b8-0f12-4e1a-b568-543aad09d97a" "02c810f7-5c7f-4af6-a4b6-6968ceaf8816" "d677e4ee-8f5a-4ba0-826c-f06100602613" "ec476b50-8e5e-475d-9102-36ae6c834f4b" "32f12599-4351-4c97-925f-870e1297d00c" "cdd01277-7855-476b-8b7f-109a501a2aae" "58586d35-818d-40d3-bcc0-3e529b7e8ae2" "c9b1cb22-392e-4523-9749-48f90a591601" "5d64a8e4-cce3-45a1-9e88-e591ef57cc30" "92369436-9ed4-4076-979f-a025237a1d1e" ]
|
||||||||||||||||||||||||||||||||||
| 7 | 1.17 ms |
SELECT o0_.product_id AS sclr_0, SUM(o0_.quantity) AS sclr_1 FROM online_order_lines o0_ INNER JOIN online_orders o1_ ON o0_.order_id = o1_.id WHERE o1_.store_id = ? AND o1_.status IN (?, ?, ?, ?) AND o0_.product_id IS NOT NULL AND o0_.product_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) GROUP BY o0_.product_id
Parameters:
[ "8241c908-a268-4867-85dc-e6714e489812" "pending_payment" "new" "preparing" "ready" "dd17ed5b-ad68-4965-9332-c5563cb847c8" "879a8bfa-b16a-415d-ae71-a9e41f216d5d" "9b105a05-10a8-40b1-b0b8-b6f668553427" "8c3f9f53-0512-4eaa-9330-9705fb6c42fb" "a84455a8-0ebe-4d23-af74-40422b44fef6" "3fcb2699-b19e-4033-8020-4e6e2bd6adc9" "5f021865-67db-4c47-9f35-c70a5e72cd5c" "86159f94-e70c-40a3-915c-10bb4572187b" "d6318164-ea88-4895-a60b-d0b25b2e01ee" "c3c0c6a0-8e0d-4f48-93f8-37e51786533e" "d8a42060-b44b-47e4-801e-927e7063d836" "e06b4966-6c20-4b96-86e9-6bb8905d7d90" "d5dfccdb-734b-4a10-a149-9ef5b4f23425" "8af8d7f6-8e39-426b-9e6d-ed7bdff34e2e" "89b880b8-0f12-4e1a-b568-543aad09d97a" "02c810f7-5c7f-4af6-a4b6-6968ceaf8816" "d677e4ee-8f5a-4ba0-826c-f06100602613" "ec476b50-8e5e-475d-9102-36ae6c834f4b" "32f12599-4351-4c97-925f-870e1297d00c" "cdd01277-7855-476b-8b7f-109a501a2aae" "58586d35-818d-40d3-bcc0-3e529b7e8ae2" "c9b1cb22-392e-4523-9749-48f90a591601" "5d64a8e4-cce3-45a1-9e88-e591ef57cc30" "92369436-9ed4-4076-979f-a025237a1d1e" ]
|
||||||||||||||||||||||||||||||||||
| 8 | 1.07 ms |
SELECT DISTINCT p0_.category AS category_0 FROM products p0_ LEFT JOIN offers o1_ ON p0_.id = o1_.product_id AND (o1_.is_deleted = 0) WHERE p0_.store_id = ? AND p0_.is_deleted = 0 AND p0_.online_enabled = 1 AND p0_.is_weight_from_scale = 0 AND p0_.price_cents > 0
Parameters:
[
"8241c908-a268-4867-85dc-e6714e489812"
]
|
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\Product | 24 |
| App\Entity\ProductCategory | 8 |
| App\Entity\ShopSettings | 1 |
| App\Entity\Store | 1 |
Entities Mapping
| Class | Mapping errors |
|---|---|
| App\Entity\ShopSettings | No errors. |
| App\Entity\Store | No errors. |
| App\Entity\Product | No errors. |
| App\Entity\Offer | No errors. |
| App\Entity\ProductCategory | No errors. |
| App\Entity\Supplier | No errors. |
| App\Entity\OnlineOrder | No errors. |
| App\Entity\OnlineOrderLine | No errors. |