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

Ability to explicitly provide ID prefix when deleting by ID. #982

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

heaven
Copy link
Contributor

@heaven heaven commented Jun 18, 2020

Sometimes ID prefix could be known and explicitly provided to the remove_by_id in this format "USERDATA!User".

Example use-case – indexing queues, when synchronization with Solr happens in background. Record being removed from the database and a corresponding event created in the queue with record_class_name, record_id, type of the operation, and ID prefix, which is calculated before removing the record.

Sometimes ID prefix could be known and explicitly provided to the delete_by_id in this format "USERDATA!User".

Example use-case – indexing queues, when synchronization with Solr happens in background. Record being removed from the database and a corresponding event created in the queue with record_class_name, record_id, type of the operation, and ID prefix, which is calculated before removing the record.
@serggl serggl merged commit 1cb8ae2 into sunspot:master Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants