MinatoTW
PPrisma
•Created by MinatoTW on 1/19/2025 in #help-and-questions
Check array contains
Hello, what's the correct way to check if an array doesn't have a value? I'm doing this right now but it's not working:
Both are Int[] arrays and are empty right now, so this should work I think
2 replies
PPrisma
•Created by MinatoTW on 12/31/2024 in #help-and-questions
Query Performance
Hello, I wonder if there's any way to disable the extra SELECT queries made during updates.
For example: This is the query I'm using to update a player.
I see the following queries in the debug log:
Why is it making all those extra SELECT queries rather than just updating? I'm worried it might impact performance as we scale.
6 replies
PPrisma
•Created by MinatoTW on 12/12/2024 in #help-and-questions
field reference help
hello I have models like this
how do I select player.monsters where id is in player.team[]
I tried
but that's throwing type errors
6 replies