The question:
In Magento 2.3 EE
, entity_id is missing in EAV tables, instead row_id
is available
Please explain the difference between row_id and entity_id and the
removal of entity_id in EAV tables
The Solutions:
Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.
Method 1
Time Dimension
row_id
is used to facilitate the Time Dimension for entities that support it. By having this additional identifier, it allows an entity (product, category, sales rule, etc..) to be stored more than once in their respective MySQL table but expressing different values for the same entity. These altered versions of the same entity are created using Magento’s “Content Staging” feature.
Content Staging
You can schedule changes for sales rules, category, products, etc. to happen during a given time frame or permanently. row_id
is one of the key pieces to allowing this to happen as stated above, allowing those same entities to have different values at different points in time.
Example: You want to change a product name for a month. You can schedule that change using the content staging by specifying a different product name for the date range needed. Behind the scenes, Magento will utilize that row_id
(among other meta data to support this feature) to store the scheduled change. If a customer visits the site during the time the product name was scheduled to be changed, Magento will end up loading the row_id
corresponding to how the product was scheduled to “look” at that point in time.
Documentation
Magento Docs – Content Staging
Magento DevDocs – Magento_CatalogStaging module
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0