Enqueue for reindexing after commit

Description

Now that the PR for has added the gem after_commit_everywhere, we can reduce the number of stale data issues in Resque by having IndexQueue always queue items for reindexing after commit, to ensure that Resque won't be trying to look up information from the database before it's been committed.

In cases where the existing reindex callbacks don't need to check what changes were made to a record (e.g. via saved_change_to_x? and previous_changes, etc.) we can also change the callbacks from after_update to after_commit.

Similar to AO3-5940, which addresses the same issue for mailers.

How to test: TBD.

Assignee

Unassigned

Reporter

redsummernight

Roadmap

Bookmarks
Pseuds
Search
Works

Priority

High

Affects versions

Fix versions

None

Components

BackEnd

Difficulty

Medium

Milestone

Internal 0.9
Configure