magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.5k stars 9.3k forks source link

[Perf] Add index on type_id column for catalog_product_entity table #37431

Open Nuranto opened 1 year ago

Nuranto commented 1 year ago

Description

I may be wrong, but I think an index on type_id (catalog_product_entity table) would be usefull. That's a column quite oftenly filtered. Sometimes by core (search for ToFilter('type_id' in Magento's code), and often by third part extensions.

This could make a significative difference on some use cases when having huge catalog.

Also, I'm wondering why there is an index on attribute_set_id, instead of a FK.

Expected behavior

Benefits

No response

Additional information

No response

Release note

No response

m2-assistant[bot] commented 1 year ago

Hi @Nuranto. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

QuentinScDS commented 6 months ago

nothing ?