Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Sign Up

Recommended Posts

Добрый день!

 

Столкнулись с такой проблемой, что есть запросы, которые грузят сайт. при анализе запросов нашли такие запросы, суть которых непонятна. 

 

CREATE TEMPORARY TABLE oc_bf_found_results (PRIMARY KEY (`product_id`))  SELECT p.product_id, p.price, MIN(pd2.price) AS discount, MIN(ps.price) AS special, AVG(rating) AS total, 0 AS fixed_tax, 0 AS percent_tax FROM ( SELECT p.* FROM `oc_product` AS p INNER JOIN `oc_product_description` AS pd ON (pd.product_id = p.product_id) WHERE ((pd.name LIKE '%простынь%') OR LCASE(p.model) = 'простынь' OR LCASE(p.sku) = 'простынь' OR LCASE(p.upc) = 'простынь' OR LCASE(p.ean) = 'простынь' OR LCASE(p.jan) = 'простынь' OR LCASE(p.isbn) = 'простынь' OR LCASE(p.mpn) = 'простынь' OR pd.tag LIKE "%простынь%" OR pd.description LIKE "%простынь%")) AS p INNER JOIN `oc_product_to_store` AS p2s ON (p.product_id = p2s.product_id) LEFT JOIN `oc_product_discount` AS pd2 ON (pd2.product_id = p.product_id

                        AND pd2.quantity = '1'

                        AND (pd2.date_start = '0000-00-00' OR pd2.date_start < NOW())

                        AND (pd2.date_end = '0000-00-00' OR pd2.date_end > NOW())

                        AND pd2.customer_group_id = '1') LEFT JOIN `oc_product_special` AS ps ON (ps.product_id = p.product_id

                        AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW())

                        AND (ps.date_start = '0000-00-00' OR ps.date_start < NOW())

                        AND ps.customer_group_id = '1') LEFT JOIN `oc_review` AS r1 ON (r1.product_id = p.product_id AND r1.status = 1) WHERE p2s.store_id = '0' AND p.status = '1' AND p.date_available <= NOW() GROUP BY p.product_id

что он делает, к какому модулю принадлежит и где можно его отключить непонятно.

Проверяли вот эту страницу http://spb.vipim.ru/mebel-dlya-salona-krasoty/divany-i-kresla/

Можете что то посоветовать?

Link to post
Share on other sites

Да это Brainy фильтр

Все запросы типа LIKE '%простынь%'  будут перебирать всю таблицу и не использовать индексы

  • +1 1
Link to post
Share on other sites

Спасибо вам большое!!!

12 часов назад, markimax сказал:

Да это Brainy фильтр

Все запросы типа LIKE '%простынь%'  будут перебирать всю таблицу и не использовать индексы

 

13 часов назад, Agatha65 сказал:

Brainy filter

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.