Efficient use of skunk sessions #607
Closed
wvandermerwe
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently the session pool is passed to the methods implementing the query/command logic. After doing some reading in the skunk Discord channel I found a few discussions mentioning that this would be more efficient:
From what I understand this would mean "using" the dbAccessLayer on each request inside the route, so I comes down to what is more costly, inefficient session reuse or repeatedly allocating new objects? I'm not sure which one would be the better tradeoff to make in a "typical" web backend.
https://discord.com/channels/632277896739946517/839844929877704785/955838009872384020
Beta Was this translation helpful? Give feedback.
All reactions