Skip to content

Conversation

@chaffeqa
Copy link

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.

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.
Copy link
Member

@sikachu sikachu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR. Please see my inline comment below.

@chaffeqa chaffeqa requested a review from sikachu May 3, 2021 16:10
@h0jeZvgoxFepBQ2C
Copy link

Can this be merged?

@preethi29
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants