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

✨ Apply queue filter on database query when fetching subjects #3280

Merged
merged 4 commits into from
Dec 23, 2024

Conversation

foysalit
Copy link
Contributor

@foysalit foysalit commented Dec 20, 2024

Up until now, we have been doing subject to queue mapping entirely on the client which is super inefficient and results in a LOT of load on the server and the client. This PR simply moves the same client side logic into the DB query.

This is the client side implementation of the queue allocation logic https://github.com/bluesky-social/ozone/blob/main/app/reports/page-content.tsx#L435

@foysalit foysalit requested a review from devinivy December 20, 2024 18:30
@foysalit foysalit merged commit 9ea2cce into main Dec 23, 2024
10 checks passed
@foysalit foysalit deleted the ozone-queue-based-query branch December 23, 2024 13:08
@github-actions github-actions bot mentioned this pull request Dec 23, 2024
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.

2 participants