GET https://victoriamart.ca/shop/products?page=1&q=Can

Query Metrics

8 Database Queries
7 Different statements
30.94 ms Query time
0 Invalid entities
37 Managed entities

Grouped Statements

Show all queries

Time▼ Count Info
15.32 ms
(49.50%)
2
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"
]
5.22 ms
(16.88%)
1
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_.description AS description_22, p0_.facebook_status AS facebook_status_23, p0_.facebook_post_id AS facebook_post_id_24, p0_.facebook_published_at AS facebook_published_at_25, p0_.facebook_error AS facebook_error_26, p0_.image_path AS image_path_27, p0_.image_url AS image_url_28, p0_.sync_status AS sync_status_29, p0_.client_id AS client_id_30, p0_.created_at AS created_at_31, p0_.updated_at AS updated_at_32, o1_.id AS id_33, o1_.quantity AS quantity_34, o1_.price_cents AS price_cents_35, o1_.is_deleted AS is_deleted_36, o1_.updated_at AS updated_at_37 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 ((LOWER(p0_.name) LIKE ? OR LOWER(p0_.brand) LIKE ? OR p0_.barcode = ? OR LOWER(p0_.subcategory) LIKE ?)) ORDER BY o1_.quantity ASC) dctrn_result_inner ORDER BY name_2 ASC) dctrn_result LIMIT 24
Parameters:
[
  "8241c908-a268-4867-85dc-e6714e489812"
  "%can%"
  "%can%"
  "Can"
  "%can%"
]
4.57 ms
(14.76%)
1
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 AND ((LOWER(p0_.name) LIKE ? OR LOWER(p0_.brand) LIKE ? OR p0_.barcode = ? OR LOWER(p0_.subcategory) LIKE ?))
Parameters:
[
  "8241c908-a268-4867-85dc-e6714e489812"
  "%can%"
  "%can%"
  "Can"
  "%can%"
]
2.79 ms
(9.02%)
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_.description AS description_22, p0_.facebook_status AS facebook_status_23, p0_.facebook_post_id AS facebook_post_id_24, p0_.facebook_published_at AS facebook_published_at_25, p0_.facebook_error AS facebook_error_26, p0_.image_path AS image_path_27, p0_.image_url AS image_url_28, p0_.sync_status AS sync_status_29, p0_.client_id AS client_id_30, p0_.created_at AS created_at_31, p0_.updated_at AS updated_at_32, o1_.id AS id_33, o1_.quantity AS quantity_34, o1_.price_cents AS price_cents_35, o1_.is_deleted AS is_deleted_36, o1_.updated_at AS updated_at_37, p0_.store_id AS store_id_38, p0_.supplier_id AS supplier_id_39, o1_.product_id AS product_id_40 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 ((LOWER(p0_.name) LIKE ? OR LOWER(p0_.brand) LIKE ? OR p0_.barcode = ? OR LOWER(p0_.subcategory) LIKE ?)) AND p0_.id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ORDER BY p0_.name ASC, o1_.quantity ASC
Parameters:
[
  "8241c908-a268-4867-85dc-e6714e489812"
  "%can%"
  "%can%"
  "Can"
  "%can%"
  "bec16d14-0f73-439c-8142-96c27e8d49aa"
  "4efd5819-8239-4da2-86d4-7cfcbad5c0a3"
  "3bf67411-02f9-4f63-b762-5646259ed86f"
  "03281ee3-d141-4b39-b02a-5788bbc4c94c"
  "058557f1-44c8-429f-99d6-0e459e2c5c2c"
  "94a8aaf3-863a-456f-83b5-3206564183d7"
  "3dd62d3b-c559-4e82-8e07-233f5ab8fd4b"
  "92447037-31ff-4c59-850c-522213dfd621"
  "227073fb-99c7-41c2-8dae-62099bdbddad"
  "a1c671dd-20a0-45aa-8560-f63bfb3116a9"
  "84e21a34-3d4a-4803-b5d9-04152b33733f"
  "81d59ea6-694e-4668-9123-7ae4577cc52d"
  "cdca4dc9-3156-4c1f-ba48-fd87154af429"
  "d5018724-6fc5-458a-8ccd-bb8ecf99afe4"
  "5ff5fdd9-8a2c-4371-96bf-04cb86cbbd73"
  "a4e49105-a9c9-4833-9afb-82b322a7bcfd"
  "dd076278-a08f-4d71-85bc-86d59ec6fc61"
  "fc24e92a-4ff1-4e09-a8b1-4c304faaf262"
  "95436f36-c080-4f86-b9df-dc56185e5d57"
  "cf3a72b1-96d7-4c51-9af3-16d618c35f54"
  "ee69bf96-cd21-4fb1-a328-7ffebb6e73d0"
  "865314f8-e6e9-427f-8ab0-242b626b2bad"
  "ae388a1d-5fe7-442a-9fe0-810919c3578f"
  "c1c63f73-7d1d-4f13-a88a-fa251b8afe8f"
]
1.20 ms
(3.87%)
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"
  "bec16d14-0f73-439c-8142-96c27e8d49aa"
  "4efd5819-8239-4da2-86d4-7cfcbad5c0a3"
  "3bf67411-02f9-4f63-b762-5646259ed86f"
  "03281ee3-d141-4b39-b02a-5788bbc4c94c"
  "058557f1-44c8-429f-99d6-0e459e2c5c2c"
  "94a8aaf3-863a-456f-83b5-3206564183d7"
  "3dd62d3b-c559-4e82-8e07-233f5ab8fd4b"
  "227073fb-99c7-41c2-8dae-62099bdbddad"
  "92447037-31ff-4c59-850c-522213dfd621"
  "a1c671dd-20a0-45aa-8560-f63bfb3116a9"
  "84e21a34-3d4a-4803-b5d9-04152b33733f"
  "81d59ea6-694e-4668-9123-7ae4577cc52d"
  "cdca4dc9-3156-4c1f-ba48-fd87154af429"
  "d5018724-6fc5-458a-8ccd-bb8ecf99afe4"
  "5ff5fdd9-8a2c-4371-96bf-04cb86cbbd73"
  "a4e49105-a9c9-4833-9afb-82b322a7bcfd"
  "dd076278-a08f-4d71-85bc-86d59ec6fc61"
  "fc24e92a-4ff1-4e09-a8b1-4c304faaf262"
  "95436f36-c080-4f86-b9df-dc56185e5d57"
  "cf3a72b1-96d7-4c51-9af3-16d618c35f54"
  "865314f8-e6e9-427f-8ab0-242b626b2bad"
  "ee69bf96-cd21-4fb1-a328-7ffebb6e73d0"
  "ae388a1d-5fe7-442a-9fe0-810919c3578f"
  "c1c63f73-7d1d-4f13-a88a-fa251b8afe8f"
]
1.04 ms
(3.37%)
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.80 ms
(2.60%)
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\Product 24
App\Entity\ProductCategory 11
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.