-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Added cron to remove old index events for manual indexers #2474
Added cron to remove old index events for manual indexers #2474
Conversation
Is the introduction of a cronjob a reason to bump the version number of the module 🤔? |
I'd bump only if there's a new install script to modify the database |
Fair point after all its one of the main reason to have versions of OpenMage modules to begin with. |
14f0afb
to
3b7af67
Compare
I think this one should be merged |
we could merge because it's 1 green + 2 gray but I notice now that it's the wrong branch, can't merge on 1.9.4.x, we've to rebase on main |
The base branch was changed.
c17e022
to
dd5bdf9
Compare
I'm merging because it was already approved (1green + 2gray checks) but I had to rebase (checked and the diff is exactly the same) |
Description (*)
As discussed in #199 I created a new PR which tackles the problem from another direction: Instead of completely omitting to write the index event to the database I created a cron that will delete these events if they are not processed.
This way we maintain BC and avoid filling the DB with garbage that might not be needed.
Related Pull Requests
#199
Manual testing scenarios (*)
Questions or comments
I would gladly discuss the introduction of
Mage_Index_Model_Observer::OLD_INDEX_EVENT_THRESHOLD_SECONDS
, in my opinion this is a quick-and-dirty way to start this PR but I do not expect it to be in the final merge.I would prefer a config but Mage_Index does not have a system.xml - so where would be good place for it?
If we add a config: what should be the default value?
Is one day a sufficient threshold for e.g. the Hackathon_AsyncIndex (on my workplace we index every day even if we have over 100.000 products and thousand categories)?
Contribution checklist (*)