Caching a user session with multiple relations (drizzle-orm postgresql)
Hello,
I was wondering what would be the best way to handle this problem. I have a user schema and relations made in drizzle like this:
To get these values, I used a customSession plugin like this:
The problem is that, as I could find in other posts, customSession isnt cached by default and in this case I am really only joining tables together based on relations declared above. So I was wondering if there is any recommended approach for that
1 Reply
in the future we hope to have customSession caching to work, but in the mean time you won't be able to do much for now