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

chore: fix performance of evaluation results table #3 #490

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

geclos
Copy link
Collaborator

@geclos geclos commented Oct 22, 2024

The total count is just too much for the db. We have to remove it and resort to dumber pagination in favour of better performance.

@geclos geclos force-pushed the feature/remove_total_count_from_eval_results branch from 105f37a to 4c57e1b Compare October 22, 2024 11:19
The total count is just too much for the db. We have to remove it and
resort to dumber pagination in favour of better performance.
@geclos geclos force-pushed the feature/remove_total_count_from_eval_results branch from 4c57e1b to 0f194bc Compare October 22, 2024 11:22

return Result.ok(rows)
}

export async function computeEvaluationResultsByDocumentContentCount(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also remove from logs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm not really if it's just a count of document logs filtered by documentuuid and commit it should be fast, what's hurting this particular count is the multiples inner joins required

@geclos geclos merged commit 861414b into main Oct 22, 2024
3 checks passed
@geclos geclos deleted the feature/remove_total_count_from_eval_results branch October 22, 2024 11:42
@github-actions github-actions bot locked and limited conversation to collaborators Oct 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants