Query Metrics
7
Database Queries
7
Different statements
6.40 ms
Query time
0
Invalid entities
17
Managed entities
Grouped Statements
| Time▼ | Count | Info | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
1.58 ms (24.63%) |
1 |
SELECT DISTINCT id_0 FROM (SELECT DISTINCT id_0, is_favorite_19, 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 AND p0_.category = ? AND p0_.id <> ? ORDER BY o1_.quantity ASC) dctrn_result_inner ORDER BY is_favorite_19 DESC, name_2 ASC) dctrn_result LIMIT 6
Parameters:
[ "8241c908-a268-4867-85dc-e6714e489812" "other" "fa1d3d5a-6e3d-4648-a1fc-ac1ba09f292a" ]
|
||||||||||||||||||||||||||||||||||||
|
1.06 ms (16.50%) |
1 |
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_.category = ? AND p0_.id <> ? AND p0_.id IN (?, ?, ?, ?, ?, ?) ORDER BY p0_.is_favorite DESC, p0_.name ASC, o1_.quantity ASC
Parameters:
[ "8241c908-a268-4867-85dc-e6714e489812" "other" "fa1d3d5a-6e3d-4648-a1fc-ac1ba09f292a" "45e1b805-8a89-405d-b84f-c85ec3c31ee6" "cac256ed-0987-4fe3-8511-1b3b2c8ca8fe" "f008e0a8-4f52-438b-8ebf-af333685dc9a" "e5acbfd3-ea96-474c-a1fe-1b5b44698edb" "c6b0d8aa-9041-4515-8b10-6c7dc5bf2ea2" "2d75e47d-9ef8-4adb-ba01-d6fc065d18c6" ]
|
||||||||||||||||||||||||||||||||||||
|
0.91 ms (14.19%) |
1 |
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 = ? ORDER BY o1_.quantity ASC
Parameters:
[ "8241c908-a268-4867-85dc-e6714e489812" "fa1d3d5a-6e3d-4648-a1fc-ac1ba09f292a" ]
|
||||||||||||||||||||||||||||||||||||
|
0.85 ms (13.29%) |
1 |
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"
]
|
||||||||||||||||||||||||||||||||||||
|
0.76 ms (11.81%) |
1 |
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" "fa1d3d5a-6e3d-4648-a1fc-ac1ba09f292a" "45e1b805-8a89-405d-b84f-c85ec3c31ee6" "cac256ed-0987-4fe3-8511-1b3b2c8ca8fe" "f008e0a8-4f52-438b-8ebf-af333685dc9a" "e5acbfd3-ea96-474c-a1fe-1b5b44698edb" "c6b0d8aa-9041-4515-8b10-6c7dc5bf2ea2" "2d75e47d-9ef8-4adb-ba01-d6fc065d18c6" ]
|
||||||||||||||||||||||||||||||||||||
|
0.66 ms (10.35%) |
1 |
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:
[]
|
||||||||||||||||||||||||||||||||||||
|
0.59 ms (9.24%) |
1 |
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"
]
|
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\ProductCategory | 8 |
| App\Entity\Product | 7 |
| 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\Supplier | No errors. |
| App\Entity\OnlineOrder | No errors. |
| App\Entity\OnlineOrderLine | No errors. |
| App\Entity\ProductCategory | No errors. |