Skip to content

Sessions in DB #338

Answered by gi0baro
KellerKev asked this question in Q&A
Jun 1, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@Kkeller83 No, there's no provided facility to store sessions in DB.

This is actually a design decision, as in my experience sessions cause too much load on relational databases, and in general I strongly suggest not to do that.

It would be theoretically still be possible writing a custom session Pipe for that, subclassing BackendStoredSessionPipe (https://github.com/emmett-framework/emmett/blob/master/emmett/sessions.py#L130)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KellerKev
Comment options

Answer selected by KellerKev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants