Skip to content

Conversation

@EeroAnt
Copy link
Collaborator

@EeroAnt EeroAnt commented Nov 21, 2024

Switched prisma.findMany() to prisma.rawSQL-Left Join. Local GET crosssearch calls went from ~10s to ~3s.

Also expanded tests for this GET call to check that user rights are handled correctly, expanded testdb for better cross search testing, made necessary changes to existing tests to match these updates, added a placeholder unit test, because I removed the existing ones as they tested a thing that didn't make it.

EeroAnt and others added 30 commits November 15, 2024 09:19
…ter-change initiated

Co-authored-by: Aaro <aaro.koivukangas@gmail.com>
Co-authored-by: Aaro Koivukangas<aaro.koivukangas@gmail.com>
Co-authored-by: Aaro Koivukangas<aaro.koivukangas@gmail.com>
…ter-change initiated

Co-authored-by: Aaro <aaro.koivukangas@gmail.com>
Co-authored-by: Aaro Koivukangas<aaro.koivukangas@gmail.com>
Copy link
Collaborator

@iritmaximus iritmaximus left a comment

Choose a reason for hiding this comment

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

LGTM

@iritmaximus iritmaximus merged commit 1566b9a into main Nov 21, 2024
4 checks passed
@iritmaximus iritmaximus deleted the cross-search-optimization branch November 21, 2024 13:30
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.

3 participants