magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.47k stars 9.28k forks source link

Randomly getting flooded with queries from related / upsell / crosssell blocks and price indexing #36667

Closed ioweb-gr closed 3 months ago

ioweb-gr commented 1 year ago

Preconditions and environment

Steps to reproduce

I don't have the exact steps, other than the fact that reindexing the price rules takes too long. However in my case I see hundreds of queries like this

image

Which take too long to finish and drop our website

Expected result

The site is still working and queries are much faster and won't bring the site down.

Actual result

The website is down with a lot of queries in queue. Over 2k siilar to this

SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position` FROM `catalog_product_entity` AS `e` INNER JOIN `inventory_stock_5` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '2' INNER JOIN `catalog_category_product_index_store5` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=5 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2 INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 4 LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '3' INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('80468')) AND (`e`.`entity_id` != '80468') ORDER BY `position` ASC

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

Hi @ioweb-gr. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:

Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

Adel-Magebinary commented 1 year ago

There might be a dead lock created. Use flock to separate your index thread for cron.

Adel-Magebinary commented 1 year ago

See here https://github.com/magento/magento2/issues/25987#issuecomment-576034263

m2-assistant[bot] commented 1 year ago

Hi @engcom-Dash. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:


engcom-Dash commented 1 year ago

Hi @ioweb-gr ,

We are trying to reproduce the issue in 2.4.4 magento instance...But We are not able to reproduce the issue. As per description we created 800 categories cart price rules,150k products,5 websites everything. While doing the reindexing process it will take long time..But it will not affect side down.The site is still working. Screenshots for your reference:

Screenshot 2022-12-27 at 10 45 03 PM Screenshot 2022-12-27 at 10 45 52 PM Screenshot 2022-12-27 at 10 46 06 PM Screenshot 2022-12-28 at 8 05 56 AM Screenshot 2022-12-28 at 8 11 04 AM

Let us know if we missing anything!!! Thanks!!!

ioweb-gr commented 1 year ago

Hi, it's not like it's dropping constantly when reindexing. The problem is that we get this situation randomly while the site is under normal load 40-60 users. I think @Adel-Magebinary may be right about this one and the original issue is the same as mine.

I experimented with changing the lock-mechanism from DB to File as a test, and the load average on the server decreased significantly (it was averaging at 9-14) and now it's constantly on 2-4.

I'm waiting a bit to see if the issue reoccurs with the file lock mechanism and if it does I'll experiment with flock as it was suggested in the thread.

It's entirely possible the cause is that same issue #25987

Let's put this issue on hold until I can verify this behavior has changed by changing the lock mechanism.

engcom-Dash commented 1 year ago

Hi @ioweb-gr ,

We are closing this issue as there has been no latest update on the same. Kindly reopen / create new issue if you are still facing any issues. Thank you.

ioweb-gr commented 1 year ago

HI @engcom-Dash I was trying to figure out what else might be the difference between our systems, in my case I have the indexers set to schedule mode.

Today I tried to reset the following indexers

inventory cataloginventory_stock

Which in turn tried to trigger a reindex of

catalog_product_price

After doing this, I got the same picture as above. This doesn't seem to be a concurrency issue or a lock issue

Would you be willing to retry it once with the indexers set in scheduled mode?

engcom-Dash commented 1 year ago

Hi @ioweb-gr ,

Thanks for your Information... Verified the issue in 2.4-develop instance...The issue is not reproducible. As per your instructions we tried to reset the below indexers 1.inventory

  1. cataloginventory_stock And i tried to reindex the below one 1.catalog_product_price

But we got expected result as " The site is still working and queries are much faster and won't bring the site down."

Thanks.

ioweb-gr commented 1 year ago

This is a weekly occurence for us but I still need any ideas you can throw on how to reproduce the issue in a stable manner

engcom-Dash commented 1 year ago

Hi @Adel-Magebinary , @ilnytskyi , @Nuranto , @hostep ,

cc: @ioweb-gr ,

Thank you all for your kind cooperation, I am writing a request to all of you that here we are trying to reproduce the issue,But as neither reporter nor i am able to reproduce the issue. Hence a humble request to all of you, Kindly help as here to reproduce the issue.

Thanks.

Nuranto commented 1 year ago

Hi @engcom-Dash,

I'm not sure why I'm pinged here. However, that makes me think of an issue of mine : https://github.com/magento/magento2/issues/35685

As you can see in mview.xml :

    <view id="catalog_product_price" class="Magento\Catalog\Model\Indexer\Product\Price" group="indexer">
        <subscriptions>
            <table name="catalog_product_entity" entity_column="entity_id" />
            <table name="catalog_product_entity_datetime" entity_column="entity_id" />
            <table name="catalog_product_entity_decimal" entity_column="entity_id" />
            <table name="catalog_product_entity_int" entity_column="entity_id" />
            <table name="catalog_product_entity_tier_price" entity_column="entity_id" />
            <table name="catalog_product_link" entity_column="product_id" />
        </subscriptions>
    </view>

Price index gets reindexed each time a product is updated. So if we update the color, the manufacturer or any int/decimal/date/static attribute, the price gets reindexed. On website with high amounts of product data writing, that could produce a huge quantity of useless reindex sql requests.

Hope it'll help.

ioweb-gr commented 1 year ago

This could be spot on, because we have a data entries of 1000 products a day. We also mass update cost prices, discounts and some visual attributes that refer to sales and discount classes and url keys. It's possible we may have 15000 - 30000 product updates per day. Also we also have multiple websites with different currencies and exchange rates as well as different prices per website.

ioweb-gr commented 1 year ago

Today we faced this after deleting a bunch of SKUs from the website

image

I'm not sure what we can do to reproduce this on a clean instance, as it seems to be data dependent in the sense that it's needed to cause the system to overload. There are 22 catalog product price rules, over 1000 categories, over 100k products, over 10 customer groups, and constant data entry and mass updates of data. And even so, it occurs randomly through the day, in different working hours, in different days, there's literally no way to pinpoint the source.

Moreover all those queries are created by the default price indexers.

Adel-Magebinary commented 1 year ago

How did you delete the products? Can you please create a console script by using product collections to delete 2000 random products to see if this triggers? Then you can just post the console script here.

ioweb-gr commented 1 year ago

That would probably require to create 2000 test products first on the site to delete them and its a production site. I'll see if I can arrange such a test

ioweb-gr commented 1 year ago

Just another piece of info here are the tables which are locked during the drop

MariaDB [(none)]> SHOW OPEN TABLES WHERE  In_use > 0;
+-----------------+----------------------------------------+--------+-------------+
| Database        | Table                                  | In_use | Name_locked |
+-----------------+----------------------------------------+--------+-------------+
| db_example___ | inventory_stock_5                      |     11 |           0 |
| db_example___ | catalog_product_link_attribute_decimal |      3 |           0 |
| db_example___ | inventory_stock_9                      |      2 |           0 |
| db_example___ | catalog_category_product_index_store5  |      3 |           0 |
| db_example___ | inventory_stock_7                      |      5 |           0 |
| db_example___ | catalog_product_website                |      1 |           0 |
| db_example___ | catalog_product_index_price            |      3 |           0 |
| db_example___ | catalog_product_relation               |     96 |           0 |
| db_example___ | catalog_compare_item                   |      2 |           0 |
| db_example___ | catalog_product_entity                 |    333 |           0 |
| db_example___ | catalog_product_link                   |      3 |           0 |
| db_example___ | catalog_product_link_attribute_int     |      3 |           0 |
| db_example___ | catalog_product_entity_int             |     50 |           0 |
+-----------------+----------------------------------------+--------+-------------+
ioweb-gr commented 1 year ago

What I've noticed in common in all times the website stopped responding is that above the Rename Table query there's always a query like this

SELECT `e`.*,
       `price_index`.`price`,
       `price_index`.`tax_class_id`,
       `price_index`.`final_price`,
       IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price),
          price_index.min_price)             AS `minimal_price`,
       `price_index`.`min_price`,
       `price_index`.`max_price`,
       `price_index`.`tier_price`,
       `cat_index`.`position`                AS `cat_index_position`,
       `stock_status_index`.`is_salable`,
       `links`.`link_id`,
       `links`.`product_id`                  AS `_linked_to_product_id`,
       `link_attribute_position_int`.`value` AS `position`,
       `link_attribute_qty_decimal`.`value`  AS `qty`
FROM `catalog_product_entity` AS `e`
         INNER JOIN `inventory_stock_5` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku
         INNER JOIN `catalog_product_index_price_ws2` AS `price_index`
                    ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND
                       price_index.website_id = '2'
         INNER JOIN `catalog_category_product_index_store5` AS `cat_index`
                    ON cat_index.product_id = e.entity_id AND cat_index.store_id = 5 AND
                       cat_index.visibility IN (2, 4) AND cat_index.category_id = 2
         INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id
         INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku
         INNER JOIN `catalog_product_link` AS `links`
                    ON links.linked_product_id = e.entity_id AND links.link_type_id = 1
         LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int`
                   ON link_attribute_position_int.link_id = links.link_id AND
                      link_attribute_position_int.product_link_attribute_id = '2'
         LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal`
                   ON link_attribute_qty_decimal.link_id = links.link_id AND
                      link_attribute_qty_decimal.product_link_attribute_id = '6'
         INNER JOIN `catalog_product_entity` AS `product_entity_table`
                    ON links.product_id = product_entity_table.entity_id
WHERE (inventory_in_stock.is_salable = 1)
  AND (stock_status_index.is_salable = 1)
  AND (links.product_id in ('154028'))
  AND (`e`.`entity_id` != '154028')
ORDER BY `position` ASC

Which is taking long to execute for no apparent reason. If I kill this query execution, everything starts executing fast enough.

The weird thing is that if I retry the query later on, it executes lightning fast, in less than 100ms.

I don't understand why killing this query makes all other queries progress fast and I'm not sure why a select query would lock the database like this

It's possibly coming from \Magento\Catalog\Model\ResourceModel\Product\Collection::_productLimitationPrice

Adel-Magebinary commented 1 year ago

This is happening because there is another thread in MySQL is writing to one of these tables in the query. We call it "update while select". The issue is not select query. The issue is "write" queries.

Try adding the below to your env.php, which reduces the batch size while indexing. It might fix your issues. Make sure your cron job pick this up too.

    'indexer' => [
        'batch_size' => [
            'cataloginventory_stock' => [
                'simple' => 200
            ],
            'catalog_category_product' => 666,
            'catalogsearch_fulltext' => [
                'partial_reindex' => 100,
                'mysql_get' => 500,
                'elastic_save' => 500
            ],
            'catalog_product_price' => [
                'simple' => 200,
                'default' => 500,
                'configurable' => 666
            ],
            'catalogpermissions_category' => 999,
            'inventory' => [
                'simple' => 210,
                'default' => 510,
                'configurable' => 616
            ]
        ]
    ],
ioweb-gr commented 1 year ago

I've already experimented with

cataloginventory_stock catalog_category_product catalog_product_price catalogsearch_fulltext

Even reaching 20 items per batch and saw this still occurring :(

Adel-Magebinary commented 1 year ago

There must be something locking the tables and writing in them. Can you post your MySQL config here? Are you using MSI?

ioweb-gr commented 1 year ago

Yeah of course. I'm using MSI

Here's the output of show variables mariadb_config.txt

Adel-Magebinary commented 1 year ago

https://github.com/magento/inventory/issues/2793#issuecomment-881343776

ioweb-gr commented 1 year ago

OK today it just replicated in an easy manner for me.

I made changes into 20 catalog rules that affect the product prices to include a new website in their effect scope.

As soon as we did that and reindexing started, I got into this situation

image

Killing the top 3 queries in the screenshot, let all the rest run again.

So the problem appears to come up when queries are inserting into the tables that are going to be renamed and creating deadlocks. Is it possible it's a conflict between the partial reindexing and the full reindex processes?

Adel-Magebinary commented 1 year ago

This is really similar to the issues that we had. After we applied flock in cron for each cron group, it went away. This is definitely "select on insert". Try changing the tmp table to memory in mysql.

Try adding the following to your mysql.cnf

innodb_autoinc_lock_mode=2
internal_tmp_mem_storage_engine=MEMORY
innodb_flush_log_at_trx_commit=2
transaction_isolation="READ-COMMITTED"
ioweb-gr commented 1 year ago

@Adel-Magebinary Thank you very much for trying to help. Perhaps I did something wrong in the flock separation of groups. For example for each group I added a definition like this

*/10 * * * * flock -n /tmp/amasty_base.lockfile /opt/plesk/php/7.4/bin/php -f 'httpdocs/bin/magento' -- 'cron:run' --group=amasty_base > /dev/null

This ended up spawning a bunch of lock files in the /tmp directory and my cron history shows cron jobs are being processed successfully. e.g.

Times shown in Europe/Athens
+------------------------------------------------------------+---------+---------------------+
| Job                                                        | Status  | Finished            |
+------------------------------------------------------------+---------+---------------------+
| indexer_reindex_all_invalid                                | success | 2023-07-05 15:40:37 |

However I didn't see that saving the situation.

Regarding your configs I'm not sure if our free memory will suffice we operate at like 94/128GB with our current traffic and I have concerns about innodb_flush_log_at_trx_commit=2. In the past I've dealt with database corruption due to this settings because the OS had it cached but then suffered a kernel panic which left things broken bad.

This innodb_autoinc_lock_mode=2 looks interesting as we face slowness generating increment ids. Not sure what transaction_isolation="READ-COMMITTED" does.

ioweb-gr commented 1 year ago

After using flock I got this

image

So as before I'm in the same situation. It did recover a bit faster, but still in the same state with one never-ending select

image

I'll try and experiment with the settings you provided to see if it mitigates the situation. However this issue shouldn't happen in the first place from the core. How can I determine which cron jobs / indexers are at fault here to prevent it?

ioweb-gr commented 1 year ago

In the end in the cron.log it's constantly this cron job timing out due to waiting on a lock. These are just examples it's always some RENAME query crashing.

[2023-07-05 04:10:23] main.ERROR: Cron Job indexer_update_all_views has an error: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction, query was: TRUNCATE TABLE `catalog_category_product_index_store1_replica`. Statistics: {"sum":0,"count":1,"realmem":0,"emalloc":0,"realmem_start":115343360,"emalloc_start":34652360} [] []

and this one

[2023-07-05 08:39:52] main.ERROR: Cron Job indexer_reindex_all_invalid has an error: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction, query was: RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica. Statistics: {"sum":0,"count":1,"realmem":0,"emalloc":0,"realmem_start":115343360,"emalloc_start":34211560} [] []
ioweb-gr commented 1 year ago

Ι'll add some extra information.

Currently it shows that two queries are executing for a prolonged period

image

SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e` INNER JOIN `inventory_stock_5` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '2' INNER JOIN `catalog_category_product_index_store5` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=5 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2 INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1 LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2' LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6' INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('158898')) AND (`e`.`entity_id` != '158898') ORDER BY `position` ASC

SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e` INNER JOIN `inventory_stock_5` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '2' INNER JOIN `catalog_category_product_index_store5` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=5 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2 INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1 LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2' LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6' INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('154958')) AND (`e`.`entity_id` != '154958') ORDER BY `position` ASC

There doesn't seem to be a database lock currently

| InnoDB |      |
=====================================
2023-07-06 11:02:41 0x7fef4d074700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 24 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 24347 srv_active, 0 srv_shutdown, 8847 srv_idle
srv_master_thread log flush and writes: 33193
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 16886491
OS WAIT ARRAY INFO: signal count 40586870
RW-shared spins 92106908, rounds 281998222, OS waits 5213540
RW-excl spins 45936899, rounds 205260401, OS waits 3412521
RW-sx spins 9359123, rounds 275438314, OS waits 8071513
Spin rounds per wait: 3.06 RW-shared, 4.47 RW-excl, 29.43 RW-sx
------------
TRANSACTIONS
------------
Trx id counter 1772230899
Purge done for trx's n:o < 1772180308 undo n:o < 0 state: running but idle
History list length 20289
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 422176365707528, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 422176365711744, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 422176365703312, ACTIVE 0 sec starting index read
mysql tables in use 3, locked 0
0 lock struct(s), heap size 1128, 0 row lock(s)
MySQL thread id 74906, OS thread handle 140665393481472, query id 134164457 localhost 127.0.0.1 db_live Sending data
SELECT `cpe`.`entity_id`, inventory_stock.quantity+IF(ISNULL(SUM(ir.quantity)),0,SUM(ir.quantity)) AS quantity, MAX(is_salable) as is_salable FROM `inventory_stock_7` AS `inventory_stock`
 LEFT JOIN `inventory_reservation` AS `ir` ON ir.sku = inventory_stock.sku
 LEFT JOIN `catalog_product_entity` AS `cpe` ON inventory_stock.sku = cpe.sku GROUP BY `cpe`.`entity_id`
Trx read view will not see trx with id >= 1772230895, sees < 1772230895
---TRANSACTION 422176365774984, ACTIVE 0 sec fetching rows
mysql tables in use 17, locked 17
264 lock struct(s), heap size 57464, 6041 row lock(s)
MySQL thread id 74251, OS thread handle 140666153232128, query id 134164580 localhost 127.0.0.1 db_live Sending data
INSERT INTO `catalog_category_product_index_store7_tmp` (`category_id`, `product_id`, `position`, `is_parent`, `store_id`, `visibility`) SELECT `cc`.`entity_id` AS `category_id`, `ccp`.`product_id`, IFNULL(ccp2.position, ccp.position + 10000) AS `position`, 0 AS `is_parent`, 7 AS `store_id`, IFNULL(cpvs.value, cpvd.value) AS `visibility` FROM `catalog_category_entity` AS `cc`
 INNER JOIN `temp_catalog_category_tree_index_c1453bad` AS `cc2` ON cc2.parent_id = cc.entity_id AND cc.entity_id NOT IN (1)
 INNER JOIN `catalog_category_product` AS `ccp` ON ccp.category_id = cc2.child_id
 LEFT JOIN `ca
---TRANSACTION 422176365745472, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 422176365749688, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 422176365715960, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 422176366040592, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 422176365990000, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 422176365732824, ACTIVE 1338 sec starting index read
mysql tables in use 10, locked 0
0 lock struct(s), heap size 1128, 0 row lock(s)
MySQL thread id 69614, OS thread handle 140665391331072, query id 128136000 localhost 127.0.0.1 db_live Sending data
SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`
Trx read view will not see trx with id >= 1772180307, sees < 1772180307
---TRANSACTION 422176365724392, ACTIVE 1338 sec
mysql tables in use 10, locked 0
0 lock struct(s), heap size 1128, 0 row lock(s)
MySQL thread id 69607, OS thread handle 140665752717056, query id 128135089 localhost 127.0.0.1 db_live Sending data
SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`
Trx read view will not see trx with id >= 1772180307, sees < 1772180307
--------
FILE I/O
--------
I/O thread 0 state: waiting for completed aio requests (insert buffer thread)
I/O thread 1 state: waiting for completed aio requests (log thread)
I/O thread 2 state: waiting for completed aio requests (read thread)
I/O thread 3 state: waiting for completed aio requests (read thread)
I/O thread 4 state: waiting for completed aio requests (read thread)
I/O thread 5 state: waiting for completed aio requests (read thread)
I/O thread 6 state: waiting for completed aio requests (write thread)
I/O thread 7 state: waiting for completed aio requests (write thread)
I/O thread 8 state: waiting for completed aio requests (write thread)
I/O thread 9 state: waiting for completed aio requests (write thread)
Pending normal aio reads: [0, 0, 0, 0] , aio writes: [0, 0, 0, 0] ,
 ibuf aio reads:, log i/o's:, sync i/o's:
Pending flushes (fsync) log: 0; buffer pool: 0
1667776 OS file reads, 9939666 OS file writes, 1470789 OS fsyncs
0.08 reads/s, 16384 avg bytes/read, 126.08 writes/s, 32.42 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 609294, seg size 609296, 7555 merges
merged operations:
 insert 56518, delete mark 104706, delete 28855
discarded operations:
 insert 0, delete mark 0, delete 0
Hash table size 8850487, node heap has 30509 buffer(s)
Hash table size 8850487, node heap has 52908 buffer(s)
Hash table size 8850487, node heap has 33460 buffer(s)
Hash table size 8850487, node heap has 16647 buffer(s)
Hash table size 8850487, node heap has 42176 buffer(s)
Hash table size 8850487, node heap has 49675 buffer(s)
Hash table size 8850487, node heap has 28265 buffer(s)
Hash table size 8850487, node heap has 34932 buffer(s)
2132837.05 hash searches/s, 363533.85 non-hash searches/s
---
LOG
---
Log sequence number 29949846571266
Log flushed up to   29949846571266
Pages flushed up to 29949832920413
Last checkpoint at  29949829760229
0 pending log flushes, 0 pending chkp writes
1204214 log i/o's done, 23.67 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 34368126976
Dictionary memory allocated 5858440
Buffer pool size   2054912
Free buffers       1000
Database pages     1765337
Old database pages 651637
Modified db pages  1691
Percent of dirty pages(LRU & free pages): 0.096
Max dirty pages percent: 75.000
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 212082, not young 21165531
0.21 youngs/s, 2.83 non-youngs/s
Pages read 1665282, created 1089907, written 8589572
0.08 reads/s, 28.58 creates/s, 100.54 writes/s
Buffer pool hit rate 999 / 1000, young-making rate 0 / 1000 not 0 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 1765337, unzip_LRU len: 0
I/O sum[5194]:cur[0], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
3 read views open inside InnoDB
Process ID=2893801, Main thread ID=140666312111872, state: sleeping
Number of rows inserted 164363494, updated 15842852, deleted 69133279, read 72104189322
7347.82 inserts/s, 375.28 updates/s, 3796.01 deletes/s, 3865928.96 reads/s
Number of system rows inserted 0, updated 0, deleted 0, read 0
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================

Moreover if I execute the same queries at the same period the same queries they will take around 90ms to finish. While those are still hanging there and I notice it says 0 locks in the status report for those queries unless I'm reading something wrong

mysql tables in use 10, locked 0
0 lock struct(s), heap size 1128, 0 row lock(s)
MySQL thread id 69614, OS thread handle 140665391331072, query id 128136000 localhost 127.0.0.1 db_live Sending data
SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`
Trx read view will not see trx with id >= 1772180307, sees < 1772180307
---TRANSACTION 422176365724392, ACTIVE 1338 sec
mysql tables in use 10, locked 0
0 lock struct(s), heap size 1128, 0 row lock(s)
MySQL thread id 69607, OS thread handle 140665752717056, query id 128135089 localhost 127.0.0.1 db_live Sending data
SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`
Trx read view will not see trx with id >= 1772180307, sees < 1772180307

This looks really strange. What could be causing this delay?

ioweb-gr commented 1 year ago

Also I forgot to mention I'm on MariaDB so internal_tmp_mem_storage_engine=MEMORY is invalid, the server wont' start if I add it.

Adel-Magebinary commented 1 year ago

Did you add transaction_isolation="READ-COMMITTED"?

Adel-Magebinary commented 1 year ago

@ioweb-gr did you fix it?

ioweb-gr commented 1 year ago

Unfortunately not, this is a sales period so we weren't able to change the database settings yet due to possible risks.

We'll do it a bit later when sales are off and assess if it helps with the situation :(

Adel-Magebinary commented 1 year ago

You can still apply transaction_isolation via the mysql command line to set the global variable. Have a read.

ioweb-gr commented 1 year ago

Same deal after changing to READ-COMMITED and using flock and all suggestions so far.

image

MariaDB [(none)]> show global variables like 'tx_iso%';
+---------------+----------------+
| Variable_name | Value          |
+---------------+----------------+
| tx_isolation  | READ-COMMITTED |
+---------------+----------------+
1 row in set (0.004 sec)
Adel-Magebinary commented 1 year ago

um....

Try setting the following too. It's definitely the MySQL thread got locked up while selecting when other threads are inserting.

innodb_autoinc_lock_mode=2 innodb_flush_log_at_trx_commit=2

ioweb-gr commented 1 year ago

I'm really concerned about those two just going through the documentation. Have you used them before? Were they safe?

innodb_flush_log_at_trx_commit=2

An operating system crash could be really dangerous in such cases, we've had this in the past in other projects which left our DB entirely broken due to a Kernel Panic due to problematic memory module.

innodb_flush_log_at_trx_commit=2

isn't that also dangerous to set?

Currently our server is using binlog format -> MIXED

+-----------------------------------------+----------------------+
| Variable_name                           | Value                |
+-----------------------------------------+----------------------+
| binlog_annotate_row_events              | ON                   |
| binlog_cache_size                       | 32768                |
| binlog_checksum                         | CRC32                |
| binlog_commit_wait_count                | 0                    |
| binlog_commit_wait_usec                 | 100000               |
| binlog_direct_non_transactional_updates | OFF                  |
| binlog_file_cache_size                  | 16384                |
| binlog_format                           | MIXED                |
| binlog_optimize_thread_scheduling       | ON                   |
| binlog_row_image                        | FULL                 |
| binlog_stmt_cache_size                  | 32768                |
| encrypt_binlog                          | OFF                  |
| gtid_binlog_pos                         |                      |
| gtid_binlog_state                       |                      |
| innodb_locks_unsafe_for_binlog          | OFF                  |
| max_binlog_cache_size                   | 18446744073709547520 |
| max_binlog_size                         | 1073741824           |
| max_binlog_stmt_cache_size              | 18446744073709547520 |
| read_binlog_speed_limit                 | 0                    |
| sync_binlog                             | 0                    |
| wsrep_forced_binlog_format              | NONE                 |

The docs mention that for statement based it's dangerous, and mixed is actually also using statement based binlog intermixed with row based.

Interleaved Lock Mode

When [innodb_autoinc_lock_mode](https://mariadb.com/kb/en/innodb-system-variables/#innodb_autoinc_lock_mode) is set to 2, [InnoDB](https://mariadb.com/kb/en/innodb/) uses the interleaved lock mode.

In this mode, [InnoDB](https://mariadb.com/kb/en/innodb/) does not hold any table-level locks at all. This is the fastest and most scalable mode, but is not safe for [statement-based](https://mariadb.com/kb/en/binary-log-formats/#statement-based) replication.
ioweb-gr commented 1 year ago

I managed to grab a full process list during the issue

``` Id User Host db Command Time State Info Progress 2 system user NULL Daemon NULL InnoDB purge worker NULL 0.000 3 system user NULL Daemon NULL InnoDB purge worker NULL 0.000 1 system user NULL Daemon NULL InnoDB purge coordinator NULL 0.000 4 system user NULL Daemon NULL InnoDB purge worker NULL 0.000 5 system user NULL Daemon NULL InnoDB shutdown handler NULL 0.000 6588400 admin localhost psa Sleep 36 NULL 0.000 6850398 db_edomainnlive localhost:15332 db_edomainnlive Sleep 2659 NULL 0.000 6850411 db_edomainnlive localhost:15436 db_edomainnlive Query 0 Sending data INSERT INTO `catalog_category_product_index_store10_replica` (`category_id`, `product_id`, `position`, `is_parent`, `store_id`, `visibility`) SELECT 2 AS `category_id`, `cp`.`entity_id` AS `product_id`, IF(ccp.product_id IS NOT NULL, ccp.position, 0) AS `position`, IF(ccp.product_id IS NOT NULL, 1, 0) AS `is_parent`, 10 AS `store_id`, IFNULL(cpvs.value, cpvd.value) AS `visibility` FROM `catalog_product_entity` AS `cp`\n INNER JOIN `catalog_product_website` AS `cpw` ON cpw.product_id = cp.entity_id\n INNER JOIN `catalog_product_entity_int` AS `cpsd` ON cpsd.entity_id = cp.entity_id AND cpsd.store_id = 0 AND cpsd.attribute_id = 84\n LEFT JOIN `catalog_product_entity_int` AS `cpss` ON cpss.entity_id = cp.entity_id AND cpss.attribute_id = cpsd.attribute_id AND cpss.store_id = 10\n INNER JOIN `catalog_product_entity_int` AS `cpvd` ON cpvd.entity_id = cp.entity_id AND cpvd.store_id = 0 AND cpvd.attribute_id = 91\n LEFT JOIN `catalog_product_entity_int` AS `cpvs` ON cpvs.entity_id = cp.entity_id AND cpvs.attribute_id = cpvd.attribute_id AND cpvs.store_id = 10\n LEFT JOIN `catalog_category_product` AS `ccp` ON ccp.product_id = cp.entity_id WHERE (cpw.website_id = '5') AND (IFNULL(cpss.value, cpsd.value) = 1) AND (IFNULL(cpvs.value, cpvd.value) IN (2, 3, 4)) AND (cp.entity_id IN (182207, 132938, 106034, 183196, 183197, 183198, 118801, 146851, 146852, 146853, 146854, 146855, 117128, 117129, 117130, 117131, 117132, 181838, 181839, 181840, 181841, 181842, 181843, 181844, 181845, 181846, 181847, 181848, 181849, 183275, 182811, 183014, 182782, 183038, 183023, 183015, 182212, 183039, 183032, 182810, 183040, 182182, 182799, 182802, 183016, 183026, 183033, 183041, 182790, 182809, 183022, 183017, 183027, 182779, 182780, 181689, 183028, 182988, 181615, 181621, 182791, 182812, 182986, 182873, 182987, 183020, 183034, 182867, 182792, 182866, 183021, 183035, 182989, 182793, 182868, 182787, 156065, 156068, 182803, 181617, 182783, 181618, 181616, 182786, 182807, 181691, 182788, 181692, 182789, 182784, 181690, 182805, 137211, 156066, 182871, 182785, 181624, 182801, 71161, 182808, 168359, 182804, 182872, 181623, 168356, 182869, 182874, 181622, 182806, 182870, 159395, 104383, 104384, 104385, 104386, 104387, 104388, 104389, 113698, 113699, 113700, 179023, 179024, 179025, 179026, 179027, 179028, 179029, 179030, 177107, 177108, 177109, 177110, 177111, 177112, 177113, 177114, 177115, 177116, 177117, 69613, 104330, 106031, 117127, 118798, 132929, 146850, 156064, 159389, 168355, 181614, 181620, 181688, 181837, 182177, 182777, 182796, 182862, 182985, 183013, 183019, 183025, 183031, 183037, 183195)) GROUP BY `cp`.`entity_id` ON DUPLICATE KEY UPDATE `category_id` = VALUES(`category_id`), `product_id` = VALUES(`product_id`), `position` = VALUES(`position`), `is_parent` = VALUES(`is_parent`), `store_id` = VALUES(`store_id`), `visibility` = VALUES(`visibility`) 0.000 6861411 db_edomainnlive localhost:46664 db_edomainnlive Sleep 1458 NULL 0.000 6861425 db_edomainnlive localhost:46778 db_edomainnlive Sleep 0 NULL 0.000 6866203 db_edomainnlive localhost:10300 db_edomainnlive Query 961 Sending data SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`\n INNER JOIN `inventory_stock_5` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku\n INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '2'\n INNER JOIN `catalog_category_product_index_store5` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=5 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku\n INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1\n LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2'\n LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6'\n INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('133498')) AND (`e`.`entity_id` != '133498') ORDER BY `position` ASC 0.000 6866210 db_edomainnlive localhost:10380 db_edomainnlive Query 961 Sending data SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`\n INNER JOIN `inventory_stock_5` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku\n INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '2'\n INNER JOIN `catalog_category_product_index_store5` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=5 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku\n INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1\n LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2'\n LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6'\n INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('170808')) AND (`e`.`entity_id` != '170808') ORDER BY `position` ASC 0.000 6866211 db_edomainnlive localhost:10384 db_edomainnlive Query 961 Sending data SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`\n INNER JOIN `inventory_stock_5` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku\n INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '2'\n INNER JOIN `catalog_category_product_index_store5` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=5 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku\n INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1\n LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2'\n LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6'\n INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('170832')) AND (`e`.`entity_id` != '170832') ORDER BY `position` ASC 0.000 6866213 db_edomainnlive localhost:10404 db_edomainnlive Query 961 Sending data SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`\n INNER JOIN `inventory_stock_5` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku\n INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '2'\n INNER JOIN `catalog_category_product_index_store5` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=5 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku\n INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1\n LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2'\n LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6'\n INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('93685')) AND (`e`.`entity_id` != '93685') ORDER BY `position` ASC 0.000 6866214 db_edomainnlive localhost:10410 db_edomainnlive Query 961 Sending data SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`\n INNER JOIN `inventory_stock_5` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku\n INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '2'\n INNER JOIN `catalog_category_product_index_store5` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=5 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku\n INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1\n LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2'\n LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6'\n INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('170838')) AND (`e`.`entity_id` != '170838') ORDER BY `position` ASC 0.000 6866215 db_edomainnlive localhost:10412 db_edomainnlive Query 961 Sending data SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`\n INNER JOIN `inventory_stock_5` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku\n INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '2'\n INNER JOIN `catalog_category_product_index_store5` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=5 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku\n INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1\n LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2'\n LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6'\n INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('170850')) AND (`e`.`entity_id` != '170850') ORDER BY `position` ASC 0.000 6866216 db_edomainnlive localhost:10414 db_edomainnlive Query 961 Sending data SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`\n INNER JOIN `inventory_stock_5` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku\n INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '2'\n INNER JOIN `catalog_category_product_index_store5` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=5 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku\n INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1\n LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2'\n LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6'\n INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('170844')) AND (`e`.`entity_id` != '170844') ORDER BY `position` ASC 0.000 6866218 db_edomainnlive localhost:10428 db_edomainnlive Query 961 Sending data SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`\n INNER JOIN `inventory_stock_5` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku\n INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '2'\n INNER JOIN `catalog_category_product_index_store5` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=5 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku\n INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1\n LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2'\n LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6'\n INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('170851')) AND (`e`.`entity_id` != '170851') ORDER BY `position` ASC 0.000 6866219 db_edomainnlive localhost:10436 db_edomainnlive Query 961 Sending data SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`\n INNER JOIN `inventory_stock_5` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku\n INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '2'\n INNER JOIN `catalog_category_product_index_store5` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=5 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku\n INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1\n LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2'\n LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6'\n INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('170856')) AND (`e`.`entity_id` != '170856') ORDER BY `position` ASC 0.000 6866220 db_edomainnlive localhost:10440 db_edomainnlive Query 961 Sending data SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`\n INNER JOIN `inventory_stock_5` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku\n INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '2'\n INNER JOIN `catalog_category_product_index_store5` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=5 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku\n INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1\n LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2'\n LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6'\n INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('170858')) AND (`e`.`entity_id` != '170858') ORDER BY `position` ASC 0.000 6866221 db_edomainnlive localhost:10442 db_edomainnlive Query 961 Sending data SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`\n INNER JOIN `inventory_stock_5` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku\n INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '2'\n INNER JOIN `catalog_category_product_index_store5` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=5 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku\n INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1\n LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2'\n LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6'\n INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('170860')) AND (`e`.`entity_id` != '170860') ORDER BY `position` ASC 0.000 6866299 db_edomainnlive localhost:55704 db_edomainnlive Query 949 Sending data SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`\n INNER JOIN `inventory_stock_7` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku\n INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '1'\n INNER JOIN `catalog_category_product_index_store1` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=1 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_7` AS `stock_status_index` ON product.sku = stock_status_index.sku\n INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1\n LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2'\n LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6'\n INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('114581')) AND (`e`.`entity_id` != '114581') ORDER BY `position` ASC 0.000 6866355 db_edomainnlive localhost:50564 db_edomainnlive Query 940 Sending data SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`\n INNER JOIN `inventory_stock_9` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku\n INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '5'\n INNER JOIN `catalog_category_product_index_store10` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=10 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_9` AS `stock_status_index` ON product.sku = stock_status_index.sku\n INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1\n LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2'\n LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6'\n INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('149988')) AND (`e`.`entity_id` != '149988') ORDER BY `position` ASC 0.000 6866544 db_edomainnlive localhost:20790 db_edomainnlive Query 919 Sending data SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`\n INNER JOIN `inventory_stock_12` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku\n INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '6'\n INNER JOIN `catalog_category_product_index_store12` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=12 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=1084\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_12` AS `stock_status_index` ON product.sku = stock_status_index.sku\n INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1\n LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2'\n LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6'\n INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('172221')) AND (`e`.`entity_id` != '172221') ORDER BY `position` ASC 0.000 6869190 db_edomainnlive localhost:31384 db_edomainnlive Sleep 0 NULL 0.000 6871313 admin localhost psa Sleep 262 NULL 0.000 6871333 db_edomainnlive localhost:61614 db_edomainnlive Sleep 260 NULL 0.000 6871350 db_edomainnlive localhost:61758 db_edomainnlive Query 0 Writing to net SELECT `source_item`.`sku`, `stock_source_link`.`stock_id` FROM `inventory_source_item` AS `source_item`\n INNER JOIN `inventory_source_stock_link` AS `stock_source_link` ON source_item.source_code = stock_source_link.source_code WHERE (source_item.source_item_id IN ('11481531', '11492654')) 0.000 6871392 db_edomainnlive localhost:62150 db_edomainnlive Query 0 Creating sort index SELECT `main_table`.*, `product_sizechart`.* FROM `bss_size_chart` AS `main_table`\n INNER JOIN `bss_product_sizechart` AS `product_sizechart` ON main_table.size_chart_value_id = product_sizechart.size_chart_id WHERE (product_id = '172268') AND (enable) AND (id_store in ( '0', '5' )) ORDER BY `priority` DESC\n LIMIT 1 0.000 6871396 db_edomainnlive localhost:62174 db_edomainnlive Query 0 Creating sort index SELECT `main_table`.*, `product_sizechart`.* FROM `bss_size_chart` AS `main_table`\n INNER JOIN `bss_product_sizechart` AS `product_sizechart` ON main_table.size_chart_value_id = product_sizechart.size_chart_id WHERE (product_id = '172274') AND (enable) AND (id_store in ( '0', '5' )) ORDER BY `priority` DESC\n LIMIT 1 0.000 6871397 db_edomainnlive localhost:62186 db_edomainnlive Query 0 Creating sort index SELECT `main_table`.*, `product_sizechart`.* FROM `bss_size_chart` AS `main_table`\n INNER JOIN `bss_product_sizechart` AS `product_sizechart` ON main_table.size_chart_value_id = product_sizechart.size_chart_id WHERE (product_id = '172280') AND (enable) AND (id_store in ( '0', '5' )) ORDER BY `priority` DESC\n LIMIT 1 0.000 6871398 db_edomainnlive localhost:62196 db_edomainnlive Query 0 Sending data SELECT `main_table`.*, `product_sizechart`.* FROM `bss_size_chart` AS `main_table`\n INNER JOIN `bss_product_sizechart` AS `product_sizechart` ON main_table.size_chart_value_id = product_sizechart.size_chart_id WHERE (enable) AND (product_id = '172286') AND (overwrite = '1') AND (id_store in ( '0', '5' )) 0.000 6871402 db_edomainnlive localhost:62242 db_edomainnlive Query 0 Reset for next command NULL 0.000 6871403 db_edomainnlive localhost:62252 db_edomainnlive Sleep 0 NULL 0.000 6871404 db_edomainnlive localhost:11614 db_edomainnlive Query 0 Init SELECT `main_table`.*, `default_option_title`.`title` AS `default_title`, `store_option_title`.`title` AS `store_title`, IF(store_option_title.title IS NULL, default_option_title.title, store_option_title.title) AS `title`, `default_option_price`.`price` AS `default_price`, `default_option_price`.`price_type` AS `default_price_type`, `store_option_price`.`price` AS `store_price`, `store_option_price`.`price_type` AS `store_price_type`, IF(store_option_price.price IS NULL, default_option_price.price, store_option_price.price) AS `price`, IF(store_option_price.price_type IS NULL, default_option_price.price_type, store_option_price.price_type) AS `price_type` FROM `catalog_product_option` AS `main_table`\n INNER JOIN `catalog_product_entity` AS `cpe` ON cpe.entity_id = main_table.product_id\n INNER JOIN `catalog_product_option_title` AS `default_option_title` ON default_option_title.option_id = main_table.option_id\n LEFT JOIN `catalog_product_option_title` AS `store_option_title` ON store_option_title.option_id = main_table.option_id AND store_option_title.store_id = 5\n LEFT JOIN `catalog_product_option_price` AS `default_option_price` ON default_option_price.option_id = main_table.option_id AND default_option_price.store_id = 0\n LEFT JOIN `catalog_product_option_price` AS `store_option_price` ON store_option_price.option_id = main_table.option_id AND store_option_price.store_id = 5 WHERE (`cpe`.`entity_id` = '154659') AND (default_option_title.store_id = 0) ORDER BY sort_order ASC, title ASC 0.000 6871405 db_edomainnlive localhost:11626 db_edomainnlive Query 0 Sending data SELECT `main_table`.*, `product_sizechart`.* FROM `bss_size_chart` AS `main_table`\n INNER JOIN `bss_product_sizechart` AS `product_sizechart` ON main_table.size_chart_value_id = product_sizechart.size_chart_id WHERE (enable) AND (product_id = '172305') AND (overwrite = '1') AND (id_store in ( '0', '5' )) 0.000 6871406 db_edomainnlive localhost:11636 db_edomainnlive Sleep 0 NULL 0.000 6871409 db_edomainnlive localhost:11654 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_sales_channel`.* FROM `inventory_stock_sales_channel` WHERE (stock_id = 7) 0.000 6871414 db_edomainnlive localhost:11692 db_edomainnlive Sleep 0 NULL 0.000 6871425 db_edomainnlive localhost:11802 db_edomainnlive Sleep 0 NULL 0.000 6871428 db_edomainnlive localhost:11840 db_edomainnlive Sleep 0 NULL 0.000 6871430 db_edomainnlive localhost:11856 db_edomainnlive Sleep 0 NULL 0.000 6871434 db_edomainnlive localhost:11890 db_edomainnlive Sleep 0 NULL 0.000 6871436 db_edomainnlive localhost:14630 db_edomainnlive Sleep 0 NULL 0.000 6871441 db_edomainnlive localhost:14668 db_edomainnlive Sleep 0 NULL 0.000 6871453 db_edomainnlive localhost:14772 db_edomainnlive Sleep 0 NULL 0.000 6871454 db_edomainnlive localhost:14774 db_edomainnlive Query 0 Creating sort index SELECT `main_table`.*, `product_sizechart`.* FROM `bss_size_chart` AS `main_table`\n INNER JOIN `bss_product_sizechart` AS `product_sizechart` ON main_table.size_chart_value_id = product_sizechart.size_chart_id WHERE (product_id = '92018') AND (enable) AND (id_store in ( '0', '5' )) ORDER BY `priority` DESC\n LIMIT 1 0.000 6871456 db_edomainnlive localhost:39562 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_sales_channel`.* FROM `inventory_stock_sales_channel` WHERE (stock_id = 9) 0.000 6871467 db_edomainnlive localhost:39616 db_edomainnlive Sleep 0 NULL 0.000 6871468 db_edomainnlive localhost:39620 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_sales_channel`.* FROM `inventory_stock_sales_channel` WHERE (stock_id = 12) 0.000 6871469 db_edomainnlive localhost:39634 db_edomainnlive Query 0 Sending data SELECT `catalog_category_product`.`category_id`, `catalog_category_product`.`position` FROM `catalog_category_product` WHERE (product_id = 151737) 0.000 6871470 db_edomainnlive localhost:39650 db_edomainnlive Query 0 Statistics SELECT `catalog_category_product`.`category_id`, `catalog_category_product`.`position` FROM `catalog_category_product` WHERE (product_id = 151745) 0.000 6871471 db_edomainnlive localhost:39652 db_edomainnlive Query 0 Sending data SELECT `u`.* FROM ( (SELECT `t`.`value`, `t`.`attribute_id`, `t`.`store_id` FROM `catalog_product_entity_int` AS `t` WHERE (entity_id = '151735') AND (attribute_id IN ('84', '70', '113', '329', '842', '345', '812', '127', '852', '860', '110', '829', '78', '343', '333', '815', '339', '814', '823', '128', '112', '805', '109', '292', '85', '293', '341', '404', '340', '215', '111', '299', '91', '304', '762', '209', '290', '398', '859', '327', '204', '213', '214', '273', '241', '318', '822', '847', '114', '117', '837', '861')) AND (`store_id` IN ('5', 0)))UNION ALL(SELECT `t`.`value`, `t`.`attribute_id`, `t`.`store_id` FROM `catalog_product_entity_text` AS `t` WHERE (entity_id = '151735') AND (attribute_id IN ('62', '816', '61', '843', '844', '72', '335', '336', '337', '95', '338', '310', '289', '389', '390', '223', '242', '243', '863')) AND (`store_id` IN ('5', 0)))UNION ALL(SELECT `t`.`value`, `t`.`attribute_id`, `t`.`store_id` FROM `catalog_product_entity_varchar` AS `t` WHERE (entity_id = '151735') AND (attribute_id IN ('74', '86', '96', '60', '75', '71', '98', '330', '839', '76', '406', '92', '334', '108', '408', '405', '331', '826', '284', '73', '332', '83', '854', '257', '779', '323', '87', '780', '295', '307', '101', '102', '103', '255', '387', '388', '288', '325', '218', '319', '806', '777', '778', '115', '116', '824', '825')) AND (`store_id` IN ('5', 0)))UNION ALL(SELECT `t`.`value`, `t`.`attribute_id`, `t`.`store_id` FROM `catalog_product_entity_decimal` AS `t` WHERE (entity_id = '151735') AND (attribute_id IN ('65', '68', '79', '64', '258', '88', '296', '69', '308', '221', '848')) AND (`store_id` IN ('5', 0)))UNION ALL(SELECT `t`.`value`, `t`.`attribute_id`, `t`.`store_id` FROM `catalog_product_entity_datetime` AS `t` WHERE (entity_id = '151735') AND (attribute_id IN ('93', '66', '94', '67', '845', '846', '81', '82', '216')) AND (`store_id` IN ('5', 0))) ) AS `u` ORDER BY `store_id` ASC 0.000 6871472 db_edomainnlive localhost:39658 db_edomainnlive Query 0 Creating sort index SELECT `main_table`.*, `product_sizechart`.* FROM `bss_size_chart` AS `main_table`\n INNER JOIN `bss_product_sizechart` AS `product_sizechart` ON main_table.size_chart_value_id = product_sizechart.size_chart_id WHERE (product_id = '135502') AND (enable) AND (id_store in ( '0', '5' )) ORDER BY `priority` DESC\n LIMIT 1 0.000 6871473 db_edomainnlive localhost:39672 db_edomainnlive Query 0 Sending data SELECT `main`.`value_id`, `main`.`value` AS `file`, `main`.`media_type`, `entity`.`entity_id`, IFNULL(`value`.`label`, `default_value`.`label`) AS `label`, IFNULL(`value`.`position`, `default_value`.`position`) AS `position`, IFNULL(`value`.`disabled`, `default_value`.`disabled`) AS `disabled`, `default_value`.`label` AS `label_default`, `default_value`.`position` AS `position_default`, `default_value`.`disabled` AS `disabled_default`, IFNULL(`value_video`.`provider`, `default_value_video`.`provider`) AS `video_provider`, IFNULL(`value_video`.`url`, `default_value_video`.`url`) AS `video_url`, IFNULL(`value_video`.`title`, `default_value_video`.`title`) AS `video_title`, IFNULL(`value_video`.`description`, `default_value_video`.`description`) AS `video_description`, IFNULL(`value_video`.`metadata`, `default_value_video`.`metadata`) AS `video_metadata`, `default_value_video`.`provider` AS `video_provider_default`, `default_value_video`.`url` AS `video_url_default`, `default_value_video`.`title` AS `video_title_default`, `default_value_video`.`description` AS `video_description_default`, `default_value_video`.`metadata` AS `video_metadata_default` FROM `catalog_product_entity_media_gallery` AS `main`\n INNER JOIN `catalog_product_entity_media_gallery_value_to_entity` AS `entity` ON main.value_id = entity.value_id\n LEFT JOIN `catalog_product_entity_media_gallery_value` AS `value` ON main.value_id = value.value_id AND value.store_id = 5 AND value.entity_id = entity.entity_id\n LEFT JOIN `catalog_product_entity_media_gallery_value` AS `default_value` ON main.value_id = default_value.value_id AND default_value.store_id = 0 AND default_value.entity_id = entity.entity_id\n LEFT JOIN `catalog_product_entity_media_gallery_value_video` AS `value_video` ON value.value_id = value_video.value_id AND value.store_id = value_video.store_id\n LEFT JOIN `catalog_product_entity_media_gallery_value_video` AS `default_value_video` ON default_value.value_id = default_value_video.value_id AND default_value.store_id = default_value_video.store_id WHERE (main.attribute_id = '77') AND (main.disabled = 0) AND (entity.entity_id = '135826') ORDER BY IF(value.position IS NULL, default_value.position, value.position) ASC 0.000 6871476 db_edomainnlive localhost:39692 db_edomainnlive Query 9 Sending data SELECT `e`.*, IF(at_visibility.value_id > 0, at_visibility.value, at_visibility_default.value) AS `visibility`, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `at_brand_logo`.`value` AS `brand_logo`, IF(at_news_from_date.value_id > 0, at_news_from_date.value, at_news_from_date_default.value) AS `news_from_date`, IF(at_news_to_date.value_id > 0, at_news_to_date.value, at_news_to_date_default.value) AS `news_to_date`, `stock_status_index`.`is_salable` FROM `catalog_product_entity` AS `e`\n INNER JOIN `catalog_product_entity_int` AS `at_visibility_default` ON (`at_visibility_default`.`entity_id` = `e`.`entity_id`) AND (`at_visibility_default`.`attribute_id` = 91) AND `at_visibility_default`.`store_id` = 0\n LEFT JOIN `catalog_product_entity_int` AS `at_visibility` ON (`at_visibility`.`entity_id` = `e`.`entity_id`) AND (`at_visibility`.`attribute_id` = 91) AND (`at_visibility`.`store_id` = 5)\n INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '2'\n INNER JOIN `catalog_product_website` AS `product_website` ON product_website.product_id = e.entity_id AND product_website.website_id = 2\n INNER JOIN `catalog_product_entity_int` AS `at_brand_logo` ON (`at_brand_logo`.`entity_id` = `e`.`entity_id`) AND (`at_brand_logo`.`attribute_id` = 273) AND (`at_brand_logo`.`store_id` = 0)\n LEFT JOIN `catalog_product_entity_datetime` AS `at_news_from_date_default` ON (`at_news_from_date_default`.`entity_id` = `e`.`entity_id`) AND (`at_news_from_date_default`.`attribute_id` = 81) AND `at_news_from_date_default`.`store_id` = 0\n LEFT JOIN `catalog_product_entity_datetime` AS `at_news_from_date` ON (`at_news_from_date`.`entity_id` = `e`.`entity_id`) AND (`at_news_from_date`.`attribute_id` = 81) AND (`at_news_from_date`.`store_id` = 5)\n LEFT JOIN `catalog_product_entity_datetime` AS `at_news_to_date_default` ON (`at_news_to_date_default`.`entity_id` = `e`.`entity_id`) AND (`at_news_to_date_default`.`attribute_id` = 82) AND `at_news_to_date_default`.`store_id` = 0\n LEFT JOIN `catalog_product_entity_datetime` AS `at_news_to_date` ON (`at_news_to_date`.`entity_id` = `e`.`entity_id`) AND (`at_news_to_date`.`attribute_id` = 82) AND (`at_news_to_date`.`store_id` = 5)\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku WHERE (((IF(at_visibility.value_id > 0, at_visibility.value, at_visibility_default.value) = '2') OR (IF(at_visibility.value_id > 0, at_visibility.value, at_visibility_default.value) = '4'))) AND ((((IFNULL(`at_brand_logo`.`value`, 0) = '1943') OR(IFNULL(`at_brand_logo`.`value`, 0) = '1944') OR(IFNULL(`at_brand_logo`.`value`, 0) = '1946') OR(IFNULL(`at_brand_logo`.`value`, 0) = '1945') OR(IFNULL(`at_brand_logo`.`value`, 0) = '1950') OR(IFNULL(`at_brand_logo`.`value`, 0) = '1951') OR(IFNULL(`at_brand_logo`.`value`, 0) = '1958') ) AND(IFNULL(`e`.`entity_id`, 0) NOT IN (SELECT `catalog_category_product`.`product_id` FROM `catalog_category_product` WHERE (category_id IN ('222')))) )) AND (((((IF(at_news_from_date.value_id > 0, at_news_from_date.value, at_news_from_date_default.value) <= '2023-08-25 23:59:59') OR (IF(at_news_from_date.value_id > 0, at_news_from_date.value, at_news_from_date_default.value) IS null))))) AND (((((IF(at_news_to_date.value_id > 0, at_news_to_date.value, at_news_to_date_default.value) >= '2023-08-25 00:00:00') OR (IF(at_news_to_date.value_id > 0, at_news_to_date.value, at_news_to_date_default.value) IS null))))) AND ((IF(at_news_from_date.value_id > 0, at_news_from_date.value, at_news_from_date_default.value) IS not null) OR (IF(at_news_to_date.value_id > 0, at_news_to_date.value, at_news_to_date_default.value) IS not null)) AND (stock_status_index.is_salable = 1) ORDER BY `e`.`entity_id` DESC\n LIMIT 12 0.000 6871479 db_edomainnlive localhost:39718 db_edomainnlive Sleep 0 NULL 0.000 6871482 db_edomainnlive localhost:39730 db_edomainnlive Query 0 Sending data SELECT `e`.*, `at_shoe_size`.`value` AS `shoe_size`, `stock_status_index`.`is_salable` FROM `catalog_product_entity` AS `e`\n INNER JOIN `catalog_product_entity_int` AS `at_shoe_size` ON (`at_shoe_size`.`entity_id` = `e`.`entity_id`) AND (`at_shoe_size`.`attribute_id` = 128) AND (`at_shoe_size`.`store_id` = 0)\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku WHERE (`e`.`entity_id` IN('149337', '149338', '149339', '149340', '149341', '149342', '149343')) AND (at_shoe_size.value = '172') AND (stock_status_index.is_salable = 1) 0.000 6871486 db_edomainnlive localhost:39764 db_edomainnlive Query 0 Sending data SELECT `e`.*, `at_shoe_size`.`value` AS `shoe_size`, `stock_status_index`.`is_salable` FROM `catalog_product_entity` AS `e`\n INNER JOIN `catalog_product_entity_int` AS `at_shoe_size` ON (`at_shoe_size`.`entity_id` = `e`.`entity_id`) AND (`at_shoe_size`.`attribute_id` = 128) AND (`at_shoe_size`.`store_id` = 0)\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku WHERE (`e`.`entity_id` IN('149345', '149346', '149347', '149348', '149349', '149350', '149351')) AND (at_shoe_size.value = '143') AND (stock_status_index.is_salable = 1) 0.000 6871487 db_edomainnlive localhost:39768 db_edomainnlive Sleep 0 NULL 0.000 6871488 db_edomainnlive localhost:39782 db_edomainnlive Query 0 Sending data SELECT `catalog_category_product`.`category_id`, `catalog_category_product`.`position` FROM `catalog_category_product` WHERE (product_id = 149719) 0.000 6871490 db_edomainnlive localhost:39806 db_edomainnlive Sleep 0 NULL 0.000 6871491 db_edomainnlive localhost:39812 db_edomainnlive Sleep 0 NULL 0.000 6871492 db_edomainnlive localhost:39816 db_edomainnlive Sleep 0 NULL 0.000 6871495 db_edomainnlive localhost:44758 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_sales_channel`.* FROM `inventory_stock_sales_channel` WHERE (stock_id = 10) 0.000 6871496 db_edomainnlive localhost:44766 db_edomainnlive Sleep 0 NULL 0.000 6871497 db_edomainnlive localhost:44772 db_edomainnlive Sleep 0 NULL 0.000 6871499 db_edomainnlive localhost:44782 db_edomainnlive Sleep 0 NULL 0.000 6871510 db_edomainnlive localhost:44874 db_edomainnlive Sleep 0 NULL 0.000 6871522 db_edomainnlive localhost:44950 db_edomainnlive Sleep 0 NULL 0.000 6871536 db_edomainnlive localhost:62382 db_edomainnlive Query 0 Sending data SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_decimal` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_decimal` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 1 WHERE (e.entity_id IN (174259)) AND (t_d.attribute_id IN (64, 65)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_datetime` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_datetime` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 1 WHERE (e.entity_id IN (174259)) AND (t_d.attribute_id IN (66, 67)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_int` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_int` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 1 WHERE (e.entity_id IN (174259)) AND (t_d.attribute_id IN (85)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) 0.000 6871538 db_edomainnlive localhost:62402 db_edomainnlive Query 0 Statistics SELECT `tbl_selection`.`product_id`, `tbl_selection`.`parent_product_id`, `tbl_selection`.`option_id`, `parent`.*, `tbl_option`.`required` FROM `catalog_product_bundle_selection` AS `tbl_selection`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = tbl_selection.product_id AND e.required_options=0\n INNER JOIN `catalog_product_entity` AS `parent` ON tbl_selection.parent_product_id = parent.entity_id\n INNER JOIN `catalog_product_bundle_option` AS `tbl_option` ON tbl_option.option_id = tbl_selection.option_id WHERE (parent.entity_id = '112534') 0.000 6871541 db_edomainnlive localhost:62424 db_edomainnlive Sleep 0 NULL 0.000 6871548 db_edomainnlive localhost:62484 db_edomainnlive Sleep 0 NULL 0.000 6871552 db_edomainnlive localhost:62526 db_edomainnlive Sleep 0 NULL 0.000 6871553 db_edomainnlive localhost:62532 db_edomainnlive Sleep 0 NULL 0.000 6871560 db_edomainnlive localhost:62600 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_sales_channel`.* FROM `inventory_stock_sales_channel` WHERE (stock_id = 5) 0.000 6871568 db_edomainnlive localhost:64620 db_edomainnlive Sleep 0 NULL 0.000 6871570 db_edomainnlive localhost:64636 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_sales_channel`.* FROM `inventory_stock_sales_channel` WHERE (stock_id = 13) 0.000 6871578 db_edomainnlive localhost:64700 db_edomainnlive Query 0 Sending data SELECT `u`.* FROM ( (SELECT `t`.`value`, `t`.`attribute_id`, `t`.`store_id` FROM `catalog_product_entity_int` AS `t` WHERE (entity_id = '148064') AND (attribute_id IN ('84', '70', '113', '329', '842', '345', '812', '127', '852', '860', '110', '829', '78', '343', '333', '815', '339', '814', '823', '128', '112', '805', '109', '292', '85', '293', '341', '404', '340', '215', '111', '299', '91', '304', '762', '209', '290', '398', '859', '327', '204', '213', '214', '273', '241', '318', '822', '847', '114', '117', '837', '861')) AND (`store_id` IN ('5', 0)))UNION ALL(SELECT `t`.`value`, `t`.`attribute_id`, `t`.`store_id` FROM `catalog_product_entity_text` AS `t` WHERE (entity_id = '148064') AND (attribute_id IN ('62', '816', '61', '843', '844', '72', '335', '336', '337', '95', '338', '310', '289', '389', '390', '223', '242', '243', '863')) AND (`store_id` IN ('5', 0)))UNION ALL(SELECT `t`.`value`, `t`.`attribute_id`, `t`.`store_id` FROM `catalog_product_entity_varchar` AS `t` WHERE (entity_id = '148064') AND (attribute_id IN ('74', '86', '96', '60', '75', '71', '98', '330', '839', '76', '406', '92', '334', '108', '408', '405', '331', '826', '284', '73', '332', '83', '854', '257', '779', '323', '87', '780', '295', '307', '101', '102', '103', '255', '387', '388', '288', '325', '218', '319', '806', '777', '778', '115', '116', '824', '825')) AND (`store_id` IN ('5', 0)))UNION ALL(SELECT `t`.`value`, `t`.`attribute_id`, `t`.`store_id` FROM `catalog_product_entity_decimal` AS `t` WHERE (entity_id = '148064') AND (attribute_id IN ('65', '68', '79', '64', '258', '88', '296', '69', '308', '221', '848')) AND (`store_id` IN ('5', 0)))UNION ALL(SELECT `t`.`value`, `t`.`attribute_id`, `t`.`store_id` FROM `catalog_product_entity_datetime` AS `t` WHERE (entity_id = '148064') AND (attribute_id IN ('93', '66', '94', '67', '845', '846', '81', '82', '216')) AND (`store_id` IN ('5', 0))) ) AS `u` ORDER BY `store_id` ASC 0.000 6871579 db_edomainnlive localhost:64714 db_edomainnlive Query 0 Sending data SELECT `e`.*, `at_shoe_size`.`value` AS `shoe_size`, `stock_status_index`.`is_salable` FROM `catalog_product_entity` AS `e`\n INNER JOIN `catalog_product_entity_int` AS `at_shoe_size` ON (`at_shoe_size`.`entity_id` = `e`.`entity_id`) AND (`at_shoe_size`.`attribute_id` = 128) AND (`at_shoe_size`.`store_id` = 0)\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku WHERE (`e`.`entity_id` IN('148170', '148171', '148172')) AND (at_shoe_size.value = '49') AND (stock_status_index.is_salable = 1) 0.000 6871582 db_edomainnlive localhost:64730 db_edomainnlive Sleep 0 NULL 0.000 6871583 db_edomainnlive localhost:64744 db_edomainnlive Sleep 0 NULL 0.000 6871584 db_edomainnlive localhost:64758 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_sales_channel`.* FROM `inventory_stock_sales_channel` WHERE (stock_id = 10) 0.000 6871585 db_edomainnlive localhost:64760 db_edomainnlive Query 0 Sending data SELECT `e`.*, `at_shoe_size`.`value` AS `shoe_size`, `stock_status_index`.`is_salable` FROM `catalog_product_entity` AS `e`\n INNER JOIN `catalog_product_entity_int` AS `at_shoe_size` ON (`at_shoe_size`.`entity_id` = `e`.`entity_id`) AND (`at_shoe_size`.`attribute_id` = 128) AND (`at_shoe_size`.`store_id` = 0)\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku WHERE (`e`.`entity_id` IN('148198', '148199', '148200', '148201', '148202', '148203', '148204')) AND (at_shoe_size.value = '147') AND (stock_status_index.is_salable = 1) 0.000 6871586 db_edomainnlive localhost:64770 db_edomainnlive Query 0 Sending data SELECT `catalog_category_product`.`category_id`, `catalog_category_product`.`position` FROM `catalog_category_product` WHERE (product_id = 148210) 0.000 6871589 db_edomainnlive localhost:64798 db_edomainnlive Sleep 0 NULL 0.000 6871592 db_edomainnlive localhost:64814 db_edomainnlive Query 0 Sending data SELECT `main_table`.*, `product_sizechart`.* FROM `bss_size_chart` AS `main_table`\n INNER JOIN `bss_product_sizechart` AS `product_sizechart` ON main_table.size_chart_value_id = product_sizechart.size_chart_id WHERE (enable) AND (product_id = '148225') AND (overwrite = '1') AND (id_store in ( '0', '5' )) 0.000 6871595 db_edomainnlive localhost:64842 db_edomainnlive Query 0 Sending data SELECT `e`.*, `at_shoe_size`.`value` AS `shoe_size`, `stock_status_index`.`is_salable` FROM `catalog_product_entity` AS `e`\n INNER JOIN `catalog_product_entity_int` AS `at_shoe_size` ON (`at_shoe_size`.`entity_id` = `e`.`entity_id`) AND (`at_shoe_size`.`attribute_id` = 128) AND (`at_shoe_size`.`store_id` = 0)\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku WHERE (`e`.`entity_id` IN('148232', '148233', '148234', '148235', '148236')) AND (at_shoe_size.value = '202') AND (stock_status_index.is_salable = 1) 0.000 6871596 db_edomainnlive localhost:64846 db_edomainnlive Query 0 Statistics SELECT `main_table`.* FROM `inventory_source_stock_link` AS `main_table` WHERE ((`source_code` = 'glyfada')) 0.000 6871597 db_edomainnlive localhost:64850 db_edomainnlive Sleep 0 NULL 0.000 6871598 db_edomainnlive localhost:64860 db_edomainnlive Sleep 0 NULL 0.000 6871599 db_edomainnlive localhost:64876 db_edomainnlive Sleep 0 NULL 0.000 6871600 db_edomainnlive localhost:64878 db_edomainnlive Query 0 Sending data SELECT `e`.*, `at_shoe_size`.`value` AS `shoe_size`, `stock_status_index`.`is_salable` FROM `catalog_product_entity` AS `e`\n INNER JOIN `catalog_product_entity_int` AS `at_shoe_size` ON (`at_shoe_size`.`entity_id` = `e`.`entity_id`) AND (`at_shoe_size`.`attribute_id` = 128) AND (`at_shoe_size`.`store_id` = 0)\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku WHERE (`e`.`entity_id` IN('149147', '149148', '149149', '149150', '149151', '149152', '149153')) AND (at_shoe_size.value = '198') AND (stock_status_index.is_salable = 1) 0.000 6871602 db_edomainnlive localhost:64890 db_edomainnlive Sleep 0 NULL 0.000 6871606 db_edomainnlive localhost:54692 db_edomainnlive Query 0 Sending data SELECT `catalog_category_product`.`category_id`, `catalog_category_product`.`position` FROM `catalog_category_product` WHERE (product_id = 148591) 0.000 6871607 db_edomainnlive localhost:54698 db_edomainnlive Query 0 Sending data SELECT `entity`.`sku`, `product_entity`.`entity_id` AS `product_id`, `attribute`.`attribute_code`, `entity_value`.`value` AS `value_index`, IFNULL(option_value.value, default_option_value.value) AS `option_title`, `default_option_value`.`value` AS `default_title` FROM `catalog_product_super_attribute` AS `super_attribute`\n INNER JOIN `catalog_product_entity` AS `product_entity` ON product_entity.entity_id = super_attribute.product_id\n INNER JOIN `catalog_product_super_link` AS `product_link` ON product_link.parent_id = super_attribute.product_id\n INNER JOIN `eav_attribute` AS `attribute` ON attribute.attribute_id = super_attribute.attribute_id\n INNER JOIN `catalog_product_entity` AS `entity` ON entity.entity_id = product_link.product_id\n INNER JOIN `catalog_product_entity_int` AS `entity_value` ON entity_value.attribute_id = super_attribute.attribute_id AND entity_value.store_id = 0 AND entity_value.entity_id = entity.entity_id\n LEFT JOIN `eav_attribute_option_value` AS `option_value` ON option_value.option_id = entity_value.value AND option_value.store_id = 5\n LEFT JOIN `eav_attribute_option_value` AS `default_option_value` ON default_option_value.option_id = entity_value.value AND default_option_value.store_id = 0\n INNER JOIN `eav_attribute_option` AS `attribute_option` ON attribute_option.option_id = entity_value.value WHERE (super_attribute.product_id = '147344') AND (attribute.attribute_id = '128') ORDER BY `attribute_option`.`sort_order` ASC 0.000 6871608 db_edomainnlive localhost:54700 db_edomainnlive Sleep 0 NULL 0.000 6871609 db_edomainnlive localhost:54714 db_edomainnlive Query 0 Sending data SELECT `main`.`value_id`, `main`.`value` AS `file`, `main`.`media_type`, `entity`.`entity_id`, IFNULL(`value`.`label`, `default_value`.`label`) AS `label`, IFNULL(`value`.`position`, `default_value`.`position`) AS `position`, IFNULL(`value`.`disabled`, `default_value`.`disabled`) AS `disabled`, `default_value`.`label` AS `label_default`, `default_value`.`position` AS `position_default`, `default_value`.`disabled` AS `disabled_default`, IFNULL(`value_video`.`provider`, `default_value_video`.`provider`) AS `video_provider`, IFNULL(`value_video`.`url`, `default_value_video`.`url`) AS `video_url`, IFNULL(`value_video`.`title`, `default_value_video`.`title`) AS `video_title`, IFNULL(`value_video`.`description`, `default_value_video`.`description`) AS `video_description`, IFNULL(`value_video`.`metadata`, `default_value_video`.`metadata`) AS `video_metadata`, `default_value_video`.`provider` AS `video_provider_default`, `default_value_video`.`url` AS `video_url_default`, `default_value_video`.`title` AS `video_title_default`, `default_value_video`.`description` AS `video_description_default`, `default_value_video`.`metadata` AS `video_metadata_default` FROM `catalog_product_entity_media_gallery` AS `main`\n INNER JOIN `catalog_product_entity_media_gallery_value_to_entity` AS `entity` ON main.value_id = entity.value_id\n LEFT JOIN `catalog_product_entity_media_gallery_value` AS `value` ON main.value_id = value.value_id AND value.store_id = 5 AND value.entity_id = entity.entity_id\n LEFT JOIN `catalog_product_entity_media_gallery_value` AS `default_value` ON main.value_id = default_value.value_id AND default_value.store_id = 0 AND default_value.entity_id = entity.entity_id\n LEFT JOIN `catalog_product_entity_media_gallery_value_video` AS `value_video` ON value.value_id = value_video.value_id AND value.store_id = value_video.store_id\n LEFT JOIN `catalog_product_entity_media_gallery_value_video` AS `default_value_video` ON default_value.value_id = default_value_video.value_id AND default_value.store_id = default_value_video.store_id WHERE (main.attribute_id = '77') AND (main.disabled = 0) AND (entity.entity_id = '147353') ORDER BY IF(value.position IS NULL, default_value.position, value.position) ASC 0.000 6871610 db_edomainnlive localhost:54716 db_edomainnlive Query 0 Sending data SELECT `u`.* FROM ( (SELECT `t`.`value`, `t`.`attribute_id`, `t`.`store_id` FROM `catalog_product_entity_int` AS `t` WHERE (entity_id = '148605') AND (attribute_id IN ('84', '70', '113', '329', '842', '345', '812', '127', '852', '860', '110', '829', '78', '343', '333', '815', '339', '814', '823', '128', '112', '805', '109', '292', '85', '293', '341', '404', '340', '215', '111', '299', '91', '304', '762', '209', '290', '398', '859', '327', '204', '213', '214', '273', '241', '318', '822', '847', '114', '117', '837', '861')) AND (`store_id` IN ('5', 0)))UNION ALL(SELECT `t`.`value`, `t`.`attribute_id`, `t`.`store_id` FROM `catalog_product_entity_text` AS `t` WHERE (entity_id = '148605') AND (attribute_id IN ('62', '816', '61', '843', '844', '72', '335', '336', '337', '95', '338', '310', '289', '389', '390', '223', '242', '243', '863')) AND (`store_id` IN ('5', 0)))UNION ALL(SELECT `t`.`value`, `t`.`attribute_id`, `t`.`store_id` FROM `catalog_product_entity_varchar` AS `t` WHERE (entity_id = '148605') AND (attribute_id IN ('74', '86', '96', '60', '75', '71', '98', '330', '839', '76', '406', '92', '334', '108', '408', '405', '331', '826', '284', '73', '332', '83', '854', '257', '779', '323', '87', '780', '295', '307', '101', '102', '103', '255', '387', '388', '288', '325', '218', '319', '806', '777', '778', '115', '116', '824', '825')) AND (`store_id` IN ('5', 0)))UNION ALL(SELECT `t`.`value`, `t`.`attribute_id`, `t`.`store_id` FROM `catalog_product_entity_decimal` AS `t` WHERE (entity_id = '148605') AND (attribute_id IN ('65', '68', '79', '64', '258', '88', '296', '69', '308', '221', '848')) AND (`store_id` IN ('5', 0)))UNION ALL(SELECT `t`.`value`, `t`.`attribute_id`, `t`.`store_id` FROM `catalog_product_entity_datetime` AS `t` WHERE (entity_id = '148605') AND (attribute_id IN ('93', '66', '94', '67', '845', '846', '81', '82', '216')) AND (`store_id` IN ('5', 0))) ) AS `u` ORDER BY `store_id` ASC 0.000 6871614 db_edomainnlive localhost:54730 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_sales_channel`.* FROM `inventory_stock_sales_channel` WHERE (stock_id = 6) 0.000 6871616 db_edomainnlive localhost:54740 db_edomainnlive Sleep 0 NULL 0.000 6871619 db_edomainnlive localhost:54776 db_edomainnlive Sleep 0 NULL 0.000 6871621 db_edomainnlive localhost:54794 db_edomainnlive Sleep 0 NULL 0.000 6871622 db_edomainnlive localhost:54798 db_edomainnlive Sleep 0 NULL 0.000 6871630 db_edomainnlive localhost:58808 db_edomainnlive Query 0 Sending data SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_category_entity_varchar` AS `t_d`\n INNER JOIN `catalog_category_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_category_entity_varchar` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 1 WHERE (e.entity_id IN (3, 49, 7, 12, 54, 61, 372, 853, 1014, 981, 13, 396, 481, 83, 207, 854, 1015, 213, 987, 14, 397, 63, 74, 891, 855, 1016, 386, 15, 482, 62, 798, 892, 856, 1017, 982, 272, 18, 483, 373, 223, 1026, 858, 1018, 1074, 377, 772, 67, 257, 1029, 979, 1019, 43, 980, 375, 66, 1030, 857, 1020, 540, 420, 203, 442, 141, 466, 44, 171, 176, 494, 492, 75, 86, 80, 4, 237, 694, 8, 64, 245, 378, 50, 899, 427, 55, 487, 212, 541, 776, 799, 1032, 1042, 1037, 1022, 1031, 1024, 128, 134, 455, 147, 376, 172, 177, 495, 493, 806, 87, 500, 5, 695, 10, 85, 246, 379, 51, 398, 421, 265, 488, 206, 542, 775, 800, 1055, 1043, 1038, 1023, 1025, 174, 179, 507, 90, 6, 239, 792, 11, 915, 380, 389, 53, 399, 56, 837, 205, 543, 774, 1033, 1170, 1039, 1227, 1052, 129, 142, 468, 862, 77, 88, 333, 696, 761, 374, 390, 233, 422, 283, 1000, 204, 777, 802, 1167, 1062, 1040, 445, 150, 966, 307, 497, 76, 315, 238, 963, 328, 382, 391, 282, 401, 296, 778, 954, 1059, 1041, 149, 258, 190, 89, 503, 241, 392, 657, 490, 1060, 1034, 1044, 1169, 435, 234, 462, 477, 181, 701, 79, 294, 200, 393, 659, 403, 424, 57, 834, 312, 533, 394, 699, 404, 58, 1035, 1045, 453, 965, 964, 505, 199, 511, 771, 426, 59, 1305, 1232, 512, 975, 953, 1229, 1046, 73, 252, 513, 406, 978, 782, 1228, 139, 832, 1036, 448, 461, 345, 408, 658, 454, 463, 439, 464, 527, 480, 440, 465, 795, 441, 457, 438, 558, 431, 475, 478)) AND (t_d.attribute_id IN (33)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_category_entity_int` AS `t_d`\n INNER JOIN `catalog_category_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_category_entity_int` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 1 WHERE (e.entity_id IN (3, 49, 7, 12, 54, 61, 372, 853, 1014, 981, 13, 396, 481, 83, 207, 854, 1015, 213, 987, 14, 397, 63, 74, 891, 855, 1016, 386, 15, 482, 62, 798, 892, 856, 1017, 982, 272, 18, 483, 373, 223, 1026, 858, 1018, 1074, 377, 772, 67, 257, 1029, 979, 1019, 43, 980, 375, 66, 1030, 857, 1020, 540, 420, 203, 442, 141, 466, 44, 171, 176, 494, 492, 75, 86, 80, 4, 237, 694, 8, 64, 245, 378, 50, 899, 427, 55, 487, 212, 541, 776, 799, 1032, 1042, 1037, 1022, 1031, 1024, 128, 134, 455, 147, 376, 172, 177, 495, 493, 806, 87, 500, 5, 695, 10, 85, 246, 379, 51, 398, 421, 265, 488, 206, 542, 775, 800, 1055, 1043, 1038, 1023, 1025, 174, 179, 507, 90, 6, 239, 792, 11, 915, 380, 389, 53, 399, 56, 837, 205, 543, 774, 1033, 1170, 1039, 1227, 1052, 129, 142, 468, 862, 77, 88, 333, 696, 761, 374, 390, 233, 422, 283, 1000, 204, 777, 802, 1167, 1062, 1040, 445, 150, 966, 307, 497, 76, 315, 238, 963, 328, 382, 391, 282, 401, 296, 778, 954, 1059, 1041, 149, 258, 190, 89, 503, 241, 392, 657, 490, 1060, 1034, 1044, 1169, 435, 234, 462, 477, 181, 701, 79, 294, 200, 393, 659, 403, 424, 57, 834, 312, 533, 394, 699, 404, 58, 1035, 1045, 453, 965, 964, 505, 199, 511, 771, 426, 59, 1305, 1232, 512, 975, 953, 1229, 1046, 73, 252, 513, 406, 978, 782, 1228, 139, 832, 1036, 448, 461, 345, 408, 658, 454, 463, 439, 464, 527, 480, 440, 465, 795, 441, 457, 438, 558, 431, 475, 478)) AND (t_d.attribute_id IN (832)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_category_entity_text` AS `t_d`\n INNER JOIN `catalog_category_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_category_entity_text` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 1 WHERE (e.entity_id IN (3, 49, 7, 12, 54, 61, 372, 853, 1014, 981, 13, 396, 481, 83, 207, 854, 1015, 213, 987, 14, 397, 63, 74, 891, 855, 1016, 386, 15, 482, 62, 798, 892, 856, 1017, 982, 272, 18, 483, 373, 223, 1026, 858, 1018, 1074, 377, 772, 67, 257, 1029, 979, 1019, 43, 980, 375, 66, 1030, 857, 1020, 540, 420, 203, 442, 141, 466, 44, 171, 176, 494, 492, 75, 86, 80, 4, 237, 694, 8, 64, 245, 378, 50, 899, 427, 55, 487, 212, 541, 776, 799, 1032, 1042, 1037, 1022, 1031, 1024, 128, 134, 455, 147, 376, 172, 177, 495, 493, 806, 87, 500, 5, 695, 10, 85, 246, 379, 51, 398, 421, 265, 488, 206, 542, 775, 800, 1055, 1043, 1038, 1023, 1025, 174, 179, 507, 90, 6, 239, 792, 11, 915, 380, 389, 53, 399, 56, 837, 205, 543, 774, 1033, 1170, 1039, 1227, 1052, 129, 142, 468, 862, 77, 88, 333, 696, 761, 374, 390, 233, 422, 283, 1000, 204, 777, 802, 1167, 1062, 1040, 445, 150, 966, 307, 497, 76, 315, 238, 963, 328, 382, 391, 282, 401, 296, 778, 954, 1059, 1041, 149, 258, 190, 89, 503, 241, 392, 657, 490, 1060, 1034, 1044, 1169, 435, 234, 462, 477, 181, 701, 79, 294, 200, 393, 659, 403, 424, 57, 834, 312, 533, 394, 699, 404, 58, 1035, 1045, 453, 965, 964, 505, 199, 511, 771, 426, 59, 1305, 1232, 512, 975, 953, 1229, 1046, 73, 252, 513, 406, 978, 782, 1228, 139, 832, 1036, 448, 461, 345, 408, 658, 454, 463, 439, 464, 527, 480, 440, 465, 795, 441, 457, 438, 558, 431, 475, 478)) AND (t_d.attribute_id IN (833)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) 0.000 6871636 db_edomainnlive localhost:58834 db_edomainnlive Sleep 0 NULL 0.000 6871638 db_edomainnlive localhost:58844 db_edomainnlive Sleep 0 NULL 0.000 6871640 db_edomainnlive localhost:58870 db_edomainnlive Sleep 0 NULL 0.000 6871642 db_edomainnlive localhost:58896 db_edomainnlive Query 0 Creating sort index SELECT `e`.*, IF(at_include_in_menu.value_id > 0, at_include_in_menu.value, at_include_in_menu_default.value) AS `include_in_menu`, IF(at_is_active.value_id > 0, at_is_active.value, at_is_active_default.value) AS `is_active`, `url_rewrite`.`request_path` FROM `catalog_category_entity` AS `e`\n INNER JOIN `catalog_category_entity_int` AS `at_include_in_menu_default` ON (`at_include_in_menu_default`.`entity_id` = `e`.`entity_id`) AND (`at_include_in_menu_default`.`attribute_id` = 106) AND `at_include_in_menu_default`.`store_id` = 0\n LEFT JOIN `catalog_category_entity_int` AS `at_include_in_menu` ON (`at_include_in_menu`.`entity_id` = `e`.`entity_id`) AND (`at_include_in_menu`.`attribute_id` = 106) AND (`at_include_in_menu`.`store_id` = 1)\n INNER JOIN `catalog_category_entity_int` AS `at_is_active_default` ON (`at_is_active_default`.`entity_id` = `e`.`entity_id`) AND (`at_is_active_default`.`attribute_id` = 34) AND `at_is_active_default`.`store_id` = 0\n LEFT JOIN `catalog_category_entity_int` AS `at_is_active` ON (`at_is_active`.`entity_id` = `e`.`entity_id`) AND (`at_is_active`.`attribute_id` = 34) AND (`at_is_active`.`store_id` = 1)\n LEFT JOIN `url_rewrite` ON (url_rewrite.entity_id =e.entity_id) AND (url_rewrite.is_autogenerated = 1 AND url_rewrite.store_id = 1 AND url_rewrite.entity_type = 'category') WHERE (`e`.`path` LIKE '1/2/%') AND (IF(at_include_in_menu.value_id > 0, at_include_in_menu.value, at_include_in_menu_default.value) = '1') AND (IF(at_is_active.value_id > 0, at_is_active.value, at_is_active_default.value) = '1') ORDER BY `e`.`level` ASC, `e`.`position` ASC, `e`.`parent_id` ASC, `e`.`entity_id` ASC 0.000 6871646 db_edomainnlive localhost:12630 db_edomainnlive Sleep 0 NULL 0.000 6871649 db_edomainnlive localhost:12650 db_edomainnlive Query 0 Sending data SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_varchar` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_varchar` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 5 WHERE (e.entity_id IN (168343, 168337, 168331, 168325, 168319, 166494, 166431, 166408, 163152, 162707, 162677, 162666, 162649, 162122)) AND (t_d.attribute_id IN (60, 74, 75, 76, 86, 101, 102, 103, 123, 133, 137, 190, 195, 257, 262, 284, 288, 319, 342, 408, 777, 779, 824, 825, 826, 850)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_text` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_text` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 5 WHERE (e.entity_id IN (168343, 168337, 168331, 168325, 168319, 166494, 166431, 166408, 163152, 162707, 162677, 162666, 162649, 162122)) AND (t_d.attribute_id IN (62, 223, 242, 243, 289, 821, 843, 844, 863)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_decimal` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_decimal` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 5 WHERE (e.entity_id IN (168343, 168337, 168331, 168325, 168319, 166494, 166431, 166408, 163152, 162707, 162677, 162666, 162649, 162122)) AND (t_d.attribute_id IN (65, 68, 69, 258, 285, 287)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_datetime` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_datetime` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 5 WHERE (e.entity_id IN (168343, 168337, 168331, 168325, 168319, 166494, 166431, 166408, 163152, 162707, 162677, 162666, 162649, 162122)) AND (t_d.attribute_id IN (66, 67, 81, 82, 845, 846)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_int` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_int` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 5 WHERE (e.entity_id IN (168343, 168337, 168331, 168325, 168319, 166494, 166431, 166408, 163152, 162707, 162677, 162666, 162649, 162122)) AND (t_d.attribute_id IN (70, 84, 85, 109, 111, 112, 113, 114, 117, 118, 181, 189, 241, 263, 265, 266, 283, 343, 762, 805, 814, 817, 822, 823, 829, 842, 847, 849, 851, 852)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) 0.000 6871652 db_edomainnlive localhost:12672 db_edomainnlive Query 0 Statistics SELECT `def`.*, IF(store.use_default IS NULL, def.use_default, store.use_default) AS `use_default`, IF(store.value IS NULL, def.value, store.value) AS `label` FROM `catalog_product_super_attribute_label` AS `def`\n LEFT JOIN `catalog_product_super_attribute_label` AS `store` ON store.product_super_attribute_id = def.product_super_attribute_id AND store.store_id = 5 WHERE (def.product_super_attribute_id IN (29171)) AND (def.store_id = 0) 0.000 6871655 db_edomainnlive localhost:12684 db_edomainnlive Query 0 Sending data SELECT `main_table`.*, `product_sizechart`.* FROM `bss_size_chart` AS `main_table`\n INNER JOIN `bss_product_sizechart` AS `product_sizechart` ON main_table.size_chart_value_id = product_sizechart.size_chart_id WHERE (enable) AND (product_id = '147371') AND (overwrite = '1') AND (id_store in ( '0', '5' )) 0.000 6871656 db_edomainnlive localhost:12696 db_edomainnlive Sleep 0 NULL 0.000 6871657 db_edomainnlive localhost:12702 db_edomainnlive Sleep 0 NULL 0.000 6871756 db_edomainnlive localhost:38400 db_edomainnlive Query 0 Sending data SELECT `main_table`.*, `product_sizechart`.* FROM `bss_size_chart` AS `main_table`\n INNER JOIN `bss_product_sizechart` AS `product_sizechart` ON main_table.size_chart_value_id = product_sizechart.size_chart_id WHERE (enable) AND (product_id = '147393') AND (overwrite = '1') AND (id_store in ( '0', '5' )) 0.000 6871758 db_edomainnlive localhost:41088 db_edomainnlive Sleep 0 NULL 0.000 6871761 db_edomainnlive localhost:41112 db_edomainnlive Sleep 0 NULL 0.000 6871762 db_edomainnlive localhost:41116 db_edomainnlive Query 0 Sending data SELECT `main_table`.*, `product_sizechart`.* FROM `bss_size_chart` AS `main_table`\n INNER JOIN `bss_product_sizechart` AS `product_sizechart` ON main_table.size_chart_value_id = product_sizechart.size_chart_id WHERE (enable) AND (product_id = '147416') AND (overwrite = '1') AND (id_store in ( '0', '5' )) 0.000 6871763 db_edomainnlive localhost:41132 db_edomainnlive Sleep 0 NULL 0.000 6871766 db_edomainnlive localhost:41150 db_edomainnlive Sleep 0 NULL 0.000 6871768 db_edomainnlive localhost:41178 db_edomainnlive Sleep 0 NULL 0.000 6871770 db_edomainnlive localhost:41188 db_edomainnlive Query 0 Sending data SELECT `main_table`.*, `product_sizechart`.* FROM `bss_size_chart` AS `main_table`\n INNER JOIN `bss_product_sizechart` AS `product_sizechart` ON main_table.size_chart_value_id = product_sizechart.size_chart_id WHERE (enable) AND (product_id = '147424') AND (overwrite = '1') AND (id_store in ( '0', '5' )) 0.000 6871771 db_edomainnlive localhost:41198 db_edomainnlive Sleep 0 NULL 0.000 6871772 db_edomainnlive localhost:41200 db_edomainnlive Query 0 Sending data SELECT `main_table`.*, `product_sizechart`.* FROM `bss_size_chart` AS `main_table`\n INNER JOIN `bss_product_sizechart` AS `product_sizechart` ON main_table.size_chart_value_id = product_sizechart.size_chart_id WHERE (enable) AND (product_id = '147431') AND (overwrite = '1') AND (id_store in ( '0', '5' )) 0.000 6871774 db_edomainnlive localhost:41204 db_edomainnlive Sleep 0 NULL 0.000 6871775 db_edomainnlive localhost:41206 db_edomainnlive Sleep 0 NULL 0.000 6871776 db_edomainnlive localhost:41218 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_sales_channel`.* FROM `inventory_stock_sales_channel` WHERE (stock_id = 11) 0.000 6871778 db_edomainnlive localhost:41248 db_edomainnlive Sleep 0 NULL 0.000 6871779 db_edomainnlive localhost:41258 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_7`.`quantity`, `inventory_stock_7`.`is_salable` FROM `inventory_stock_7` WHERE (sku = 'WR074410-L1') 0.000 6871781 db_edomainnlive localhost:41272 db_edomainnlive Sleep 0 NULL 0.000 6871783 db_edomainnlive localhost:41296 db_edomainnlive Sleep 0 NULL 0.000 6871784 db_edomainnlive localhost:41298 db_edomainnlive Sleep 0 NULL 0.000 6871786 db_edomainnlive localhost:41312 db_edomainnlive Sleep 0 NULL 0.000 6871788 db_edomainnlive localhost:41324 db_edomainnlive Sleep 0 NULL 0.000 6871789 db_edomainnlive localhost:41328 db_edomainnlive Sleep 0 NULL 0.000 6871790 db_edomainnlive localhost:41340 db_edomainnlive Sleep 0 NULL 0.000 6871791 db_edomainnlive localhost:41344 db_edomainnlive Query 0 Sending data SELECT `main_table`.*, `product_sizechart`.* FROM `bss_size_chart` AS `main_table`\n INNER JOIN `bss_product_sizechart` AS `product_sizechart` ON main_table.size_chart_value_id = product_sizechart.size_chart_id WHERE (enable) AND (product_id = '140147') AND (overwrite = '1') AND (id_store in ( '0', '5' )) 0.000 6871792 db_edomainnlive localhost:41354 db_edomainnlive Query 0 Sending data SELECT `main_table`.*, `product_sizechart`.* FROM `bss_size_chart` AS `main_table`\n INNER JOIN `bss_product_sizechart` AS `product_sizechart` ON main_table.size_chart_value_id = product_sizechart.size_chart_id WHERE (enable) AND (product_id = '146572') AND (overwrite = '1') AND (id_store in ( '0', '5' )) 0.000 6871793 db_edomainnlive localhost:41356 db_edomainnlive Sleep 0 NULL 0.000 6871794 db_edomainnlive localhost:41364 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_sales_channel`.* FROM `inventory_stock_sales_channel` WHERE (stock_id = 11) 0.000 6871797 db_edomainnlive localhost:41384 db_edomainnlive Query 0 Sending data SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_varchar` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_varchar` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 5 WHERE (e.entity_id IN (118287)) AND (t_d.attribute_id IN (60, 74, 75, 76, 86, 101, 102, 103, 123, 133, 137, 190, 195, 257, 262, 284, 288, 319, 342, 408, 777, 779, 824, 825, 826, 850)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_text` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_text` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 5 WHERE (e.entity_id IN (118287)) AND (t_d.attribute_id IN (62, 223, 242, 243, 289, 821, 843, 844, 863)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_decimal` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_decimal` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 5 WHERE (e.entity_id IN (118287)) AND (t_d.attribute_id IN (65, 68, 69, 258, 285, 287)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_datetime` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_datetime` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 5 WHERE (e.entity_id IN (118287)) AND (t_d.attribute_id IN (66, 67, 81, 82, 845, 846)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_int` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_int` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 5 WHERE (e.entity_id IN (118287)) AND (t_d.attribute_id IN (70, 84, 85, 109, 111, 112, 113, 114, 117, 118, 181, 189, 241, 263, 265, 266, 283, 343, 762, 805, 814, 817, 822, 823, 829, 842, 847, 849, 851, 852)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) 0.000 6871799 db_edomainnlive localhost:41394 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_sales_channel`.* FROM `inventory_stock_sales_channel` WHERE (stock_id = 6) 0.000 6871801 db_edomainnlive localhost:41404 db_edomainnlive Sleep 0 NULL 0.000 6871802 db_edomainnlive localhost:41414 db_edomainnlive Query 0 Sending data SELECT `main`.`value_id`, `main`.`value` AS `file`, `main`.`media_type`, `entity`.`entity_id`, IFNULL(`value`.`label`, `default_value`.`label`) AS `label`, IFNULL(`value`.`position`, `default_value`.`position`) AS `position`, IFNULL(`value`.`disabled`, `default_value`.`disabled`) AS `disabled`, `default_value`.`label` AS `label_default`, `default_value`.`position` AS `position_default`, `default_value`.`disabled` AS `disabled_default`, IFNULL(`value_video`.`provider`, `default_value_video`.`provider`) AS `video_provider`, IFNULL(`value_video`.`url`, `default_value_video`.`url`) AS `video_url`, IFNULL(`value_video`.`title`, `default_value_video`.`title`) AS `video_title`, IFNULL(`value_video`.`description`, `default_value_video`.`description`) AS `video_description`, IFNULL(`value_video`.`metadata`, `default_value_video`.`metadata`) AS `video_metadata`, `default_value_video`.`provider` AS `video_provider_default`, `default_value_video`.`url` AS `video_url_default`, `default_value_video`.`title` AS `video_title_default`, `default_value_video`.`description` AS `video_description_default`, `default_value_video`.`metadata` AS `video_metadata_default` FROM `catalog_product_entity_media_gallery` AS `main`\n INNER JOIN `catalog_product_entity_media_gallery_value_to_entity` AS `entity` ON main.value_id = entity.value_id\n LEFT JOIN `catalog_product_entity_media_gallery_value` AS `value` ON main.value_id = value.value_id AND value.store_id = 5 AND value.entity_id = entity.entity_id\n LEFT JOIN `catalog_product_entity_media_gallery_value` AS `default_value` ON main.value_id = default_value.value_id AND default_value.store_id = 0 AND default_value.entity_id = entity.entity_id\n LEFT JOIN `catalog_product_entity_media_gallery_value_video` AS `value_video` ON value.value_id = value_video.value_id AND value.store_id = value_video.store_id\n LEFT JOIN `catalog_product_entity_media_gallery_value_video` AS `default_value_video` ON default_value.value_id = default_value_video.value_id AND default_value.store_id = default_value_video.store_id WHERE (main.attribute_id = '77') AND (main.disabled = 0) AND (entity.entity_id = '146508') ORDER BY IF(value.position IS NULL, default_value.position, value.position) ASC 0.000 6871803 db_edomainnlive localhost:41416 db_edomainnlive Sleep 0 NULL 0.000 6871804 db_edomainnlive localhost:41420 db_edomainnlive Sleep 0 NULL 0.000 6871805 db_edomainnlive localhost:41424 db_edomainnlive Sleep 0 NULL 0.000 6871806 db_edomainnlive localhost:41436 db_edomainnlive Query 0 Statistics SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position` FROM `catalog_product_entity` AS `e`\n INNER JOIN `inventory_stock_5` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku\n INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '2'\n INNER JOIN `catalog_category_product_index_store5` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=5 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_5` AS `stock_status_index` ON product.sku = stock_status_index.sku\n INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 4\n LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '3'\n INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('146541')) AND (`e`.`entity_id` != '146541') ORDER BY `position` ASC 0.000 6871807 db_edomainnlive localhost:41450 db_edomainnlive Sleep 0 NULL 0.000 6871809 db_edomainnlive localhost:41466 db_edomainnlive Sleep 0 NULL 0.000 6871811 db_edomainnlive localhost:41482 db_edomainnlive Sleep 0 NULL 0.000 6871813 db_edomainnlive localhost:41506 db_edomainnlive Query 0 Statistics (SELECT `child`.`entity_id` FROM `catalog_product_entity` AS `parent`\n INNER JOIN `catalog_product_relation` AS `link` ON link.parent_id = parent.entity_id\n INNER JOIN `catalog_product_entity` AS `child` ON child.entity_id = link.child_id\n INNER JOIN `catalog_product_index_price` AS `t` ON t.entity_id = child.entity_id\n LEFT JOIN `catalog_product_entity_int` AS `status_global_attr` ON status_global_attr.entity_id = child.entity_id AND status_global_attr.attribute_id = 84 AND status_global_attr.store_id = 0\n LEFT JOIN `catalog_product_entity_int` AS `status_attr` ON status_attr.entity_id = child.entity_id AND status_attr.attribute_id = 84 AND status_attr.store_id = 5\n INNER JOIN `inventory_stock_5` AS `stock` ON stock.sku = child.sku WHERE (parent.entity_id = 152489) AND (t.website_id = '2') AND (t.customer_group_id = 0) AND (IFNULL(status_attr.value, status_global_attr.value) = 1) AND (stock.is_salable = 1) ORDER BY `t`.`min_price` ASC, `child`.`entity_id` ASC\n LIMIT 1) 0.000 6871815 db_edomainnlive localhost:41524 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_sales_channel`.* FROM `inventory_stock_sales_channel` WHERE (stock_id = 11) 0.000 6871816 db_edomainnlive localhost:41536 db_edomainnlive Query 0 Sending data SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_decimal` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_decimal` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 11 WHERE (e.entity_id IN (180930)) AND (t_d.attribute_id IN (64, 65)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_datetime` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_datetime` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 11 WHERE (e.entity_id IN (180930)) AND (t_d.attribute_id IN (66, 67)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_int` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_int` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 11 WHERE (e.entity_id IN (180930)) AND (t_d.attribute_id IN (85)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) 0.000 6871817 db_edomainnlive localhost:41548 db_edomainnlive Sleep 0 NULL 0.000 6871818 db_edomainnlive localhost:41560 db_edomainnlive Sleep 0 NULL 0.000 6871819 db_edomainnlive localhost:41568 db_edomainnlive Sleep 0 NULL 0.000 6871820 db_edomainnlive localhost:41584 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_7`.`quantity`, `inventory_stock_7`.`is_salable` FROM `inventory_stock_7` WHERE (sku = '2011A818-309-XXL') 0.000 6871822 db_edomainnlive localhost:41600 db_edomainnlive Query 0 Statistics SELECT `e`.*, `stock_status_index`.`is_salable` FROM `catalog_product_entity` AS `e`\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_7` AS `stock_status_index` ON product.sku = stock_status_index.sku WHERE (`e`.`entity_id` IN('145140')) AND (stock_status_index.is_salable = 1) 0.000 6871823 db_edomainnlive localhost:41602 db_edomainnlive Sleep 0 NULL 0.000 6871824 db_edomainnlive localhost:41606 db_edomainnlive Sleep 0 NULL 0.000 6871825 db_edomainnlive localhost:46482 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_sales_channel`.* FROM `inventory_stock_sales_channel` WHERE (stock_id = 8) 0.000 6871826 db_edomainnlive localhost:46498 db_edomainnlive Sleep 0 NULL 0.000 6871827 db_edomainnlive localhost:46508 db_edomainnlive Sleep 0 NULL 0.000 6871828 db_edomainnlive localhost:46526 db_edomainnlive Sleep 0 NULL 0.000 6871831 db_edomainnlive localhost:46530 db_edomainnlive Sleep 0 NULL 0.000 6871833 db_edomainnlive localhost:46544 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_sales_channel`.* FROM `inventory_stock_sales_channel` WHERE (stock_id = 7) 0.000 6871834 db_edomainnlive localhost:46554 db_edomainnlive Sleep 0 NULL 0.000 6871835 db_edomainnlive localhost:46566 db_edomainnlive Query 0 Statistics SELECT `inventory_stock_sales_channel`.* FROM `inventory_stock_sales_channel` WHERE (stock_id = 6) 0.000 6871836 db_edomainnlive localhost:46570 db_edomainnlive Sleep 0 NULL 0.000 6871837 db_edomainnlive localhost:46580 db_edomainnlive Sleep 0 NULL 0.000 6871839 db_edomainnlive localhost:46598 db_edomainnlive Query 0 Sending data SELECT `entity`.`sku`, `product_entity`.`entity_id` AS `product_id`, `attribute`.`attribute_code`, `entity_value`.`value` AS `value_index`, IFNULL(option_value.value, default_option_value.value) AS `option_title`, `default_option_value`.`value` AS `default_title` FROM `catalog_product_super_attribute` AS `super_attribute`\n INNER JOIN `catalog_product_entity` AS `product_entity` ON product_entity.entity_id = super_attribute.product_id\n INNER JOIN `catalog_product_super_link` AS `product_link` ON product_link.parent_id = super_attribute.product_id\n INNER JOIN `eav_attribute` AS `attribute` ON attribute.attribute_id = super_attribute.attribute_id\n INNER JOIN `catalog_product_entity` AS `entity` ON entity.entity_id = product_link.product_id\n INNER JOIN `catalog_product_entity_int` AS `entity_value` ON entity_value.attribute_id = super_attribute.attribute_id AND entity_value.store_id = 0 AND entity_value.entity_id = entity.entity_id\n LEFT JOIN `eav_attribute_option_value` AS `option_value` ON option_value.option_id = entity_value.value AND option_value.store_id = 1\n LEFT JOIN `eav_attribute_option_value` AS `default_option_value` ON default_option_value.option_id = entity_value.value AND default_option_value.store_id = 0\n INNER JOIN `eav_attribute_option` AS `attribute_option` ON attribute_option.option_id = entity_value.value WHERE (super_attribute.product_id = '98283') AND (attribute.attribute_id = '121') ORDER BY `attribute_option`.`sort_order` ASC 0.000 6871841 db_edomainnlive localhost:46614 db_edomainnlive Sleep 0 NULL 0.000 6871842 db_edomainnlive localhost:46616 db_edomainnlive Sleep 0 NULL 0.000 6871843 db_edomainnlive localhost:46620 db_edomainnlive Sleep 0 NULL 0.000 6871844 db_edomainnlive localhost:46628 db_edomainnlive Sleep 0 NULL 0.000 6871845 db_edomainnlive localhost:46636 db_edomainnlive Query 0 Sending data SELECT COUNT(DISTINCT e.entity_id) FROM `catalog_product_entity` AS `e`\n INNER JOIN `catalog_product_super_link` AS `link_table` ON link_table.product_id = e.entity_id\n INNER JOIN `catalog_product_website` AS `product_website` ON product_website.product_id = e.entity_id AND product_website.website_id = 1\n INNER JOIN `catalog_product_entity_int` AS `at_status_default` ON (`at_status_default`.`entity_id` = `e`.`entity_id`) AND (`at_status_default`.`attribute_id` = 84) AND `at_status_default`.`store_id` = 0\n LEFT JOIN `catalog_product_entity_int` AS `at_status` ON (`at_status`.`entity_id` = `e`.`entity_id`) AND (`at_status`.`attribute_id` = 84) AND (`at_status`.`store_id` = 1)\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_7` AS `stock_status_index` ON product.sku = stock_status_index.sku WHERE (IF(at_status.value_id > 0, at_status.value, at_status_default.value) = '1') AND (stock_status_index.is_salable = 1) AND (link_table.parent_id in ('130412')) 0.000 6871846 db_edomainnlive localhost:46646 db_edomainnlive Query 0 Statistics SELECT COUNT(DISTINCT e.entity_id) FROM `catalog_product_entity` AS `e`\n INNER JOIN `catalog_product_super_link` AS `link_table` ON link_table.product_id = e.entity_id\n INNER JOIN `catalog_product_website` AS `product_website` ON product_website.product_id = e.entity_id AND product_website.website_id = 1\n INNER JOIN `catalog_product_entity_int` AS `at_status_default` ON (`at_status_default`.`entity_id` = `e`.`entity_id`) AND (`at_status_default`.`attribute_id` = 84) AND `at_status_default`.`store_id` = 0\n LEFT JOIN `catalog_product_entity_int` AS `at_status` ON (`at_status`.`entity_id` = `e`.`entity_id`) AND (`at_status`.`attribute_id` = 84) AND (`at_status`.`store_id` = 1)\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_7` AS `stock_status_index` ON product.sku = stock_status_index.sku WHERE (IF(at_status.value_id > 0, at_status.value, at_status_default.value) = '1') AND (stock_status_index.is_salable = 1) AND (link_table.parent_id in ('114063')) 0.000 6871847 db_edomainnlive localhost:46662 db_edomainnlive Sleep 0 NULL 0.000 6871848 db_edomainnlive localhost:46668 db_edomainnlive Query 0 Sending data SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_varchar` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_varchar` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 1 WHERE (e.entity_id IN (170799, 170803, 98283, 106982, 114063, 114080)) AND (t_d.attribute_id IN (60, 74, 75, 76, 86, 101, 102, 103, 123, 133, 137, 190, 195, 257, 262, 284, 288, 319, 342, 408, 777, 779, 824, 825, 826, 850)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_text` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_text` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 1 WHERE (e.entity_id IN (170799, 170803, 98283, 106982, 114063, 114080)) AND (t_d.attribute_id IN (62, 223, 242, 243, 289, 821, 843, 844, 863)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_decimal` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_decimal` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 1 WHERE (e.entity_id IN (170799, 170803, 98283, 106982, 114063, 114080)) AND (t_d.attribute_id IN (65, 68, 69, 258, 285, 287)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_datetime` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_datetime` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 1 WHERE (e.entity_id IN (170799, 170803, 98283, 106982, 114063, 114080)) AND (t_d.attribute_id IN (66, 67, 81, 82, 845, 846)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `catalog_product_entity_int` AS `t_d`\n INNER JOIN `catalog_product_entity` AS `e` ON e.entity_id = t_d.entity_id\n LEFT JOIN `catalog_product_entity_int` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.entity_id = t_d.entity_id AND t_s.store_id = 1 WHERE (e.entity_id IN (170799, 170803, 98283, 106982, 114063, 114080)) AND (t_d.attribute_id IN (70, 84, 85, 109, 111, 112, 113, 114, 117, 118, 181, 189, 241, 263, 265, 266, 283, 343, 762, 805, 814, 817, 822, 823, 829, 842, 847, 849, 851, 852)) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) 0.000 6871849 db_edomainnlive localhost:46678 db_edomainnlive Sleep 0 NULL 0.000 6871850 db_edomainnlive localhost:46690 db_edomainnlive Query 0 Sending data SELECT COUNT(DISTINCT e.entity_id) FROM `catalog_product_entity` AS `e`\n INNER JOIN `catalog_product_super_link` AS `link_table` ON link_table.product_id = e.entity_id\n INNER JOIN `catalog_product_website` AS `product_website` ON product_website.product_id = e.entity_id AND product_website.website_id = 6\n INNER JOIN `catalog_product_entity_int` AS `at_status_default` ON (`at_status_default`.`entity_id` = `e`.`entity_id`) AND (`at_status_default`.`attribute_id` = 84) AND `at_status_default`.`store_id` = 0\n LEFT JOIN `catalog_product_entity_int` AS `at_status` ON (`at_status`.`entity_id` = `e`.`entity_id`) AND (`at_status`.`attribute_id` = 84) AND (`at_status`.`store_id` = 11)\n INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id\n INNER JOIN `inventory_stock_12` AS `stock_status_index` ON product.sku = stock_status_index.sku WHERE (IF(at_status.value_id > 0, at_status.value, at_status_default.value) = '1') AND (stock_status_index.is_salable = 1) AND (link_table.parent_id in ('176304')) 0.000 6871851 db_edomainnlive localhost:46702 db_edomainnlive Sleep 0 NULL 0.000 6871852 db_edomainnlive localhost:46712 db_edomainnlive Sleep 0 NULL 0.000 6871853 db_edomainnlive localhost:46714 db_edomainnlive Sleep 0 NULL 0.000 6871854 db_edomainnlive localhost:46720 db_edomainnlive Sleep 0 NULL 0.000 6871855 db_edomainnlive localhost:46730 db_edomainnlive Sleep 0 NULL 0.000 6871856 db_edomainnlive localhost:46736 db_edomainnlive Sleep 0 NULL 0.000 6871857 db_edomainnlive localhost:46740 db_edomainnlive Sleep 0 NULL 0.000 6871858 db_edomainnlive localhost:46744 db_edomainnlive Sleep 0 NULL 0.000 6871859 db_edomainnlive localhost:46748 db_edomainnlive Sleep 0 NULL 0.000 6871860 db_edomainnlive localhost:46756 db_edomainnlive Sleep 0 NULL 0.000 6871861 db_edomainnlive localhost:46768 db_edomainnlive Sleep 0 NULL 0.000 6871862 db_edomainnlive localhost:46776 db_edomainnlive Query 0 Sending data SELECT `main_table`.* FROM `nwdthemes_revslider_options` AS `main_table` WHERE (`handle` = 'revslider-global-settings') LIMIT 1 0.000 6871864 db_edomainnlive localhost:46804 db_edomainnlive Sleep 0 NULL 0.000 6871865 db_edomainnlive localhost:46820 db_edomainnlive Sleep 0 NULL 0.000 6871866 db_edomainnlive localhost:46834 db_edomainnlive Sleep 0 NULL 0.000 6871867 root localhost NULL Query 0 Init SHOW FULL PROCESSLIST 0.000 ```

The only insert or update in the process list is this one

```sql INSERT INTO `catalog_category_product_index_store10_replica` (`category_id`, `product_id`, `position`, `is_parent`, `store_id`, `visibility`) SELECT 2 AS `category_id`, `cp`.`entity_id` AS `product_id`, IF(ccp.product_id IS NOT NULL, ccp.position, 0) AS `position`, IF(ccp.product_id IS NOT NULL, 1, 0) AS `is_parent`, 10 AS `store_id`, IFNULL(cpvs.value, cpvd.value) AS `visibility` FROM `catalog_product_entity` AS `cp` INNER JOIN `catalog_product_website` AS `cpw` ON cpw.product_id = cp.entity_id INNER JOIN `catalog_product_entity_int` AS `cpsd` ON cpsd.entity_id = cp.entity_id AND cpsd.store_id = 0 AND cpsd.attribute_id = 84 LEFT JOIN `catalog_product_entity_int` AS `cpss` ON cpss.entity_id = cp.entity_id AND cpss.attribute_id = cpsd.attribute_id AND cpss.store_id = 10 INNER JOIN `catalog_product_entity_int` AS `cpvd` ON cpvd.entity_id = cp.entity_id AND cpvd.store_id = 0 AND cpvd.attribute_id = 91 LEFT JOIN `catalog_product_entity_int` AS `cpvs` ON cpvs.entity_id = cp.entity_id AND cpvs.attribute_id = cpvd.attribute_id AND cpvs.store_id = 10 LEFT JOIN `catalog_category_product` AS `ccp` ON ccp.product_id = cp.entity_id WHERE (cpw.website_id = '5') AND (IFNULL(cpss.value , cpsd.value) = 1) AND (IFNULL(cpvs.value , cpvd.value) IN (2, 3, 4)) AND (cp.entity_id IN (182207, 132938, 106034, 183196, 183197, 183198, 118801, 146851, 146852, 146853, 146854, 146855, 117128, 117129, 117130, 117131, 117132, 181838, 181839, 181840, 181841, 181842, 181843, 181844, 181845, 181846, 181847, 181848, 181849, 183275, 182811, 183014, 182782, 183038, 183023, 183015, 182212, 183039, 183032, 182810, 183040, 182182, 182799, 182802, 183016, 183026, 183033, 183041, 182790, 182809, 183022, 183017, 183027, 182779, 182780, 181689, 183028, 182988, 181615, 181621, 182791, 182812, 182986, 182873, 182987, 183020, 183034, 182867, 182792, 182866, 183021, 183035, 182989, 182793, 182868, 182787, 156065, 156068, 182803, 181617, 182783, 181618, 181616, 182786, 182807, 181691, 182788, 181692, 182789, 182784, 181690, 182805, 137211, 156066, 182871, 182785, 181624, 182801, 71161, 182808, 168359, 182804, 182872, 181623, 168356, 182869, 182874, 181622, 182806, 182870, 159395, 104383, 104384, 104385, 104386, 104387, 104388, 104389, 113698, 113699, 113700, 179023, 179024, 179025, 179026, 179027, 179028, 179029, 179030, 177107, 177108, 177109, 177110, 177111, 177112, 177113, 177114, 177115, 177116, 177117, 69613, 104330, 106031, 117127, 118798, 132929, 146850, 156064, 159389, 168355, 181614, 181620, 181688, 181837, 182177, 182777, 182796, 182862, 182985, 183013, 183019, 183025, 183031, 183037, 183195)) GROUP BY `cp`.`entity_id` ON DUPLICATE KEY UPDATE `category_id` = VALUES(`category_id`), `product_id` = VALUES(`product_id`), `position` = VALUES(`position`), `is_parent` = VALUES(`is_parent`), `store_id` = VALUES(`store_id`), `visibility` = VALUES(`visibility`) ```

Does it help to detect the queries that cause the deadlock state?

ioweb-gr commented 1 year ago

I also saw this in show engine innodb status

------------------------
LATEST DETECTED DEADLOCK
------------------------
2023-08-26 06:42:16 0x7f0c1c36c700
*** (1) TRANSACTION:
TRANSACTION 421201532944528, ACTIVE 0 sec starting index read
mysql tables in use 13, locked 13
LOCK WAIT 58 lock struct(s), heap size 8312, 228 row lock(s)
MySQL thread id 386416, OS thread handle 139690001667840, query id 514670795 localhost 127.0.0.1 db_edomainnlive Sending data
INSERT INTO `catalog_category_product_index_store10_tmp` (`category_id`, `product_id`, `position`, `is_parent`, `store_id`, `visibility`) SELECT `cc`.`entity_id` AS `category_id`, `ccp`.`product_id`, `ccp`.`position`, 1 AS `is_parent`, 10 AS `store_id`, IFNULL(cpvs.value, cpvd.value) AS `visibility` FROM `catalog_category_entity` AS `cc`
 INNER JOIN `catalog_category_product` AS `ccp` ON ccp.category_id = cc.entity_id
 INNER JOIN `catalog_product_website` AS `cpw` ON cpw.product_id = ccp.product_id
 INNER JOIN `catalog_product_entity` AS `cpe` ON ccp.product_id = cpe.entity_id
 INNER JOIN `catalog_product_entity_int` AS `cpsd` ON cpsd.entity_id = cpe.entity_id AND cpsd.store_id = 0 AND cpsd.attribute_id = 84
 LEFT JOIN `catalog_product_entity_int` AS `cpss` ON cpss.entity_id = cpe.entity_id AND cpss.attribute_id = cpsd.attribute_id AND cpss.store_id = 10
 INNER JOIN `catalog_product_e
*** (1) WAITING FOR THIS LOCK TO BE GRANTED:
RECORD LOCKS space id 4665 page no 12 n bits 304 index PRIMARY of table `db_edomainnlive`.`catalog_category_entity` trx id 421201532944528 lock mode S locks rec but not gap waiting
Record lock, heap no 167 PHYSICAL RECORD: n_fields 12; compact format; info bits 0
 0: len 4; hex 000004fd; asc     ;;
 1: len 6; hex 000072e0da58; asc   r  X;;
 2: len 7; hex 18000840071e83; asc    @   ;;
 3: len 2; hex 0003; asc   ;;
 4: len 4; hex 000004fb; asc     ;;
 5: len 4; hex 64ad2e8c; asc d . ;;
 6: len 4; hex 64e982a7; asc d   ;;
 7: len 18; hex 312f322f313237342f313237352f31323737; asc 1/2/1274/1275/1277;;
 8: len 4; hex 80000002; asc     ;;
 9: len 4; hex 80000004; asc     ;;
 10: len 4; hex 80000000; asc     ;;
 11: len 4; hex 000021c5; asc   ! ;;

*** (2) TRANSACTION:
TRANSACTION 1927338584, ACTIVE 1 sec starting index read
mysql tables in use 5, locked 5
26 lock struct(s), heap size 3488, 638 row lock(s), undo log entries 1581
MySQL thread id 389699, OS thread handle 139689989687040, query id 514670985 localhost 127.0.0.1 db_edomainnlive Starting cleanup
UPDATE `catalog_category_product` SET `position` = position + (-1) WHERE (category_id = 1277) AND (product_id IN (111510, 111520, 111525, 111641, 111642, 111649, 111660, 111667, 111684, 111697, 111698, 111705, 111712, 111728, 111733, 111739, 111746, 111753, 111760, 111793, 111800, 111807, 111814, 111821, 111828, 111854, 111869, 111875, 111886, 111892, 111909, 111917, 111932, 111938, 111989, 112025, 112032, 112038, 112043, 112049, 112055, 112062, 112069, 112182, 112188, 112256, 112261, 112267, 112422, 112675, 112683, 112690, 112697, 112765, 112781, 112872, 112897, 112903, 112931, 113034, 113067, 113187, 113195, 113231, 113296, 113302, 113309, 113335, 113426, 113440, 113550, 113566, 113605, 113670, 113677, 113768, 113775, 113782, 113863, 114091, 114099, 114108, 114116, 114124, 114159, 114200, 114207, 114225, 114269, 114310, 114314, 114344, 114349, 114364, 114419, 114422, 114448, 114
*** (2) HOLDS THE LOCK(S):
RECORD LOCKS space id 4665 page no 12 n bits 304 index PRIMARY of table `db_edomainnlive`.`catalog_category_entity` trx id 1927338584 lock_mode X locks rec but not gap
Record lock, heap no 167 PHYSICAL RECORD: n_fields 12; compact format; info bits 0
 0: len 4; hex 000004fd; asc     ;;
 1: len 6; hex 000072e0da58; asc   r  X;;
 2: len 7; hex 18000840071e83; asc    @   ;;
 3: len 2; hex 0003; asc   ;;
 4: len 4; hex 000004fb; asc     ;;
 5: len 4; hex 64ad2e8c; asc d . ;;
 6: len 4; hex 64e982a7; asc d   ;;
 7: len 18; hex 312f322f313237342f313237352f31323737; asc 1/2/1274/1275/1277;;
 8: len 4; hex 80000002; asc     ;;
 9: len 4; hex 80000004; asc     ;;
 10: len 4; hex 80000000; asc     ;;
 11: len 4; hex 000021c5; asc   ! ;;

*** (2) WAITING FOR THIS LOCK TO BE GRANTED:
RECORD LOCKS space id 4671 page no 5009 n bits 512 index PRIMARY of table `db_edomainnlive`.`catalog_category_product` trx id 1927338584 lock_mode X locks rec but not gap waiting
Record lock, heap no 242 PHYSICAL RECORD: n_fields 6; compact format; info bits 0
 0: len 4; hex 82c22c0d; asc   , ;;
 1: len 4; hex 000004fd; asc     ;;
 2: len 4; hex 0001db14; asc     ;;
 3: len 6; hex 000000000000; asc       ;;
 4: len 7; hex 80000000000000; asc        ;;
 5: len 4; hex 800005c1; asc     ;;

It hints at a problem in the category indexer causing a deadlock.

ioweb-gr commented 1 year ago

Could you guys take a look at this thread as well?

https://jira.mariadb.org/browse/MDEV-32033

I've opened it as a bug, and any input in the internal process of reindexing and why this might be happening is welcome.

A user hinted that the rename action on the indexing tables may be creating the metadata lock on the whole table, while other queries are pending leading to this.

ioweb-gr commented 1 year ago

e.g. this message

If it is RENAME TABLE indeed, then this won't be fixed anytime soon. RENAME changes table metadata, it has to take an exclusive metadata lock for a very short time. But if you have a long-running SELECT, RENAME won't be able to take a metadata lock, so it'll wait. And all later statements will wait for RENAME. When your long-running SELECT finishes, everything will start working again.

It points to a flaw in the design of the indexing process in Magento 2 as it relies on the core of renaming index tables from the replicas to the normal name and the normal name to the normal name _old. This one seems to be spot on.

There is an opreation for a RENAME table almost 90% of the time I check the issue occuring. On top of it there are some price indexing queries which slow down and below the RENAME table there are other random queries either for price indexer or stock indexer or different other things.

I'm thinking that different indexers are trying to rename the tables while other processes are reading data from the index tables, thus causing this deadlock situation.

@engcom-Dash could you check with some core developer about this use case? It seems like a valid architectural flaw as described in MariaDB jira bug tracker because the RENAME table action can cause a deadlock when used in this context. If we could get some input from both ends we could fix this issue

ioweb-gr commented 1 year ago

Furthermore with the help from MariaDB people I was able to come up with this metadata lock analysis.

By using a small program I was able to come up to the conclusion that the thread most likely affecting all other threads directly or indirectly is 110871 because it's blocked by many threads selecting from the same table that is trying to be renamed

``` Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118130 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 117048 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118135 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118142 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118145 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118146 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118150 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118154 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118153 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118178 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118207 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118220 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118235 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118237 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118244 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118245 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118255 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118264 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118277 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118280 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118285 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118286 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118291 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118299 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118303 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118304 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118307 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118310 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118313 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118327 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118338 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118339 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118347 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118353 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118356 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118358 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118359 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118368 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118369 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118373 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118380 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118381 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118382 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118385 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118386 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118389 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118393 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118395 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 117334 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 117364 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 117334 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118141 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118267 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118293 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 117364 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 117334 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 117334 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 117364 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 117364 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118290 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118224 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118275 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118294 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118302 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118306 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118309 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118332 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118312 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118334 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118318 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118340 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118357 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118372 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118379 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118394 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 117334 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 117364 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 117334 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 117364 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 117334 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 117364 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118130 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 117048 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118135 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118137 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118138 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118139 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118140 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118141 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118142 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118145 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118144 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118146 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118148 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118147 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118149 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118150 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118151 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118152 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118155 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118154 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118153 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118178 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118193 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118203 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118205 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118207 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118210 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118214 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118216 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118213 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118209 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118218 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118220 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118219 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118221 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118224 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118223 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118225 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118228 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118230 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118232 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118234 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118235 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118237 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118241 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118244 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118245 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118246 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118250 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118251 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118254 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118253 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118255 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118259 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118260 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118261 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118262 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118264 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118267 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118268 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118271 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118276 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118277 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118280 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118282 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118283 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118284 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118285 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118286 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118275 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118290 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118289 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118291 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118293 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118294 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118297 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118298 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118299 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118301 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118302 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118303 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118304 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118305 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118307 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118308 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118310 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118313 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118314 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118315 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118317 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118320 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118321 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118322 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118325 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118324 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118306 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118327 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118309 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118329 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118332 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118312 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118334 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118318 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118335 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118336 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118337 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118338 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118339 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118340 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118341 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118342 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118344 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118345 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118346 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118347 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118348 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118351 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118352 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118353 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118357 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118356 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118358 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118359 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118365 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118366 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118367 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118368 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118369 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118370 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118372 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118373 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118374 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118377 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118379 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118380 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118381 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118382 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118384 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118385 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118386 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118387 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118389 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118390 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118392 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118393 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118394 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118395 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118398 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118399 Thread 110871 executing "RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica" IS LOCKED BY Thread 118400 ```

threadlock.zip

I don't see any particular thread directly locked by this one but it's possible it's indirectly blocked. Someone would need to create a graph to find this but I honestly can't do this due to lack of knowledge to program this algorithm.

ioweb-gr commented 1 year ago

I guess it's possible to replicate this issue with the new information

  1. Let's create a working set of 200k products (the more the better)
  2. with 30 customer group catalog rules and tier prices and group prices etc etc to make the price indexer run longer.
  3. Create a long running query that uses catalog_product_index_price table to export a product feed for example
  4. Try to reindex catalog_product_price
  5. Watch the RENAME query get blocked trying to acquire an exclusive lock on the catalog_product_index_price table to rename it.

What do you think @engcom-Dash ?

ioweb-gr commented 12 months ago

The only place I see this query getting built in the entire codebase is the

\Magento\Catalog\Model\ResourceModel\Product\Collection::_productLimitationPrice

So it's definitely the culprit of the long query execution which spans so long until reindex will try to rename the table and cause the deadlocks.

Any ideas how to make it perform well?

ioweb-gr commented 12 months ago

And now I'm even more confused because in an effort to get a backtrace of the function calls I decided to immediately kill the query from mytop so that I can get an exception.

I received this exception for both queries killed

exception 1

``` {"0":"No host configured to connect","1":" #1 Zend_Db_Adapter_Abstract->quote() called at [vendor\/magento\/zendframework1\/library\/Zend\/Db\/Adapter\/Abstract.php:931]\n #2 Zend_Db_Adapter_Abstract->quoteInto() called at [vendor\/magento\/framework\/DB\/Adapter\/Pdo\/Mysql.php:1529]\n #3 Magento\\Framework\\DB\\Adapter\\Pdo\\Mysql->quoteInto() called at [vendor\/magento\/framework\/DB\/Adapter\/Pdo\/Mysql.php:3046]\n #4 Magento\\Framework\\DB\\Adapter\\Pdo\\Mysql->_prepareQuotedSqlCondition() called at [vendor\/magento\/framework\/DB\/Adapter\/Pdo\/Mysql.php:3020]\n #5 Magento\\Framework\\DB\\Adapter\\Pdo\\Mysql->prepareSqlCondition() called at [vendor\/magento\/framework\/Data\/Collection\/AbstractDb.php:485]\n #6 Magento\\Framework\\Data\\Collection\\AbstractDb->_getConditionSql() called at [vendor\/magento\/module-eav\/Model\/Entity\/Collection\/AbstractCollection.php:1501]\n #7 Magento\\Eav\\Model\\Entity\\Collection\\AbstractCollection->_getAttributeConditionSql() called at [vendor\/magento\/module-eav\/Model\/Entity\/Collection\/AbstractCollection.php:380]\n #8 Magento\\Eav\\Model\\Entity\\Collection\\AbstractCollection->addAttributeToFilter() called at [vendor\/magento\/module-eav\/Model\/Entity\/Collection\/AbstractCollection.php:405]\n #9 Magento\\Eav\\Model\\Entity\\Collection\\AbstractCollection->addFieldToFilter() called at [vendor\/magento\/module-catalog\/Plugin\/Block\/Topmenu.php:187]\n #10 Magento\\Catalog\\Plugin\\Block\\Topmenu->getCategoryTree() called at [vendor\/magento\/module-catalog\/Plugin\/Block\/Topmenu.php:125]\n #11 Magento\\Catalog\\Plugin\\Block\\Topmenu->beforeGetIdentities() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:121]\n #12 Magento\\Theme\\Block\\Html\\Topmenu\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n #13 Magento\\Theme\\Block\\Html\\Topmenu\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Theme\/Block\/Html\/Topmenu\/Interceptor.php:32]\n #14 Magento\\Theme\\Block\\Html\\Topmenu\\Interceptor->getIdentities() called at [vendor\/magento\/module-page-cache\/Model\/Layout\/LayoutPlugin.php:96]\n #15 Magento\\PageCache\\Model\\Layout\\LayoutPlugin->afterGetOutput() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:146]\n #16 Magento\\Framework\\View\\Layout\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n #17 Magento\\Framework\\View\\Layout\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Framework\/View\/Layout\/Interceptor.php:41]\n #18 Magento\\Framework\\View\\Layout\\Interceptor->getOutput() called at [vendor\/magento\/framework\/View\/Result\/Page.php:258]\n #19 Magento\\Framework\\View\\Result\\Page->render() called at [vendor\/magento\/framework\/View\/Result\/Layout.php:171]\n #20 Magento\\Framework\\View\\Result\\Layout->renderResult() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n #21 Magento\\Framework\\View\\Result\\Page\\Interceptor->___callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n #22 Magento\\Framework\\View\\Result\\Page\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [app\/code\/Ioweb\/Html5\/Plugin\/Controller\/ResultInterfacePlugin.php:34]\n #23 Ioweb\\Html5\\Plugin\\Controller\\ResultInterfacePlugin->aroundRenderResult() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n #24 Magento\\Framework\\View\\Result\\Page\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/amasty\/module-page-speed-tools\/Plugin\/ProcessPageResult.php:40]\n #25 Amasty\\PageSpeedTools\\Plugin\\ProcessPageResult->aroundRenderResult() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n #26 Magento\\Framework\\View\\Result\\Page\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [app\/code\/Magezon\/Core\/Plugin\/View\/Result\/Layout.php:24]\n #27 Magezon\\Core\\Plugin\\View\\Result\\Layout->aroundRenderResult() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n #28 Magento\\Framework\\View\\Result\\Page\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n #29 Magento\\Framework\\View\\Result\\Page\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Framework\/View\/Result\/Page\/Interceptor.php:41]\n #30 Magento\\Framework\\View\\Result\\Page\\Interceptor->renderResult() called at [vendor\/magento\/framework\/App\/Http.php:120]\n #31 Magento\\Framework\\App\\Http->launch() called at [generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php:23]\n #32 Magento\\Framework\\App\\Http\\Interceptor->launch() called at [vendor\/magento\/framework\/App\/Bootstrap.php:263]\n #33 Magento\\Framework\\App\\Bootstrap->run() called at [index.php:39]\n","url":"\/apparel\/women\/sports-bras\/nike-dri-fit-indy-women-s-light-support-padded-v-neck-sports-bra-cz4456-491.html","script_name":"\/index.php","report_id":"812122c9241524a6ad90bbbc67ecf8792a14220ca2238867728dd63e331b98b9"} ```

exception 2

``` {"0":"No host configured to connect","1":" #1 Zend_Db_Adapter_Abstract->quote() called at [vendor\/magento\/zendframework1\/library\/Zend\/Db\/Adapter\/Abstract.php:931]\n #2 Zend_Db_Adapter_Abstract->quoteInto() called at [vendor\/magento\/framework\/DB\/Adapter\/Pdo\/Mysql.php:1529]\n #3 Magento\\Framework\\DB\\Adapter\\Pdo\\Mysql->quoteInto() called at [vendor\/magento\/framework\/DB\/Adapter\/Pdo\/Mysql.php:3046]\n #4 Magento\\Framework\\DB\\Adapter\\Pdo\\Mysql->_prepareQuotedSqlCondition() called at [vendor\/magento\/framework\/DB\/Adapter\/Pdo\/Mysql.php:3020]\n #5 Magento\\Framework\\DB\\Adapter\\Pdo\\Mysql->prepareSqlCondition() called at [vendor\/magento\/framework\/Data\/Collection\/AbstractDb.php:485]\n #6 Magento\\Framework\\Data\\Collection\\AbstractDb->_getConditionSql() called at [vendor\/magento\/module-eav\/Model\/Entity\/Collection\/AbstractCollection.php:1501]\n #7 Magento\\Eav\\Model\\Entity\\Collection\\AbstractCollection->_getAttributeConditionSql() called at [vendor\/magento\/module-eav\/Model\/Entity\/Collection\/AbstractCollection.php:380]\n #8 Magento\\Eav\\Model\\Entity\\Collection\\AbstractCollection->addAttributeToFilter() called at [vendor\/magento\/module-eav\/Model\/Entity\/Collection\/AbstractCollection.php:405]\n #9 Magento\\Eav\\Model\\Entity\\Collection\\AbstractCollection->addFieldToFilter() called at [vendor\/magento\/module-catalog\/Plugin\/Block\/Topmenu.php:187]\n #10 Magento\\Catalog\\Plugin\\Block\\Topmenu->getCategoryTree() called at [vendor\/magento\/module-catalog\/Plugin\/Block\/Topmenu.php:125]\n #11 Magento\\Catalog\\Plugin\\Block\\Topmenu->beforeGetIdentities() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:121]\n #12 Magento\\Theme\\Block\\Html\\Topmenu\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n #13 Magento\\Theme\\Block\\Html\\Topmenu\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Theme\/Block\/Html\/Topmenu\/Interceptor.php:32]\n #14 Magento\\Theme\\Block\\Html\\Topmenu\\Interceptor->getIdentities() called at [vendor\/magento\/module-page-cache\/Model\/Layout\/LayoutPlugin.php:96]\n #15 Magento\\PageCache\\Model\\Layout\\LayoutPlugin->afterGetOutput() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:146]\n #16 Magento\\Framework\\View\\Layout\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n #17 Magento\\Framework\\View\\Layout\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Framework\/View\/Layout\/Interceptor.php:41]\n #18 Magento\\Framework\\View\\Layout\\Interceptor->getOutput() called at [vendor\/magento\/framework\/View\/Result\/Page.php:258]\n #19 Magento\\Framework\\View\\Result\\Page->render() called at [vendor\/magento\/framework\/View\/Result\/Layout.php:171]\n #20 Magento\\Framework\\View\\Result\\Layout->renderResult() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n #21 Magento\\Framework\\View\\Result\\Page\\Interceptor->___callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n #22 Magento\\Framework\\View\\Result\\Page\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [app\/code\/Ioweb\/Html5\/Plugin\/Controller\/ResultInterfacePlugin.php:34]\n #23 Ioweb\\Html5\\Plugin\\Controller\\ResultInterfacePlugin->aroundRenderResult() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n #24 Magento\\Framework\\View\\Result\\Page\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/amasty\/module-page-speed-tools\/Plugin\/ProcessPageResult.php:40]\n #25 Amasty\\PageSpeedTools\\Plugin\\ProcessPageResult->aroundRenderResult() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n #26 Magento\\Framework\\View\\Result\\Page\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [app\/code\/Magezon\/Core\/Plugin\/View\/Result\/Layout.php:24]\n #27 Magezon\\Core\\Plugin\\View\\Result\\Layout->aroundRenderResult() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:135]\n #28 Magento\\Framework\\View\\Result\\Page\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n #29 Magento\\Framework\\View\\Result\\Page\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/Framework\/View\/Result\/Page\/Interceptor.php:41]\n #30 Magento\\Framework\\View\\Result\\Page\\Interceptor->renderResult() called at [vendor\/magento\/framework\/App\/Http.php:120]\n #31 Magento\\Framework\\App\\Http->launch() called at [generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php:23]\n #32 Magento\\Framework\\App\\Http\\Interceptor->launch() called at [vendor\/magento\/framework\/App\/Bootstrap.php:263]\n #33 Magento\\Framework\\App\\Bootstrap->run() called at [index.php:39]\n","url":"\/wilson-nba-authentic-indoor-outdoor-basket-ball-wtb7200xb07.html","script_name":"\/index.php","report_id":"a10f2883b8b168b62f4da358aa636b63e730e608fefd7b3c4ab53edad69d6597"} ```

The 3rd party modules don't affect this query in any way, their code is related to manipulating the output html only to format it. They don't interfere with the queries

I don't see a clear path from getCategoryTree to the LEAST price query

ioweb-gr commented 12 months ago

Also the full query is weird

# Time: 230917  1:56:50
# User@Host: db_edomainnlive[db_edomainnlive] @ localhost []
# Thread_id: 1782741  Schema: db_edomainnlive  QC_hit: No
# Query_time: 229.541896  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 292521249
# Rows_affected: 0  Bytes_sent: 0
# Tmp_tables: 1  Tmp_disk_tables: 0  Tmp_table_sizes: 127296
# Full_scan: Yes  Full_join: Yes  Tmp_table: Yes  Tmp_table_on_disk: No
# Filesort: No  Filesort_on_disk: No  Merge_passes: 0  Priority_queue: No
#
# explain: id   select_type     table   type    possible_keys   key     key_len ref     rows    r_rows  filtered        r_filtered      Extra
# explain: 1    SIMPLE  inventory_in_stock      ALL     PRIMARY,index_sku_qty   NULL    NULL    NULL    1       29302.00        100.00  24.13   Using where; Using temporary; Using filesort
# explain: 1    SIMPLE  stock_status_index      ALL     PRIMARY,index_sku_qty   NULL    NULL    NULL    1       82841.35        100.00  26.71   Using where; Using join buffer (flat, BNL join)
# explain: 1    SIMPLE  product ref     PRIMARY,CATALOG_PRODUCT_ENTITY_SKU      CATALOG_PRODUCT_ENTITY_SKU      195     db_edomainnlive.stock_status_index.sku  1       1.00    100.00  100.00  Using index
# explain: 1    SIMPLE  cat_index       eq_ref  PRIMARY,IDX_BF8E9C147B9E369FA5F75474BF410B76,IDX_399EE76B5BD4142D9CCF0511849161E3       PRIMARY 10      const,db_edomainnlive.product.entity_id,const   1       0.29     100.00  99.91   Using where
# explain: 1    SIMPLE  price_index     eq_ref  PRIMARY,CATALOG_PRODUCT_INDEX_PRICE_CUSTOMER_GROUP_ID,CAT_PRD_IDX_PRICE_WS_ID_CSTR_GROUP_ID_MIN_PRICE   PRIMARY 10      db_edomainnlive.product.entity_id,const,const    1       0.99    100.00  100.00
# explain: 1    SIMPLE  e       eq_ref  PRIMARY,CATALOG_PRODUCT_ENTITY_SKU      PRIMARY 4       db_edomainnlive.product.entity_id       1       1.00    100.00  0.00    Using where
# explain: 1    SIMPLE  links   eq_ref  CATALOG_PRODUCT_LINK_LINK_TYPE_ID_PRODUCT_ID_LINKED_PRODUCT_ID,CATALOG_PRODUCT_LINK_PRODUCT_ID,CATALOG_PRODUCT_LINK_LINKED_PRODUCT_ID   CATALOG_PRODUCT_LINK_LINK_TYPE_ID_PRODUCT_ID_LINKED_PRODUCT_ID   10      const,const,db_edomainnlive.product.entity_id   1       0.01    100.00  100.00  Using index
# explain: 1    SIMPLE  product_entity_table    eq_ref  PRIMARY PRIMARY 4       db_edomainnlive.links.product_id        1       1.00    100.00  100.00  Using index
# explain: 1    SIMPLE  link_attribute_position_int     eq_ref  CAT_PRD_LNK_ATTR_INT_PRD_LNK_ATTR_ID_LNK_ID,CATALOG_PRODUCT_LINK_ATTRIBUTE_INT_LINK_ID  CAT_PRD_LNK_ATTR_INT_PRD_LNK_ATTR_ID_LNK_ID     7       const,db_edomainnlive.links.link_id      1       1.00    100.00  100.00
# explain: 1    SIMPLE  link_attribute_qty_decimal      eq_ref  CAT_PRD_LNK_ATTR_DEC_PRD_LNK_ATTR_ID_LNK_ID,CATALOG_PRODUCT_LINK_ATTRIBUTE_DECIMAL_LINK_ID      CAT_PRD_LNK_ATTR_DEC_PRD_LNK_ATTR_ID_LNK_ID     7const,db_edomainnlive.links.link_id     1       0.00    100.00  100.00
#
SET timestamp=1694908610;
SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`
 INNER JOIN `inventory_stock_9` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku
 INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '5'
 INNER JOIN `catalog_category_product_index_store10` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=10 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2
 INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id
 INNER JOIN `inventory_stock_9` AS `stock_status_index` ON product.sku = stock_status_index.sku
 INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1
 LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2'
 LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6'
 INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('181305')) AND (`e`.`entity_id` != '181305') ORDER BY `position` ASC;

If I'm wrong please correct me here but

image

image

price_index.website_id = '5' should be price_index.website_id = 5

The inventory_stock_9 table should have an index on is_salable column

ioweb-gr commented 12 months ago

I've added the indexes on the inventory indexer for is_salable and sku column and it seems to mitigate the issue for the time being. I'll report back at the end of this week as I monitor more closely to see if more occurrences will appear

Affected Module: magento/module-inventory-indexer

Index: Indexer/IndexStructure.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/Indexer/IndexStructure.php b/Indexer/IndexStructure.php
--- a/Indexer/IndexStructure.php    
+++ b/Indexer/IndexStructure.php    (date 1694910176253)
@@ -121,7 +121,15 @@
             'index_sku_qty',
             [self::SKU, self::QUANTITY],
             ['type' => AdapterInterface::INDEX_TYPE_INDEX]
-        );
+        )->addIndex('index_is_salable',
+                    [self::IS_SALABLE],
+                    ['type' => AdapterInterface::INDEX_TYPE_INDEX]
+        )
+        ->addIndex('index_sku',
+                   [self::SKU],
+                   ['type' => AdapterInterface::INDEX_TYPE_INDEX]
+        )
+        ;
         $connection->createTable($table);
     }
ioweb-gr commented 12 months ago

Mitigated but not solved. Happens less frequently now. One occurrence of rename table taking 240 seconds to finish.

# Time: 230918 11:53:21
# User@Host: db_edomainnlive[db_edomainnlive] @ localhost []
# Thread_id: 2122903  Schema: db_edomainnlive  QC_hit: No
# Query_time: 240.000779  Lock_time: 0.000000  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 67
SET timestamp=1695030801;
RENAME TABLE catalog_product_index_price TO catalog_product_index_price_outdated,catalog_product_index_price_replica TO catalog_product_index_price,catalog_product_index_price_outdated TO catalog_product_index_price_replica;
ioweb-gr commented 12 months ago

The query again in question

# Time: 230918 12:29:52
# User@Host: db_edomainnlive[db_edomainnlive] @ localhost []
# Thread_id: 2128153  Schema: db_edomainnlive  QC_hit: No
# Query_time: 2667.097652  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 1139192931
# Rows_affected: 0  Bytes_sent: 0
# Tmp_tables: 1  Tmp_disk_tables: 0  Tmp_table_sizes: 127296
# Full_scan: No  Full_join: No  Tmp_table: Yes  Tmp_table_on_disk: No
# Filesort: No  Filesort_on_disk: No  Merge_passes: 0  Priority_queue: No
#
# explain: id   select_type     table   type    possible_keys   key     key_len ref     rows    r_rows  filtered        r_filtered      Extra
# explain: 1    SIMPLE  inventory_in_stock      ref     PRIMARY,index_sku_qty,index_is_salable,index_sku        index_is_salable        1       const   1       17935.00        100.00  100.00  Using index; Using temporary; Using filesort
# explain: 1    SIMPLE  stock_status_index      ref     PRIMARY,index_sku_qty,index_is_salable,index_sku        index_is_salable        1       const   1       22145.96        100.00  100.00  Using index
# explain: 1    SIMPLE  product ref     PRIMARY,CATALOG_PRODUCT_ENTITY_SKU      CATALOG_PRODUCT_ENTITY_SKU      195     db_edomainnlive.stock_status_index.sku  1       1.00    100.00  100.00  Using index
# explain: 1    SIMPLE  cat_index       eq_ref  PRIMARY,CAT_CTGR_PRD_IDX_STORE10_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY,IDX_F8ACF7CDE70069E0E1260FAB3C7FAF7E        PRIMARY 10      const,db_edomainnlive.product.entity_id,const    1       0.29    100.00  99.91   Using where
# explain: 1    SIMPLE  price_index     eq_ref  PRIMARY,CATALOG_PRODUCT_INDEX_PRICE_CUSTOMER_GROUP_ID,CAT_PRD_IDX_PRICE_WS_ID_CSTR_GROUP_ID_MIN_PRICE   PRIMARY 10      db_edomainnlive.product.entity_id,const,const    1       0.99    100.00  100.00
# explain: 1    SIMPLE  e       eq_ref  PRIMARY,CATALOG_PRODUCT_ENTITY_SKU      PRIMARY 4       db_edomainnlive.product.entity_id       1       1.00    100.00  0.00    Using where
# explain: 1    SIMPLE  links   eq_ref  CATALOG_PRODUCT_LINK_LINK_TYPE_ID_PRODUCT_ID_LINKED_PRODUCT_ID,CATALOG_PRODUCT_LINK_PRODUCT_ID,CATALOG_PRODUCT_LINK_LINKED_PRODUCT_ID   CATALOG_PRODUCT_LINK_LINK_TYPE_ID_PRODUCT_ID_LINKED_PRODUCT_ID   10      const,const,db_edomainnlive.product.entity_id   1       0.00    100.00  100.00  Using index
# explain: 1    SIMPLE  product_entity_table    eq_ref  PRIMARY PRIMARY 4       db_edomainnlive.links.product_id        1       1.00    100.00  100.00  Using index
# explain: 1    SIMPLE  link_attribute_position_int     eq_ref  CAT_PRD_LNK_ATTR_INT_PRD_LNK_ATTR_ID_LNK_ID,CATALOG_PRODUCT_LINK_ATTRIBUTE_INT_LINK_ID  CAT_PRD_LNK_ATTR_INT_PRD_LNK_ATTR_ID_LNK_ID     7       const,db_edomainnlive.links.link_id      1       1.00    100.00  100.00
# explain: 1    SIMPLE  link_attribute_qty_decimal      eq_ref  CAT_PRD_LNK_ATTR_DEC_PRD_LNK_ATTR_ID_LNK_ID,CATALOG_PRODUCT_LINK_ATTRIBUTE_DECIMAL_LINK_ID      CAT_PRD_LNK_ATTR_DEC_PRD_LNK_ATTR_ID_LNK_ID     7const,db_edomainnlive.links.link_id     1       0.00    100.00  100.00
#
SET timestamp=1695032992;
SELECT `e`.*, `price_index`.`price`, `price_index`.`tax_class_id`, `price_index`.`final_price`, IF(price_index.tier_price IS NOT NULL, LEAST(price_index.min_price, price_index.tier_price), price_index.min_price) AS `minimal_price`, `price_index`.`min_price`, `price_index`.`max_price`, `price_index`.`tier_price`, `cat_index`.`position` AS `cat_index_position`, `stock_status_index`.`is_salable`, `links`.`link_id`, `links`.`product_id` AS `_linked_to_product_id`, `link_attribute_position_int`.`value` AS `position`, `link_attribute_qty_decimal`.`value` AS `qty` FROM `catalog_product_entity` AS `e`
 INNER JOIN `inventory_stock_9` AS `inventory_in_stock` ON e.sku = inventory_in_stock.sku
 INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.customer_group_id = 0 AND price_index.website_id = '5'
 INNER JOIN `catalog_category_product_index_store10` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=10 AND cat_index.visibility IN(2, 4) AND cat_index.category_id=2
 INNER JOIN `catalog_product_entity` AS `product` ON product.entity_id = e.entity_id
 INNER JOIN `inventory_stock_9` AS `stock_status_index` ON product.sku = stock_status_index.sku
 INNER JOIN `catalog_product_link` AS `links` ON links.linked_product_id = e.entity_id AND links.link_type_id = 1
 LEFT JOIN `catalog_product_link_attribute_int` AS `link_attribute_position_int` ON link_attribute_position_int.link_id = links.link_id AND link_attribute_position_int.product_link_attribute_id = '2'
 LEFT JOIN `catalog_product_link_attribute_decimal` AS `link_attribute_qty_decimal` ON link_attribute_qty_decimal.link_id = links.link_id AND link_attribute_qty_decimal.product_link_attribute_id = '6'
 INNER JOIN `catalog_product_entity` AS `product_entity_table` ON links.product_id = product_entity_table.entity_id WHERE (inventory_in_stock.is_salable = 1) AND (stock_status_index.is_salable = 1) AND (links.product_id in ('152938')) AND (`e`.`entity_id` != '152938') ORDER BY `position` ASC;
Adel-Magebinary commented 12 months ago

Rows_examined: 1139192931

This is a lot. However, have you been able to check the index for each join table?

Have you used READ COMMITTED from MySQL isolation level?