Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set correct primary keys for temporary tables in product flat indexer #8589

Merged
merged 3 commits into from
Mar 9, 2017

Conversation

jarnooravainen
Copy link
Contributor

@jarnooravainen jarnooravainen commented Feb 17, 2017

Set 'row_id' as primary key because joins are made on it. Without this change product flat reindex can get practically stuck while making insert-from-select query in Magento\Catalog\Model\Indexer\Product\Flat\FlatTableBuilder::_fillTemporaryFlatTable.

Set 'row_id' as primary key because joins are made on it. Without this change product flat reindex can get practically stuck while making insert-from-select query in Magento\Catalog\Model\Indexer\Product\Flat\FlatTableBuilder::_fillTemporaryFlatTable.
@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Feb 17, 2017

CLA assistant check
All committers have signed the CLA.

@jarnooravainen
Copy link
Contributor Author

jarnooravainen commented Feb 17, 2017

Fixed this PR to be compatible with both CE and EE, although seems that CE is not affected by this issue. Field to be set as primary key is retrieved from the metadata, so for CE field will be entity_id and for EE row_id.

Fix to be compatible with both CE and EE.
Fix too long line.
@maghamed maghamed self-requested a review February 21, 2017 17:41
@maghamed maghamed self-assigned this Feb 21, 2017
@okorshenko okorshenko added this to the March 2017 milestone Mar 1, 2017
Copy link
Contributor

@maghamed maghamed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jarnooravainen That's a very good catch! Well Done!

@magento-team magento-team merged commit e114337 into magento:develop Mar 9, 2017
@vrann
Copy link
Contributor

vrann commented Mar 9, 2017

@jarnooravainen Thank you for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants