YotpoLtd / magento2-module-yotpo-reviews

Open Software License 3.0
23 stars 38 forks source link

\Yotpo\Yotpo\Model\Richsnippet::getSnippetByProductIdAndStoreId does not use an index #284

Open steven-hoffman-jomashop opened 2 years ago

steven-hoffman-jomashop commented 2 years ago

The lookup is by store_id and product_id. The only index on the table is the primary key. There should be an index on store_id,product_id so that the lookup should be fast. (There is no need to scan the entire table).