Jump to content
xt:Commerce Community Forum

Master von bis beschleunigen / Alternative


Recommended Posts

naja,

wenn Du auf Angebotspreise verzichten kannst, dann das Plugin xt_special_prices abschalten.

Ursache ist eine ( unperformante ) CASE / WHEN-Abfrage in den Hooks

class.product_sql_query.phpF_Sorting_price.php

class.product_sql_query.phpF_Sorting_price_desc.php:

        $sqlCols = ", CASE
                     WHEN p.products_master_flag=1 THEN (SELECT MIN(ps.products_price)FROM " . TABLE_PRODUCTS . " ps WHERE ps.products_master_model=model)
                     ";
        if (isset($xtPlugin->active_modules['xt_special_products']))
        {
            $sqlCols .= "WHEN pps.specials_price>0 THEN pps.specials_price
                        ";
        }

        $sqlCols .= "ELSE p.products_price
                END AS sort_price ";

 

von Master-Slave, hatte das schon mal gepatched , finde den Code aber gerade nicht.

Wenn die Slaves keine Angebotspreise haben, könnte man diese beiden Hooks testweise auch mal deaktivieren

Grüsse

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
  • Create New...