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

Fixes #38171 - Add index on audit to speed up action queries and sorting for latest records #10426

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

sjha4
Copy link
Contributor

@sjha4 sjha4 commented Jan 29, 2025

Add an index to audit table that includes :auditable_type, :auditable_id, :action for quicker querying for particular action on a resource. Also added :created_at to make sorting quicker when we need to check newer records.
The index is specifically helpful for a usecase we have around fetching the latest sync audit record.

Katello/katello#11294

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant