https://cpartners.xbiz.jp/block/search_product

Query Metrics

20 Database Queries
15 Different statements
28.08 ms Query time
1 Invalid entities

Grouped Statements

Show all queries

Time Count Info
9.02 ms
(32.13%)
1
SELECT count(DISTINCT d0_.id) AS sclr_0 FROM dtb_product d0_ INNER JOIN dtb_product_category d1_ ON d0_.id = d1_.product_id AND d1_.discriminator_type IN ('productcategory') INNER JOIN dtb_category d2_ ON d1_.category_id = d2_.id AND d2_.discriminator_type IN ('category') INNER JOIN dtb_product_class d3_ ON d0_.id = d3_.product_id AND d3_.discriminator_type IN ('productclass') WHERE (d0_.product_status_id = 1 AND d1_.category_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) AND d3_.visible = 1) AND d0_.discriminator_type IN ('product') GROUP BY d0_.id
Parameters:
[
  23
  147
  148
  149
  150
  151
  152
  153
  154
  155
  156
]
7.15 ms
(25.48%)
1
SELECT d0_.id AS id_0, d0_.category_name AS category_name_1, d0_.hierarchy AS hierarchy_2, d0_.sort_no AS sort_no_3, d0_.create_date AS create_date_4, d0_.update_date AS update_date_5, d1_.id AS id_6, d1_.category_name AS category_name_7, d1_.hierarchy AS hierarchy_8, d1_.sort_no AS sort_no_9, d1_.create_date AS create_date_10, d1_.update_date AS update_date_11, d2_.id AS id_12, d2_.category_name AS category_name_13, d2_.hierarchy AS hierarchy_14, d2_.sort_no AS sort_no_15, d2_.create_date AS create_date_16, d2_.update_date AS update_date_17, d3_.id AS id_18, d3_.category_name AS category_name_19, d3_.hierarchy AS hierarchy_20, d3_.sort_no AS sort_no_21, d3_.create_date AS create_date_22, d3_.update_date AS update_date_23, d4_.id AS id_24, d4_.category_name AS category_name_25, d4_.hierarchy AS hierarchy_26, d4_.sort_no AS sort_no_27, d4_.create_date AS create_date_28, d4_.update_date AS update_date_29, d0_.discriminator_type AS discriminator_type_30, d0_.parent_category_id AS parent_category_id_31, d0_.creator_id AS creator_id_32, d1_.discriminator_type AS discriminator_type_33, d1_.parent_category_id AS parent_category_id_34, d1_.creator_id AS creator_id_35, d2_.discriminator_type AS discriminator_type_36, d2_.parent_category_id AS parent_category_id_37, d2_.creator_id AS creator_id_38, d3_.discriminator_type AS discriminator_type_39, d3_.parent_category_id AS parent_category_id_40, d3_.creator_id AS creator_id_41, d4_.discriminator_type AS discriminator_type_42, d4_.parent_category_id AS parent_category_id_43, d4_.creator_id AS creator_id_44 FROM dtb_category d0_ LEFT JOIN dtb_category d1_ ON d0_.id = d1_.parent_category_id AND d1_.discriminator_type IN ('category') LEFT JOIN dtb_category d2_ ON d1_.id = d2_.parent_category_id AND d2_.discriminator_type IN ('category') LEFT JOIN dtb_category d3_ ON d2_.id = d3_.parent_category_id AND d3_.discriminator_type IN ('category') LEFT JOIN dtb_category d4_ ON d3_.id = d4_.parent_category_id AND d4_.discriminator_type IN ('category') WHERE (d0_.parent_category_id IS NULL) AND d0_.discriminator_type IN ('category') ORDER BY d0_.sort_no DESC, d1_.sort_no DESC, d2_.sort_no DESC, d3_.sort_no DESC, d4_.sort_no DESC
Parameters:
[]
3.25 ms
(11.58%)
1
SELECT DISTINCT d0_.id AS id_0, MIN(d1_.price02) AS sclr_1, d0_.id AS id_2 FROM dtb_product d0_ INNER JOIN dtb_product_category d2_ ON d0_.id = d2_.product_id AND d2_.discriminator_type IN ('productcategory') INNER JOIN dtb_category d3_ ON d2_.category_id = d3_.id AND d3_.discriminator_type IN ('category') INNER JOIN dtb_product_class d1_ ON d0_.id = d1_.product_id AND d1_.discriminator_type IN ('productclass') WHERE (d0_.product_status_id = 1 AND d2_.category_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) AND d1_.visible = 1) AND d0_.discriminator_type IN ('product') GROUP BY d0_.id ORDER BY sclr_1 ASC, d0_.id DESC LIMIT 20
Parameters:
[
  23
  147
  148
  149
  150
  151
  152
  153
  154
  155
  156
]
3.10 ms
(11.03%)
1
SELECT d0_.id AS id_0, d0_.name AS name_1, d0_.note AS note_2, d0_.description_list AS description_list_3, d0_.description_detail AS description_detail_4, d0_.search_word AS search_word_5, d0_.free_area AS free_area_6, d0_.create_date AS create_date_7, d0_.update_date AS update_date_8, d0_.product_control_number AS product_control_number_9, d0_.sku_control_number AS sku_control_number_10, d0_.gmc_product_id AS gmc_product_id_11, d0_.free_description_about_quantity AS free_description_about_quantity_12, d0_.free_description_about_selling_price AS free_description_about_selling_price_13, d0_.free_description_of_payment_delivery AS free_description_of_payment_delivery_14, d1_.id AS id_15, d1_.product_code AS product_code_16, d1_.stock AS stock_17, d1_.stock_unlimited AS stock_unlimited_18, d1_.sale_limit AS sale_limit_19, d1_.price01 AS price01_20, d1_.price02 AS price02_21, d1_.delivery_fee AS delivery_fee_22, d1_.visible AS visible_23, d1_.create_date AS create_date_24, d1_.update_date AS update_date_25, d1_.currency_code AS currency_code_26, d1_.point_rate AS point_rate_27, d2_.id AS id_28, d2_.tax_rate AS tax_rate_29, d2_.tax_adjust AS tax_adjust_30, d2_.apply_date AS apply_date_31, d2_.create_date AS create_date_32, d2_.update_date AS update_date_33, d3_.id AS id_34, d3_.stock AS stock_35, d3_.create_date AS create_date_36, d3_.update_date AS update_date_37, d4_.id AS id_38, d4_.backend_name AS backend_name_39, d4_.name AS name_40, d4_.sort_no AS sort_no_41, d4_.visible AS visible_42, d4_.create_date AS create_date_43, d4_.update_date AS update_date_44, d5_.id AS id_45, d5_.backend_name AS backend_name_46, d5_.name AS name_47, d5_.sort_no AS sort_no_48, d5_.visible AS visible_49, d5_.create_date AS create_date_50, d5_.update_date AS update_date_51, d6_.id AS id_52, d6_.file_name AS file_name_53, d6_.sort_no AS sort_no_54, d6_.create_date AS create_date_55, d7_.id AS id_56, d7_.create_date AS create_date_57, d0_.discriminator_type AS discriminator_type_58, d0_.creator_id AS creator_id_59, d0_.product_status_id AS product_status_id_60, d1_.discriminator_type AS discriminator_type_61, d1_.product_id AS product_id_62, d1_.sale_type_id AS sale_type_id_63, d1_.class_category_id1 AS class_category_id1_64, d1_.class_category_id2 AS class_category_id2_65, d1_.delivery_duration_id AS delivery_duration_id_66, d1_.creator_id AS creator_id_67, d1_.regular_discount_id AS regular_discount_id_68, d2_.discriminator_type AS discriminator_type_69, d2_.product_class_id AS product_class_id_70, d2_.creator_id AS creator_id_71, d2_.country_id AS country_id_72, d2_.pref_id AS pref_id_73, d2_.product_id AS product_id_74, d2_.rounding_type_id AS rounding_type_id_75, d3_.discriminator_type AS discriminator_type_76, d3_.product_class_id AS product_class_id_77, d3_.creator_id AS creator_id_78, d4_.discriminator_type AS discriminator_type_79, d4_.class_name_id AS class_name_id_80, d4_.creator_id AS creator_id_81, d5_.discriminator_type AS discriminator_type_82, d5_.class_name_id AS class_name_id_83, d5_.creator_id AS creator_id_84, d6_.discriminator_type AS discriminator_type_85, d6_.product_id AS product_id_86, d6_.creator_id AS creator_id_87, d7_.discriminator_type AS discriminator_type_88, d7_.product_id AS product_id_89, d7_.tag_id AS tag_id_90, d7_.creator_id AS creator_id_91 FROM dtb_product d0_ INNER JOIN dtb_product_class d1_ ON d0_.id = d1_.product_id AND d1_.discriminator_type IN ('productclass') LEFT JOIN dtb_tax_rule d2_ ON d1_.id = d2_.product_class_id AND d2_.discriminator_type IN ('taxrule') INNER JOIN dtb_product_stock d3_ ON d1_.id = d3_.product_class_id AND d3_.discriminator_type IN ('productstock') LEFT JOIN dtb_class_category d4_ ON d1_.class_category_id1 = d4_.id AND d4_.discriminator_type IN ('classcategory') LEFT JOIN dtb_class_category d5_ ON d1_.class_category_id2 = d5_.id AND d5_.discriminator_type IN ('classcategory') LEFT JOIN dtb_product_image d6_ ON d0_.id = d6_.product_id AND d6_.discriminator_type IN ('productimage') LEFT JOIN dtb_product_tag d7_ ON d0_.id = d7_.product_id AND d7_.discriminator_type IN ('producttag') WHERE (d0_.id IN (11688, 11687, 11686, 11658, 11691, 11690, 11689, 11868, 11694, 11693, 11692, 11640, 11639, 11638, 11637, 11879, 11873, 11745, 11611, 11610) AND d1_.visible = ?) AND d0_.discriminator_type IN ('product') ORDER BY d4_.sort_no DESC, d5_.sort_no DESC, d6_.sort_no ASC
Parameters:
[
  1
]
1.40 ms
(4.99%)
1
SELECT d0_.id AS id_0, d0_.name AS name_1, d0_.note AS note_2, d0_.description_list AS description_list_3, d0_.description_detail AS description_detail_4, d0_.search_word AS search_word_5, d0_.free_area AS free_area_6, d0_.create_date AS create_date_7, d0_.update_date AS update_date_8, d0_.product_control_number AS product_control_number_9, d0_.sku_control_number AS sku_control_number_10, d0_.gmc_product_id AS gmc_product_id_11, d0_.free_description_about_quantity AS free_description_about_quantity_12, d0_.free_description_about_selling_price AS free_description_about_selling_price_13, d0_.free_description_of_payment_delivery AS free_description_of_payment_delivery_14, MIN(d1_.price02) AS sclr_15, d0_.discriminator_type AS discriminator_type_16, d0_.creator_id AS creator_id_17, d0_.product_status_id AS product_status_id_18 FROM dtb_product d0_ INNER JOIN dtb_product_category d2_ ON d0_.id = d2_.product_id AND d2_.discriminator_type IN ('productcategory') INNER JOIN dtb_category d3_ ON d2_.category_id = d3_.id AND d3_.discriminator_type IN ('category') INNER JOIN dtb_product_class d1_ ON d0_.id = d1_.product_id AND d1_.discriminator_type IN ('productclass') WHERE (d0_.product_status_id = 1 AND d2_.category_id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) AND d1_.visible = 1 AND d0_.id IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) AND d0_.discriminator_type IN ('product') GROUP BY d0_.id ORDER BY sclr_15 ASC, d0_.id DESC
Parameters:
[
  23
  147
  148
  149
  150
  151
  152
  153
  154
  155
  156
  11688
  11687
  11686
  11658
  11691
  11690
  11689
  11868
  11694
  11693
  11692
  11640
  11639
  11638
  11637
  11879
  11873
  11745
  11611
  11610
]
1.08 ms
(3.84%)
6
SELECT t0.id AS id_1, t0.category_name AS category_name_2, t0.hierarchy AS hierarchy_3, t0.sort_no AS sort_no_4, t0.create_date AS create_date_5, t0.update_date AS update_date_6, t0.parent_category_id AS parent_category_id_7, t0.creator_id AS creator_id_8, t0.discriminator_type FROM dtb_category t0 WHERE t0.parent_category_id = ? AND t0.discriminator_type IN ('category') ORDER BY t0.sort_no DESC
Parameters:
[
  658
]
0.72 ms
(2.55%)
1
"START TRANSACTION"
Parameters:
[]
0.50 ms
(1.80%)
1
SELECT d0_.id AS id_0, d0_.layout_name AS layout_name_1, d0_.create_date AS create_date_2, d0_.update_date AS update_date_3, d1_.section AS section_4, d1_.block_id AS block_id_5, d1_.layout_id AS layout_id_6, d1_.block_row AS block_row_7, d2_.id AS id_8, d2_.block_name AS block_name_9, d2_.file_name AS file_name_10, d2_.use_controller AS use_controller_11, d2_.deletable AS deletable_12, d2_.create_date AS create_date_13, d2_.update_date AS update_date_14, d0_.discriminator_type AS discriminator_type_15, d0_.device_type_id AS device_type_id_16, d1_.discriminator_type AS discriminator_type_17, d1_.block_id AS block_id_18, d1_.layout_id AS layout_id_19, d2_.discriminator_type AS discriminator_type_20, d2_.device_type_id AS device_type_id_21 FROM dtb_layout d0_ LEFT JOIN dtb_block_position d1_ ON d0_.id = d1_.layout_id AND d1_.discriminator_type IN ('blockposition') LEFT JOIN dtb_block d2_ ON d1_.block_id = d2_.id AND d2_.discriminator_type IN ('block') WHERE (d0_.id = ?) AND d0_.discriminator_type IN ('layout') ORDER BY d1_.block_row ASC
Parameters:
[
  2
]
0.46 ms
(1.63%)
1
SELECT t0.id AS id_1, t0.company_name AS company_name_2, t0.company_kana AS company_kana_3, t0.postal_code AS postal_code_4, t0.addr01 AS addr01_5, t0.addr02 AS addr02_6, t0.phone_number AS phone_number_7, t0.business_hour AS business_hour_8, t0.email01 AS email01_9, t0.email02 AS email02_10, t0.email03 AS email03_11, t0.email04 AS email04_12, t0.shop_name AS shop_name_13, t0.shop_kana AS shop_kana_14, t0.shop_name_eng AS shop_name_eng_15, t0.update_date AS update_date_16, t0.good_traded AS good_traded_17, t0.message AS message_18, t0.delivery_free_amount AS delivery_free_amount_19, t0.delivery_free_quantity AS delivery_free_quantity_20, t0.option_mypage_order_status_display AS option_mypage_order_status_display_21, t0.option_nostock_hidden AS option_nostock_hidden_22, t0.option_favorite_product AS option_favorite_product_23, t0.option_product_delivery_fee AS option_product_delivery_fee_24, t0.invoice_registration_number AS invoice_registration_number_25, t0.option_product_tax_rule AS option_product_tax_rule_26, t0.option_customer_activate AS option_customer_activate_27, t0.option_remember_me AS option_remember_me_28, t0.option_mail_notifier AS option_mail_notifier_29, t0.authentication_key AS authentication_key_30, t0.php_path AS php_path_31, t0.option_point AS option_point_32, t0.basic_point_rate AS basic_point_rate_33, t0.point_conversion_rate AS point_conversion_rate_34, t0.country_id AS country_id_35, t0.pref_id AS pref_id_36, t0.discriminator_type FROM dtb_base_info t0 WHERE t0.id = ? AND t0.discriminator_type IN ('baseinfo')
Parameters:
[
  1
]
0.39 ms
(1.40%)
1
SELECT d0_.id AS id_0, d0_.page_name AS page_name_1, d0_.url AS url_2, d0_.file_name AS file_name_3, d0_.edit_type AS edit_type_4, d0_.author AS author_5, d0_.description AS description_6, d0_.keyword AS keyword_7, d0_.create_date AS create_date_8, d0_.update_date AS update_date_9, d0_.meta_robots AS meta_robots_10, d0_.meta_tags AS meta_tags_11, d0_.show_in_sitemap AS show_in_sitemap_12, d1_.page_id AS page_id_13, d1_.layout_id AS layout_id_14, d1_.sort_no AS sort_no_15, d2_.id AS id_16, d2_.layout_name AS layout_name_17, d2_.create_date AS create_date_18, d2_.update_date AS update_date_19, d0_.discriminator_type AS discriminator_type_20, d0_.master_page_id AS master_page_id_21, d1_.discriminator_type AS discriminator_type_22, d1_.page_id AS page_id_23, d1_.layout_id AS layout_id_24, d2_.discriminator_type AS discriminator_type_25, d2_.device_type_id AS device_type_id_26 FROM dtb_page d0_ LEFT JOIN dtb_page_layout d1_ ON d0_.id = d1_.page_id AND d1_.discriminator_type IN ('pagelayout') LEFT JOIN dtb_layout d2_ ON d1_.layout_id = d2_.id AND d2_.discriminator_type IN ('layout') WHERE (d0_.url = ?) AND d0_.discriminator_type IN ('page')
Parameters:
[
  "product_list"
]
0.33 ms
(1.17%)
1
SELECT d0_.id AS id_0, d0_.tax_rate AS tax_rate_1, d0_.tax_adjust AS tax_adjust_2, d0_.apply_date AS apply_date_3, d0_.create_date AS create_date_4, d0_.update_date AS update_date_5, d0_.discriminator_type AS discriminator_type_6, d0_.product_class_id AS product_class_id_7, d0_.creator_id AS creator_id_8, d0_.country_id AS country_id_9, d0_.pref_id AS pref_id_10, d0_.product_id AS product_id_11, d0_.rounding_type_id AS rounding_type_id_12 FROM dtb_tax_rule d0_ WHERE (d0_.apply_date < ? AND d0_.pref_id IS NULL AND d0_.country_id IS NULL AND d0_.product_id IS NULL AND d0_.product_class_id IS NULL) AND d0_.discriminator_type IN ('taxrule') ORDER BY d0_.apply_date DESC
Parameters:
[
  "2024-12-24 03:14:43"
]
0.26 ms
(0.94%)
1
SET SESSION time_zone = '+00:00'
Parameters:
[]
0.18 ms
(0.63%)
1
SELECT t0.id AS id_1, t0.name AS name_2, t0.sort_no AS sort_no_3, t0.discriminator_type FROM mtb_product_list_order_by t0 WHERE t0.discriminator_type IN ('productlistorderby') ORDER BY t0.sort_no ASC
Parameters:
[]
0.15 ms
(0.54%)
1
SELECT t0.id AS id_1, t0.name AS name_2, t0.sort_no AS sort_no_3, t0.discriminator_type FROM mtb_product_list_max t0 WHERE t0.discriminator_type IN ('productlistmax') ORDER BY t0.sort_no ASC
Parameters:
[]
0.09 ms
(0.31%)
1
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED
Parameters:
[]

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
Eccube\Entity\AbstractEntity No errors.
Eccube\Entity\Product No errors.
Plugin\ECApgSimpleCalendar\Entity\Config No errors.
Plugin\ECApgSimpleCalendar\Entity\Holiday No errors.
Eccube\Entity\BaseInfo No errors.
Eccube\Entity\Page No errors.
Eccube\Entity\PageLayout No errors.
Eccube\Entity\Block No errors.
Eccube\Entity\BlockPosition No errors.
Eccube\Entity\Master\AbstractMasterEntity No errors.
Eccube\Entity\Master\DeviceType No errors.
Eccube\Entity\AuthorityRole No errors.
Eccube\Entity\Layout No errors.
Eccube\Entity\Order No errors.
Eccube\Entity\Customer No errors.
Eccube\Entity\Master\Country No errors.
Eccube\Entity\Master\Pref No errors.
Eccube\Entity\Delivery No errors.
Eccube\Entity\CustomerFavoriteProduct No errors.
Eccube\Entity\Master\ProductListMax No errors.
Plugin\EccubePaymentLite42\Entity\Config No errors.
Eccube\Entity\Category No errors.
Eccube\Entity\Member No errors.
Eccube\Entity\ProductCategory No errors.
Eccube\Entity\Master\ProductListOrderBy No errors.
Plugin\MailMagazine42\Entity\MailMagazineSendHistory No errors.
Eccube\Entity\ProductClass
  • The field Eccube\Entity\ProductClass#ProductClassRegularCycle is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity Plugin\EccubePaymentLite42\Entity\ProductClassRegularCycle#ProductClass does not contain the required 'inversedBy="ProductClassRegularCycle"' attribute.
Eccube\Entity\Master\ProductStatus No errors.
Eccube\Entity\ProductImage No errors.
Eccube\Entity\ProductTag No errors.
Eccube\Entity\TaxRule No errors.
Eccube\Entity\ProductStock No errors.
Eccube\Entity\ClassCategory No errors.
Eccube\Entity\Master\SaleType No errors.
Eccube\Entity\DeliveryDuration No errors.
Plugin\EccubePaymentLite42\Entity\RegularDiscount No errors.
Eccube\Entity\Master\RoundingType No errors.
Eccube\Entity\ClassName No errors.
Eccube\Entity\Tag No errors.
Plugin\EccubePaymentLite42\Entity\ProductClassRegularCycle No errors.
Eccube\Entity\CartItem No errors.