Magento 2.3.0 Performance issue












0















I'm working on a Magento 2.3.0 store with 790k SKUs and 7k Categories. Category pages and Single product page open load time is more than 10s. I enabled db query log and I could see below query that takes ore than 3 seconds.



2019-01-19 19:32:07



9478 ## QUERY



SQL: SELECT inventory_stock_1.quantity, inventory_stock_1.is_salable FROM inventory_stock_1 WHERE (sku = 'P00AA40')
AFF: 1



TIME: 3.0955

TRACE: #1



MagentoFrameworkDBLoggerFile[MagentoFrameworkDBLoggerLoggerAbstract]#000000006e030af800000000689c3fe1#->getStats('query', 'SELECT `inventor...', array(), &MagentoFrameworkDBStatementPdoMysql#000000006e03021000000000689c3fe1#) called at [vendor/magento/framework/DB/Logger/File.php:67]



2 MagentoFrameworkDBLoggerFile#000000006e030af800000000689c3fe1#->logStats('query', 'SELECT `inventor...', array(), &MagentoFrameworkDBStatementPdoMysql#000000006e03021000000000689c3fe1#) called at [vendor/magento/framework/DB/Logger/LoggerProxy.php:152]



3 MagentoFrameworkDBLoggerLoggerProxy#000000006e030aef00000000689c3fe1#->logStats('query', 'SELECT `inventor...', array(), &MagentoFrameworkDBStatementPdoMysql#000000006e03021000000000689c3fe1#) called at [vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:542]



4 MagentoFrameworkDBAdapterPdoMysql#000000006e030ae800000000689c3fe1#->_query('SELECT `inventor...', array()) called at [vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:615]



5 MagentoFrameworkDBAdapterPdoMysql#000000006e030ae800000000689c3fe1#->query(&MagentoFrameworkDBSelect#000000006e03020b00000000689c3fe1#, array()) called at [vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php:756]



6 MagentoFrameworkDBAdapterPdoMysql[Zend_Db_Adapter_Abstract]#000000006e030ae800000000689c3fe1#->fetchRow(&MagentoFrameworkDBSelect#000000006e03020b00000000689c3fe1#) called at [vendor/magento/module-inventory-indexer/Model/ResourceModel/GetStockItemData.php:63]



7 MagentoInventoryIndexerModelResourceModelGetStockItemData#000000006e030f3a00000000689c3fe1#->execute('P00AA40', 1) called at [vendor/magento/module-inventory-sales/Model/GetProductSalableQty.php:75]



8 MagentoInventorySalesModelGetProductSalableQty#000000006e03021800000000689c3fe1#->execute('P00AA40', 1) called at [vendor/magento/module-inventory-sales-frontend-ui/Plugin/Block/Stockqty/AbstractStockqtyPlugin.php:80]



9 MagentoInventorySalesFrontendUiPluginBlockStockqtyAbstractStockqtyPlugin#000000006e03020a00000000689c3fe1#->aroundIsMsgVisible(&MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor#000000006e030ce500000000689c3fe1#, &Closure#000000006e03021e00000000689c3fe1#) called at [vendor/magento/framework/Interception/Interceptor.php:135]



10 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor#000000006e030ce500000000689c3fe1#->MagentoFrameworkInterception{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]



11 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor#000000006e030ce500000000689c3fe1#->___callPlugins('isMsgVisible', array(), NULL) called at [generated/code/Magento/CatalogInventory/Block/Stockqty/DefaultStockqty/Interceptor.php:26]



12 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor#000000006e030ce500000000689c3fe1#->isMsgVisible() called at [vendor/magento/module-catalog-inventory/Block/Stockqty/DefaultStockqty.php:28]



13 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor[MagentoCatalogInventoryBlockStockqtyDefaultStockqty]#000000006e030ce500000000689c3fe1#->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:668]



14 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor[MagentoFrameworkViewElementAbstractBlock]#000000006e030ce500000000689c3fe1#->toHtml() called at [vendor/magento/framework/View/Layout.php:557]



15 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderBlock('product.info.sim...') called at [vendor/magento/framework/View/Layout.php:533]



16 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.sim...') called at [vendor/magento/framework/View/Layout.php:488]



17 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.sim...', false) called at [vendor/magento/framework/View/Layout.php:585]



18 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.sim...', false) called at [vendor/magento/framework/View/Layout.php:535]



19 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.sim...') called at [vendor/magento/framework/View/Layout.php:488]



20 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.sim...', false) called at [vendor/magento/framework/View/Layout.php:585]



21 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.typ...', false) called at [vendor/magento/framework/View/Layout.php:535]



22 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.typ...') called at [vendor/magento/framework/View/Layout.php:488]



23 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.typ...', false) called at [vendor/magento/framework/View/Layout.php:585]



24 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.sto...', false) called at [vendor/magento/framework/View/Layout.php:535]



25 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.sto...') called at [vendor/magento/framework/View/Layout.php:488]



26 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.sto...', false) called at [vendor/magento/framework/View/Layout.php:585]



27 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.pri...', false) called at [vendor/magento/framework/View/Layout.php:535]



28 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.pri...') called at [vendor/magento/framework/View/Layout.php:488]



29 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.pri...', false) called at [vendor/magento/framework/View/Layout.php:585]



30 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.mai...', false) called at [vendor/magento/framework/View/Layout.php:535]



31 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.mai...') called at [vendor/magento/framework/View/Layout.php:488]



32 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.mai...', false) called at [vendor/magento/framework/View/Layout.php:585]



33 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('content', false) called at [vendor/magento/framework/View/Layout.php:535]



34 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('content') called at [vendor/magento/framework/View/Layout.php:488]



35 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('content', false) called at [vendor/magento/framework/View/Layout.php:585]



36 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('main', false) called at [vendor/magento/framework/View/Layout.php:535]



37 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('main') called at [vendor/magento/framework/View/Layout.php:488]



38 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('main', false) called at [vendor/magento/framework/View/Layout.php:585]



39 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('columns', false) called at [vendor/magento/framework/View/Layout.php:535]



40 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('columns') called at [vendor/magento/framework/View/Layout.php:488]



41 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('columns', false) called at [vendor/magento/framework/View/Layout.php:585]



42 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('main.content', false) called at [vendor/magento/framework/View/Layout.php:535]



43 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('main.content') called at [vendor/magento/framework/View/Layout.php:488]



44 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('main.content', false) called at [vendor/magento/framework/View/Layout.php:585]



45 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:535]



46 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('page.wrapper') called at [vendor/magento/framework/View/Layout.php:488]



47 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:585]



48 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('root', false) called at [vendor/magento/framework/View/Layout.php:535]



49 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('root') called at [vendor/magento/framework/View/Layout.php:488]



50 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('root') called at [vendor/magento/framework/View/Layout.php:954]



51 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->getOutput() called at [vendor/magento/framework/Interception/Interceptor.php:58]



52 MagentoFrameworkViewLayoutInterceptor#000000006e030bda00000000689c3fe1#->___callParent('getOutput', array()) called at [vendor/magento/framework/Interception/Interceptor.php:138]



53 MagentoFrameworkViewLayoutInterceptor#000000006e030bda00000000689c3fe1#->MagentoFrameworkInterception{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]



54 MagentoFrameworkViewLayoutInterceptor#000000006e030bda00000000689c3fe1#->___callPlugins('getOutput', array(), array(array('layout-model-cac...'))) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:39]



55 MagentoFrameworkViewLayoutInterceptor#000000006e030bda00000000689c3fe1#->getOutput() called at [vendor/magento/framework/View/Result/Page.php:258]



56 MagentoFrameworkViewResultPageInterceptor[MagentoFrameworkViewResultPage]#000000006e03098000000000689c3fe1#->render(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#) called at [vendor/magento/framework/View/Result/Layout.php:171]



57 MagentoFrameworkViewResultPageInterceptor[MagentoFrameworkViewResultLayout]#000000006e03098000000000689c3fe1#->renderResult(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#) called at [vendor/magento/framework/Interception/Interceptor.php:58]



58 MagentoFrameworkViewResultPageInterceptor#000000006e03098000000000689c3fe1#->___callParent('renderResult', array(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#)) called at [vendor/magento/framework/Interception/Interceptor.php:138]



59 MagentoFrameworkViewResultPageInterceptor#000000006e03098000000000689c3fe1#->MagentoFrameworkInterception{closure}(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#) called at [vendor/magento/framework/Interception/Interceptor.php:153]



60 MagentoFrameworkViewResultPageInterceptor#000000006e03098000000000689c3fe1#->___callPlugins('renderResult', array(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#), array(array('result-messages', 'result-builtin-c...', 'result-varnish-c...'))) called at [generated/code/Magento/Framework/View/Result/Page/Interceptor.php:26]



61 MagentoFrameworkViewResultPageInterceptor#000000006e03098000000000689c3fe1#->renderResult(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#) called at [vendor/magento/framework/App/Http.php:139]



62 MagentoFrameworkAppHttpInterceptor[MagentoFrameworkAppHttp]#000000006e030aa200000000689c3fe1#->launch() called at [vendor/magento/framework/App/Bootstrap.php:258]



63 MagentoFrameworkAppBootstrap#000000006e030a0d00000000689c3fe1#->run(&MagentoFrameworkAppHttpInterceptor#000000006e030aa200000000689c3fe1#) called at [index.php:39]



What could be the reason for this? I'm using Luma theme and disabled all 3rd part modules.









share







New contributor




Chathura is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I'm working on a Magento 2.3.0 store with 790k SKUs and 7k Categories. Category pages and Single product page open load time is more than 10s. I enabled db query log and I could see below query that takes ore than 3 seconds.



    2019-01-19 19:32:07



    9478 ## QUERY



    SQL: SELECT inventory_stock_1.quantity, inventory_stock_1.is_salable FROM inventory_stock_1 WHERE (sku = 'P00AA40')
    AFF: 1



    TIME: 3.0955

    TRACE: #1



    MagentoFrameworkDBLoggerFile[MagentoFrameworkDBLoggerLoggerAbstract]#000000006e030af800000000689c3fe1#->getStats('query', 'SELECT `inventor...', array(), &MagentoFrameworkDBStatementPdoMysql#000000006e03021000000000689c3fe1#) called at [vendor/magento/framework/DB/Logger/File.php:67]



    2 MagentoFrameworkDBLoggerFile#000000006e030af800000000689c3fe1#->logStats('query', 'SELECT `inventor...', array(), &MagentoFrameworkDBStatementPdoMysql#000000006e03021000000000689c3fe1#) called at [vendor/magento/framework/DB/Logger/LoggerProxy.php:152]



    3 MagentoFrameworkDBLoggerLoggerProxy#000000006e030aef00000000689c3fe1#->logStats('query', 'SELECT `inventor...', array(), &MagentoFrameworkDBStatementPdoMysql#000000006e03021000000000689c3fe1#) called at [vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:542]



    4 MagentoFrameworkDBAdapterPdoMysql#000000006e030ae800000000689c3fe1#->_query('SELECT `inventor...', array()) called at [vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:615]



    5 MagentoFrameworkDBAdapterPdoMysql#000000006e030ae800000000689c3fe1#->query(&MagentoFrameworkDBSelect#000000006e03020b00000000689c3fe1#, array()) called at [vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php:756]



    6 MagentoFrameworkDBAdapterPdoMysql[Zend_Db_Adapter_Abstract]#000000006e030ae800000000689c3fe1#->fetchRow(&MagentoFrameworkDBSelect#000000006e03020b00000000689c3fe1#) called at [vendor/magento/module-inventory-indexer/Model/ResourceModel/GetStockItemData.php:63]



    7 MagentoInventoryIndexerModelResourceModelGetStockItemData#000000006e030f3a00000000689c3fe1#->execute('P00AA40', 1) called at [vendor/magento/module-inventory-sales/Model/GetProductSalableQty.php:75]



    8 MagentoInventorySalesModelGetProductSalableQty#000000006e03021800000000689c3fe1#->execute('P00AA40', 1) called at [vendor/magento/module-inventory-sales-frontend-ui/Plugin/Block/Stockqty/AbstractStockqtyPlugin.php:80]



    9 MagentoInventorySalesFrontendUiPluginBlockStockqtyAbstractStockqtyPlugin#000000006e03020a00000000689c3fe1#->aroundIsMsgVisible(&MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor#000000006e030ce500000000689c3fe1#, &Closure#000000006e03021e00000000689c3fe1#) called at [vendor/magento/framework/Interception/Interceptor.php:135]



    10 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor#000000006e030ce500000000689c3fe1#->MagentoFrameworkInterception{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]



    11 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor#000000006e030ce500000000689c3fe1#->___callPlugins('isMsgVisible', array(), NULL) called at [generated/code/Magento/CatalogInventory/Block/Stockqty/DefaultStockqty/Interceptor.php:26]



    12 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor#000000006e030ce500000000689c3fe1#->isMsgVisible() called at [vendor/magento/module-catalog-inventory/Block/Stockqty/DefaultStockqty.php:28]



    13 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor[MagentoCatalogInventoryBlockStockqtyDefaultStockqty]#000000006e030ce500000000689c3fe1#->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:668]



    14 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor[MagentoFrameworkViewElementAbstractBlock]#000000006e030ce500000000689c3fe1#->toHtml() called at [vendor/magento/framework/View/Layout.php:557]



    15 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderBlock('product.info.sim...') called at [vendor/magento/framework/View/Layout.php:533]



    16 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.sim...') called at [vendor/magento/framework/View/Layout.php:488]



    17 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.sim...', false) called at [vendor/magento/framework/View/Layout.php:585]



    18 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.sim...', false) called at [vendor/magento/framework/View/Layout.php:535]



    19 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.sim...') called at [vendor/magento/framework/View/Layout.php:488]



    20 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.sim...', false) called at [vendor/magento/framework/View/Layout.php:585]



    21 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.typ...', false) called at [vendor/magento/framework/View/Layout.php:535]



    22 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.typ...') called at [vendor/magento/framework/View/Layout.php:488]



    23 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.typ...', false) called at [vendor/magento/framework/View/Layout.php:585]



    24 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.sto...', false) called at [vendor/magento/framework/View/Layout.php:535]



    25 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.sto...') called at [vendor/magento/framework/View/Layout.php:488]



    26 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.sto...', false) called at [vendor/magento/framework/View/Layout.php:585]



    27 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.pri...', false) called at [vendor/magento/framework/View/Layout.php:535]



    28 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.pri...') called at [vendor/magento/framework/View/Layout.php:488]



    29 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.pri...', false) called at [vendor/magento/framework/View/Layout.php:585]



    30 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.mai...', false) called at [vendor/magento/framework/View/Layout.php:535]



    31 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.mai...') called at [vendor/magento/framework/View/Layout.php:488]



    32 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.mai...', false) called at [vendor/magento/framework/View/Layout.php:585]



    33 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('content', false) called at [vendor/magento/framework/View/Layout.php:535]



    34 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('content') called at [vendor/magento/framework/View/Layout.php:488]



    35 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('content', false) called at [vendor/magento/framework/View/Layout.php:585]



    36 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('main', false) called at [vendor/magento/framework/View/Layout.php:535]



    37 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('main') called at [vendor/magento/framework/View/Layout.php:488]



    38 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('main', false) called at [vendor/magento/framework/View/Layout.php:585]



    39 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('columns', false) called at [vendor/magento/framework/View/Layout.php:535]



    40 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('columns') called at [vendor/magento/framework/View/Layout.php:488]



    41 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('columns', false) called at [vendor/magento/framework/View/Layout.php:585]



    42 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('main.content', false) called at [vendor/magento/framework/View/Layout.php:535]



    43 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('main.content') called at [vendor/magento/framework/View/Layout.php:488]



    44 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('main.content', false) called at [vendor/magento/framework/View/Layout.php:585]



    45 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:535]



    46 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('page.wrapper') called at [vendor/magento/framework/View/Layout.php:488]



    47 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:585]



    48 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('root', false) called at [vendor/magento/framework/View/Layout.php:535]



    49 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('root') called at [vendor/magento/framework/View/Layout.php:488]



    50 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('root') called at [vendor/magento/framework/View/Layout.php:954]



    51 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->getOutput() called at [vendor/magento/framework/Interception/Interceptor.php:58]



    52 MagentoFrameworkViewLayoutInterceptor#000000006e030bda00000000689c3fe1#->___callParent('getOutput', array()) called at [vendor/magento/framework/Interception/Interceptor.php:138]



    53 MagentoFrameworkViewLayoutInterceptor#000000006e030bda00000000689c3fe1#->MagentoFrameworkInterception{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]



    54 MagentoFrameworkViewLayoutInterceptor#000000006e030bda00000000689c3fe1#->___callPlugins('getOutput', array(), array(array('layout-model-cac...'))) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:39]



    55 MagentoFrameworkViewLayoutInterceptor#000000006e030bda00000000689c3fe1#->getOutput() called at [vendor/magento/framework/View/Result/Page.php:258]



    56 MagentoFrameworkViewResultPageInterceptor[MagentoFrameworkViewResultPage]#000000006e03098000000000689c3fe1#->render(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#) called at [vendor/magento/framework/View/Result/Layout.php:171]



    57 MagentoFrameworkViewResultPageInterceptor[MagentoFrameworkViewResultLayout]#000000006e03098000000000689c3fe1#->renderResult(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#) called at [vendor/magento/framework/Interception/Interceptor.php:58]



    58 MagentoFrameworkViewResultPageInterceptor#000000006e03098000000000689c3fe1#->___callParent('renderResult', array(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#)) called at [vendor/magento/framework/Interception/Interceptor.php:138]



    59 MagentoFrameworkViewResultPageInterceptor#000000006e03098000000000689c3fe1#->MagentoFrameworkInterception{closure}(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#) called at [vendor/magento/framework/Interception/Interceptor.php:153]



    60 MagentoFrameworkViewResultPageInterceptor#000000006e03098000000000689c3fe1#->___callPlugins('renderResult', array(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#), array(array('result-messages', 'result-builtin-c...', 'result-varnish-c...'))) called at [generated/code/Magento/Framework/View/Result/Page/Interceptor.php:26]



    61 MagentoFrameworkViewResultPageInterceptor#000000006e03098000000000689c3fe1#->renderResult(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#) called at [vendor/magento/framework/App/Http.php:139]



    62 MagentoFrameworkAppHttpInterceptor[MagentoFrameworkAppHttp]#000000006e030aa200000000689c3fe1#->launch() called at [vendor/magento/framework/App/Bootstrap.php:258]



    63 MagentoFrameworkAppBootstrap#000000006e030a0d00000000689c3fe1#->run(&MagentoFrameworkAppHttpInterceptor#000000006e030aa200000000689c3fe1#) called at [index.php:39]



    What could be the reason for this? I'm using Luma theme and disabled all 3rd part modules.









    share







    New contributor




    Chathura is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I'm working on a Magento 2.3.0 store with 790k SKUs and 7k Categories. Category pages and Single product page open load time is more than 10s. I enabled db query log and I could see below query that takes ore than 3 seconds.



      2019-01-19 19:32:07



      9478 ## QUERY



      SQL: SELECT inventory_stock_1.quantity, inventory_stock_1.is_salable FROM inventory_stock_1 WHERE (sku = 'P00AA40')
      AFF: 1



      TIME: 3.0955

      TRACE: #1



      MagentoFrameworkDBLoggerFile[MagentoFrameworkDBLoggerLoggerAbstract]#000000006e030af800000000689c3fe1#->getStats('query', 'SELECT `inventor...', array(), &MagentoFrameworkDBStatementPdoMysql#000000006e03021000000000689c3fe1#) called at [vendor/magento/framework/DB/Logger/File.php:67]



      2 MagentoFrameworkDBLoggerFile#000000006e030af800000000689c3fe1#->logStats('query', 'SELECT `inventor...', array(), &MagentoFrameworkDBStatementPdoMysql#000000006e03021000000000689c3fe1#) called at [vendor/magento/framework/DB/Logger/LoggerProxy.php:152]



      3 MagentoFrameworkDBLoggerLoggerProxy#000000006e030aef00000000689c3fe1#->logStats('query', 'SELECT `inventor...', array(), &MagentoFrameworkDBStatementPdoMysql#000000006e03021000000000689c3fe1#) called at [vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:542]



      4 MagentoFrameworkDBAdapterPdoMysql#000000006e030ae800000000689c3fe1#->_query('SELECT `inventor...', array()) called at [vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:615]



      5 MagentoFrameworkDBAdapterPdoMysql#000000006e030ae800000000689c3fe1#->query(&MagentoFrameworkDBSelect#000000006e03020b00000000689c3fe1#, array()) called at [vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php:756]



      6 MagentoFrameworkDBAdapterPdoMysql[Zend_Db_Adapter_Abstract]#000000006e030ae800000000689c3fe1#->fetchRow(&MagentoFrameworkDBSelect#000000006e03020b00000000689c3fe1#) called at [vendor/magento/module-inventory-indexer/Model/ResourceModel/GetStockItemData.php:63]



      7 MagentoInventoryIndexerModelResourceModelGetStockItemData#000000006e030f3a00000000689c3fe1#->execute('P00AA40', 1) called at [vendor/magento/module-inventory-sales/Model/GetProductSalableQty.php:75]



      8 MagentoInventorySalesModelGetProductSalableQty#000000006e03021800000000689c3fe1#->execute('P00AA40', 1) called at [vendor/magento/module-inventory-sales-frontend-ui/Plugin/Block/Stockqty/AbstractStockqtyPlugin.php:80]



      9 MagentoInventorySalesFrontendUiPluginBlockStockqtyAbstractStockqtyPlugin#000000006e03020a00000000689c3fe1#->aroundIsMsgVisible(&MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor#000000006e030ce500000000689c3fe1#, &Closure#000000006e03021e00000000689c3fe1#) called at [vendor/magento/framework/Interception/Interceptor.php:135]



      10 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor#000000006e030ce500000000689c3fe1#->MagentoFrameworkInterception{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]



      11 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor#000000006e030ce500000000689c3fe1#->___callPlugins('isMsgVisible', array(), NULL) called at [generated/code/Magento/CatalogInventory/Block/Stockqty/DefaultStockqty/Interceptor.php:26]



      12 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor#000000006e030ce500000000689c3fe1#->isMsgVisible() called at [vendor/magento/module-catalog-inventory/Block/Stockqty/DefaultStockqty.php:28]



      13 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor[MagentoCatalogInventoryBlockStockqtyDefaultStockqty]#000000006e030ce500000000689c3fe1#->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:668]



      14 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor[MagentoFrameworkViewElementAbstractBlock]#000000006e030ce500000000689c3fe1#->toHtml() called at [vendor/magento/framework/View/Layout.php:557]



      15 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderBlock('product.info.sim...') called at [vendor/magento/framework/View/Layout.php:533]



      16 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.sim...') called at [vendor/magento/framework/View/Layout.php:488]



      17 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.sim...', false) called at [vendor/magento/framework/View/Layout.php:585]



      18 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.sim...', false) called at [vendor/magento/framework/View/Layout.php:535]



      19 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.sim...') called at [vendor/magento/framework/View/Layout.php:488]



      20 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.sim...', false) called at [vendor/magento/framework/View/Layout.php:585]



      21 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.typ...', false) called at [vendor/magento/framework/View/Layout.php:535]



      22 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.typ...') called at [vendor/magento/framework/View/Layout.php:488]



      23 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.typ...', false) called at [vendor/magento/framework/View/Layout.php:585]



      24 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.sto...', false) called at [vendor/magento/framework/View/Layout.php:535]



      25 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.sto...') called at [vendor/magento/framework/View/Layout.php:488]



      26 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.sto...', false) called at [vendor/magento/framework/View/Layout.php:585]



      27 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.pri...', false) called at [vendor/magento/framework/View/Layout.php:535]



      28 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.pri...') called at [vendor/magento/framework/View/Layout.php:488]



      29 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.pri...', false) called at [vendor/magento/framework/View/Layout.php:585]



      30 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.mai...', false) called at [vendor/magento/framework/View/Layout.php:535]



      31 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.mai...') called at [vendor/magento/framework/View/Layout.php:488]



      32 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.mai...', false) called at [vendor/magento/framework/View/Layout.php:585]



      33 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('content', false) called at [vendor/magento/framework/View/Layout.php:535]



      34 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('content') called at [vendor/magento/framework/View/Layout.php:488]



      35 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('content', false) called at [vendor/magento/framework/View/Layout.php:585]



      36 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('main', false) called at [vendor/magento/framework/View/Layout.php:535]



      37 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('main') called at [vendor/magento/framework/View/Layout.php:488]



      38 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('main', false) called at [vendor/magento/framework/View/Layout.php:585]



      39 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('columns', false) called at [vendor/magento/framework/View/Layout.php:535]



      40 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('columns') called at [vendor/magento/framework/View/Layout.php:488]



      41 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('columns', false) called at [vendor/magento/framework/View/Layout.php:585]



      42 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('main.content', false) called at [vendor/magento/framework/View/Layout.php:535]



      43 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('main.content') called at [vendor/magento/framework/View/Layout.php:488]



      44 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('main.content', false) called at [vendor/magento/framework/View/Layout.php:585]



      45 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:535]



      46 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('page.wrapper') called at [vendor/magento/framework/View/Layout.php:488]



      47 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:585]



      48 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('root', false) called at [vendor/magento/framework/View/Layout.php:535]



      49 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('root') called at [vendor/magento/framework/View/Layout.php:488]



      50 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('root') called at [vendor/magento/framework/View/Layout.php:954]



      51 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->getOutput() called at [vendor/magento/framework/Interception/Interceptor.php:58]



      52 MagentoFrameworkViewLayoutInterceptor#000000006e030bda00000000689c3fe1#->___callParent('getOutput', array()) called at [vendor/magento/framework/Interception/Interceptor.php:138]



      53 MagentoFrameworkViewLayoutInterceptor#000000006e030bda00000000689c3fe1#->MagentoFrameworkInterception{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]



      54 MagentoFrameworkViewLayoutInterceptor#000000006e030bda00000000689c3fe1#->___callPlugins('getOutput', array(), array(array('layout-model-cac...'))) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:39]



      55 MagentoFrameworkViewLayoutInterceptor#000000006e030bda00000000689c3fe1#->getOutput() called at [vendor/magento/framework/View/Result/Page.php:258]



      56 MagentoFrameworkViewResultPageInterceptor[MagentoFrameworkViewResultPage]#000000006e03098000000000689c3fe1#->render(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#) called at [vendor/magento/framework/View/Result/Layout.php:171]



      57 MagentoFrameworkViewResultPageInterceptor[MagentoFrameworkViewResultLayout]#000000006e03098000000000689c3fe1#->renderResult(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#) called at [vendor/magento/framework/Interception/Interceptor.php:58]



      58 MagentoFrameworkViewResultPageInterceptor#000000006e03098000000000689c3fe1#->___callParent('renderResult', array(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#)) called at [vendor/magento/framework/Interception/Interceptor.php:138]



      59 MagentoFrameworkViewResultPageInterceptor#000000006e03098000000000689c3fe1#->MagentoFrameworkInterception{closure}(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#) called at [vendor/magento/framework/Interception/Interceptor.php:153]



      60 MagentoFrameworkViewResultPageInterceptor#000000006e03098000000000689c3fe1#->___callPlugins('renderResult', array(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#), array(array('result-messages', 'result-builtin-c...', 'result-varnish-c...'))) called at [generated/code/Magento/Framework/View/Result/Page/Interceptor.php:26]



      61 MagentoFrameworkViewResultPageInterceptor#000000006e03098000000000689c3fe1#->renderResult(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#) called at [vendor/magento/framework/App/Http.php:139]



      62 MagentoFrameworkAppHttpInterceptor[MagentoFrameworkAppHttp]#000000006e030aa200000000689c3fe1#->launch() called at [vendor/magento/framework/App/Bootstrap.php:258]



      63 MagentoFrameworkAppBootstrap#000000006e030a0d00000000689c3fe1#->run(&MagentoFrameworkAppHttpInterceptor#000000006e030aa200000000689c3fe1#) called at [index.php:39]



      What could be the reason for this? I'm using Luma theme and disabled all 3rd part modules.









      share







      New contributor




      Chathura is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I'm working on a Magento 2.3.0 store with 790k SKUs and 7k Categories. Category pages and Single product page open load time is more than 10s. I enabled db query log and I could see below query that takes ore than 3 seconds.



      2019-01-19 19:32:07



      9478 ## QUERY



      SQL: SELECT inventory_stock_1.quantity, inventory_stock_1.is_salable FROM inventory_stock_1 WHERE (sku = 'P00AA40')
      AFF: 1



      TIME: 3.0955

      TRACE: #1



      MagentoFrameworkDBLoggerFile[MagentoFrameworkDBLoggerLoggerAbstract]#000000006e030af800000000689c3fe1#->getStats('query', 'SELECT `inventor...', array(), &MagentoFrameworkDBStatementPdoMysql#000000006e03021000000000689c3fe1#) called at [vendor/magento/framework/DB/Logger/File.php:67]



      2 MagentoFrameworkDBLoggerFile#000000006e030af800000000689c3fe1#->logStats('query', 'SELECT `inventor...', array(), &MagentoFrameworkDBStatementPdoMysql#000000006e03021000000000689c3fe1#) called at [vendor/magento/framework/DB/Logger/LoggerProxy.php:152]



      3 MagentoFrameworkDBLoggerLoggerProxy#000000006e030aef00000000689c3fe1#->logStats('query', 'SELECT `inventor...', array(), &MagentoFrameworkDBStatementPdoMysql#000000006e03021000000000689c3fe1#) called at [vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:542]



      4 MagentoFrameworkDBAdapterPdoMysql#000000006e030ae800000000689c3fe1#->_query('SELECT `inventor...', array()) called at [vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:615]



      5 MagentoFrameworkDBAdapterPdoMysql#000000006e030ae800000000689c3fe1#->query(&MagentoFrameworkDBSelect#000000006e03020b00000000689c3fe1#, array()) called at [vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php:756]



      6 MagentoFrameworkDBAdapterPdoMysql[Zend_Db_Adapter_Abstract]#000000006e030ae800000000689c3fe1#->fetchRow(&MagentoFrameworkDBSelect#000000006e03020b00000000689c3fe1#) called at [vendor/magento/module-inventory-indexer/Model/ResourceModel/GetStockItemData.php:63]



      7 MagentoInventoryIndexerModelResourceModelGetStockItemData#000000006e030f3a00000000689c3fe1#->execute('P00AA40', 1) called at [vendor/magento/module-inventory-sales/Model/GetProductSalableQty.php:75]



      8 MagentoInventorySalesModelGetProductSalableQty#000000006e03021800000000689c3fe1#->execute('P00AA40', 1) called at [vendor/magento/module-inventory-sales-frontend-ui/Plugin/Block/Stockqty/AbstractStockqtyPlugin.php:80]



      9 MagentoInventorySalesFrontendUiPluginBlockStockqtyAbstractStockqtyPlugin#000000006e03020a00000000689c3fe1#->aroundIsMsgVisible(&MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor#000000006e030ce500000000689c3fe1#, &Closure#000000006e03021e00000000689c3fe1#) called at [vendor/magento/framework/Interception/Interceptor.php:135]



      10 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor#000000006e030ce500000000689c3fe1#->MagentoFrameworkInterception{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]



      11 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor#000000006e030ce500000000689c3fe1#->___callPlugins('isMsgVisible', array(), NULL) called at [generated/code/Magento/CatalogInventory/Block/Stockqty/DefaultStockqty/Interceptor.php:26]



      12 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor#000000006e030ce500000000689c3fe1#->isMsgVisible() called at [vendor/magento/module-catalog-inventory/Block/Stockqty/DefaultStockqty.php:28]



      13 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor[MagentoCatalogInventoryBlockStockqtyDefaultStockqty]#000000006e030ce500000000689c3fe1#->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:668]



      14 MagentoCatalogInventoryBlockStockqtyDefaultStockqtyInterceptor[MagentoFrameworkViewElementAbstractBlock]#000000006e030ce500000000689c3fe1#->toHtml() called at [vendor/magento/framework/View/Layout.php:557]



      15 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderBlock('product.info.sim...') called at [vendor/magento/framework/View/Layout.php:533]



      16 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.sim...') called at [vendor/magento/framework/View/Layout.php:488]



      17 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.sim...', false) called at [vendor/magento/framework/View/Layout.php:585]



      18 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.sim...', false) called at [vendor/magento/framework/View/Layout.php:535]



      19 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.sim...') called at [vendor/magento/framework/View/Layout.php:488]



      20 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.sim...', false) called at [vendor/magento/framework/View/Layout.php:585]



      21 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.typ...', false) called at [vendor/magento/framework/View/Layout.php:535]



      22 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.typ...') called at [vendor/magento/framework/View/Layout.php:488]



      23 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.typ...', false) called at [vendor/magento/framework/View/Layout.php:585]



      24 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.sto...', false) called at [vendor/magento/framework/View/Layout.php:535]



      25 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.sto...') called at [vendor/magento/framework/View/Layout.php:488]



      26 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.sto...', false) called at [vendor/magento/framework/View/Layout.php:585]



      27 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.pri...', false) called at [vendor/magento/framework/View/Layout.php:535]



      28 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.pri...') called at [vendor/magento/framework/View/Layout.php:488]



      29 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.pri...', false) called at [vendor/magento/framework/View/Layout.php:585]



      30 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('product.info.mai...', false) called at [vendor/magento/framework/View/Layout.php:535]



      31 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('product.info.mai...') called at [vendor/magento/framework/View/Layout.php:488]



      32 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('product.info.mai...', false) called at [vendor/magento/framework/View/Layout.php:585]



      33 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('content', false) called at [vendor/magento/framework/View/Layout.php:535]



      34 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('content') called at [vendor/magento/framework/View/Layout.php:488]



      35 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('content', false) called at [vendor/magento/framework/View/Layout.php:585]



      36 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('main', false) called at [vendor/magento/framework/View/Layout.php:535]



      37 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('main') called at [vendor/magento/framework/View/Layout.php:488]



      38 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('main', false) called at [vendor/magento/framework/View/Layout.php:585]



      39 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('columns', false) called at [vendor/magento/framework/View/Layout.php:535]



      40 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('columns') called at [vendor/magento/framework/View/Layout.php:488]



      41 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('columns', false) called at [vendor/magento/framework/View/Layout.php:585]



      42 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('main.content', false) called at [vendor/magento/framework/View/Layout.php:535]



      43 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('main.content') called at [vendor/magento/framework/View/Layout.php:488]



      44 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('main.content', false) called at [vendor/magento/framework/View/Layout.php:585]



      45 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:535]



      46 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('page.wrapper') called at [vendor/magento/framework/View/Layout.php:488]



      47 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:585]



      48 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->_renderContainer('root', false) called at [vendor/magento/framework/View/Layout.php:535]



      49 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderNonCachedElement('root') called at [vendor/magento/framework/View/Layout.php:488]



      50 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->renderElement('root') called at [vendor/magento/framework/View/Layout.php:954]



      51 MagentoFrameworkViewLayoutInterceptor[MagentoFrameworkViewLayout]#000000006e030bda00000000689c3fe1#->getOutput() called at [vendor/magento/framework/Interception/Interceptor.php:58]



      52 MagentoFrameworkViewLayoutInterceptor#000000006e030bda00000000689c3fe1#->___callParent('getOutput', array()) called at [vendor/magento/framework/Interception/Interceptor.php:138]



      53 MagentoFrameworkViewLayoutInterceptor#000000006e030bda00000000689c3fe1#->MagentoFrameworkInterception{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]



      54 MagentoFrameworkViewLayoutInterceptor#000000006e030bda00000000689c3fe1#->___callPlugins('getOutput', array(), array(array('layout-model-cac...'))) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:39]



      55 MagentoFrameworkViewLayoutInterceptor#000000006e030bda00000000689c3fe1#->getOutput() called at [vendor/magento/framework/View/Result/Page.php:258]



      56 MagentoFrameworkViewResultPageInterceptor[MagentoFrameworkViewResultPage]#000000006e03098000000000689c3fe1#->render(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#) called at [vendor/magento/framework/View/Result/Layout.php:171]



      57 MagentoFrameworkViewResultPageInterceptor[MagentoFrameworkViewResultLayout]#000000006e03098000000000689c3fe1#->renderResult(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#) called at [vendor/magento/framework/Interception/Interceptor.php:58]



      58 MagentoFrameworkViewResultPageInterceptor#000000006e03098000000000689c3fe1#->___callParent('renderResult', array(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#)) called at [vendor/magento/framework/Interception/Interceptor.php:138]



      59 MagentoFrameworkViewResultPageInterceptor#000000006e03098000000000689c3fe1#->MagentoFrameworkInterception{closure}(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#) called at [vendor/magento/framework/Interception/Interceptor.php:153]



      60 MagentoFrameworkViewResultPageInterceptor#000000006e03098000000000689c3fe1#->___callPlugins('renderResult', array(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#), array(array('result-messages', 'result-builtin-c...', 'result-varnish-c...'))) called at [generated/code/Magento/Framework/View/Result/Page/Interceptor.php:26]



      61 MagentoFrameworkViewResultPageInterceptor#000000006e03098000000000689c3fe1#->renderResult(&MagentoFrameworkAppResponseHttpInterceptor#000000006e030aa000000000689c3fe1#) called at [vendor/magento/framework/App/Http.php:139]



      62 MagentoFrameworkAppHttpInterceptor[MagentoFrameworkAppHttp]#000000006e030aa200000000689c3fe1#->launch() called at [vendor/magento/framework/App/Bootstrap.php:258]



      63 MagentoFrameworkAppBootstrap#000000006e030a0d00000000689c3fe1#->run(&MagentoFrameworkAppHttpInterceptor#000000006e030aa200000000689c3fe1#) called at [index.php:39]



      What could be the reason for this? I'm using Luma theme and disabled all 3rd part modules.







      magento2.3.0





      share







      New contributor




      Chathura is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Chathura is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Chathura is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 1 min ago









      ChathuraChathura

      1




      1




      New contributor




      Chathura is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Chathura is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Chathura is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          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
          });


          }
          });






          Chathura is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f258457%2fmagento-2-3-0-performance-issue%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








          Chathura is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Chathura is a new contributor. Be nice, and check out our Code of Conduct.













          Chathura is a new contributor. Be nice, and check out our Code of Conduct.












          Chathura is a new contributor. Be nice, and check out our Code of Conduct.
















          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%2f258457%2fmagento-2-3-0-performance-issue%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

          Magento 2 controller redirect on button click in phtml file

          Polycentropodidae