activerecord-session_store
activerecord-session_store copied to clipboard
Optimization: prevent empty COMMIT calls
Prevents BEGIN COMMIT
empty database calls after each rails request if the session did not change.
Don't know why the write_session
is called in our app every request, but monkey patching using this logic prevents an empty write at the end of each request.
Can this be merged?
any update on this? this seems to be useful.
Also the store seems to record empty session on every request without valid session. Is there a way to optimise it other than overriding save
?