sdinteractive / SomethingDigital_EnterpriseIndexPerf

Magento EE index performance optimization
MIT License
8 stars 3 forks source link

Reset index metadata if version_id is wrong #19

Open toddbc opened 8 years ago

toddbc commented 8 years ago

On some sites, we've seen issues because someone truncated a changelog table.

In _getChangedIdsSelect, we should probably reset things if the metadata shows a version_id that is greater than the max version_id. This way it can self-recover at the very least (it should also log.)