Huge slow query for products, categories, filtersConvert SQL Select to Magento SQL queryUpgrade from 1.9.1 to 1.9.2 Error`getLastPageNumber()` returning wrong number of pagesProduct List Attribute Filter QuerySQL Syntax Error near 'cat_index.is_parent=1'Magento 1.9.3.2 search returns empty resultMagento 1.9: Product Price tables - how they work?Slow SQL query with many joinsMagento 1.9.3.1 Quck Search Not workingMagento more than 61 product attribute database tables in join query

Who is the Umpire in this picture?

Realistic Necromancy?

How to reduce LED flash rate (frequency)

A Strange Latex Symbol

What does it mean to express a gate in Dirac notation?

Why do Computer Science majors learn Calculus?

A ​Note ​on ​N!

Is there any limitation with Arduino Nano serial communication distance?

Apply MapThread to all but one variable

Does this extra sentence in the description of the warlock's Eyes of the Rune Keeper eldritch invocation appear in any official reference?

Pulling the rope with one hand is as heavy as with two hands?

how to sum variables from file in bash

Don’t seats that recline flat defeat the purpose of having seatbelts?

a sore throat vs a strep throat vs strep throat

US visa is under administrative processing, I need the passport back ASAP

Examples of non trivial equivalence relations , I mean equivalence relations without the expression " same ... as" in their definition?

With a Canadian student visa, can I spend a night at Vancouver before continuing to Toronto?

Rivers without rain

Error message with tabularx

Using a Lyapunov function to classify stability and sketching a phase portrait

What are the potential pitfalls when using metals as a currency?

How can I place the product on a social media post better?

The Defining Moment

Is contacting this expert in the field something acceptable or would it be discourteous?



Huge slow query for products, categories, filters


Convert SQL Select to Magento SQL queryUpgrade from 1.9.1 to 1.9.2 Error`getLastPageNumber()` returning wrong number of pagesProduct List Attribute Filter QuerySQL Syntax Error near 'cat_index.is_parent=1'Magento 1.9.3.2 search returns empty resultMagento 1.9: Product Price tables - how they work?Slow SQL query with many joinsMagento 1.9.3.1 Quck Search Not workingMagento more than 61 product attribute database tables in join query






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I run a Magento 1.9 based store with around 40 thousand active products. Using an FPC I am able to keep the server stable sometimes, and other unstable. While checking for highest hardware consumption I found the following query with thousands of numbers related to product IDs inside the query where I wrote ...



Have you been through this problem and came to a solution ? Do you have any ideas on how to solve it ?



Best regards,
Gustavo Ulyssea



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` FROM `catalog_product_entity` AS `e`

INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id
AND price_index.website_id = '1' AND price_index.customer_group_id = 0

INNER JOIN `catalog_category_product_index` AS `cat_index` ON cat_index.product_id=e.entity_id
AND cat_index.store_id='1' AND cat_index.visibility IN(3, 4) AND cat_index.category_id = '2'
WHERE (`e`.`entity_id` IN(36873, 43340, 43334, 43318, ...))


ORDER BY FIELD(`e`.`entity_id`, 36873, 43340, 43334, ...)) ASC LIMIT 7









share|improve this question




























    0















    I run a Magento 1.9 based store with around 40 thousand active products. Using an FPC I am able to keep the server stable sometimes, and other unstable. While checking for highest hardware consumption I found the following query with thousands of numbers related to product IDs inside the query where I wrote ...



    Have you been through this problem and came to a solution ? Do you have any ideas on how to solve it ?



    Best regards,
    Gustavo Ulyssea



    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` FROM `catalog_product_entity` AS `e`

    INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id
    AND price_index.website_id = '1' AND price_index.customer_group_id = 0

    INNER JOIN `catalog_category_product_index` AS `cat_index` ON cat_index.product_id=e.entity_id
    AND cat_index.store_id='1' AND cat_index.visibility IN(3, 4) AND cat_index.category_id = '2'
    WHERE (`e`.`entity_id` IN(36873, 43340, 43334, 43318, ...))


    ORDER BY FIELD(`e`.`entity_id`, 36873, 43340, 43334, ...)) ASC LIMIT 7









    share|improve this question
























      0












      0








      0








      I run a Magento 1.9 based store with around 40 thousand active products. Using an FPC I am able to keep the server stable sometimes, and other unstable. While checking for highest hardware consumption I found the following query with thousands of numbers related to product IDs inside the query where I wrote ...



      Have you been through this problem and came to a solution ? Do you have any ideas on how to solve it ?



      Best regards,
      Gustavo Ulyssea



      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` FROM `catalog_product_entity` AS `e`

      INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id
      AND price_index.website_id = '1' AND price_index.customer_group_id = 0

      INNER JOIN `catalog_category_product_index` AS `cat_index` ON cat_index.product_id=e.entity_id
      AND cat_index.store_id='1' AND cat_index.visibility IN(3, 4) AND cat_index.category_id = '2'
      WHERE (`e`.`entity_id` IN(36873, 43340, 43334, 43318, ...))


      ORDER BY FIELD(`e`.`entity_id`, 36873, 43340, 43334, ...)) ASC LIMIT 7









      share|improve this question














      I run a Magento 1.9 based store with around 40 thousand active products. Using an FPC I am able to keep the server stable sometimes, and other unstable. While checking for highest hardware consumption I found the following query with thousands of numbers related to product IDs inside the query where I wrote ...



      Have you been through this problem and came to a solution ? Do you have any ideas on how to solve it ?



      Best regards,
      Gustavo Ulyssea



      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` FROM `catalog_product_entity` AS `e`

      INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id
      AND price_index.website_id = '1' AND price_index.customer_group_id = 0

      INNER JOIN `catalog_category_product_index` AS `cat_index` ON cat_index.product_id=e.entity_id
      AND cat_index.store_id='1' AND cat_index.visibility IN(3, 4) AND cat_index.category_id = '2'
      WHERE (`e`.`entity_id` IN(36873, 43340, 43334, 43318, ...))


      ORDER BY FIELD(`e`.`entity_id`, 36873, 43340, 43334, ...)) ASC LIMIT 7






      magento-1.9 sql






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 24 at 13:32









      Gustavo UlysseaGustavo Ulyssea

      1




      1




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f272306%2fhuge-slow-query-for-products-categories-filters%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f272306%2fhuge-slow-query-for-products-categories-filters%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form