activerecord-session_store icon indicating copy to clipboard operation
activerecord-session_store copied to clipboard

Optimization: prevent empty COMMIT calls

Open chaffeqa opened this issue 3 years ago • 2 comments

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.

chaffeqa avatar Oct 24 '20 16:10 chaffeqa

Can this be merged?

h0jeZvgoxFepBQ2C avatar Oct 17 '22 15:10 h0jeZvgoxFepBQ2C

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?

preethi29 avatar Aug 23 '23 14:08 preethi29