Skip to content

Conversation

skipkayhil
Copy link
Member

I'm working on removing queries in my application that should be going through the SchemaCache in production but currently are not. I found that the sessions table is being queried during runtime due to the reset_column_information when the class is loaded (which clears the SchemaCache for the sessions table).

This commit introduces a new configuration to disable the sessid column fallback (which is the source of the reset_column_information).

Since the session_id -> sessid fallback has been in place for twenty years, there may be an argument to just remove it, but this gem is very very stable so breaking changes should probably be held to an even higher threshold.

I'm working on removing queries in my application that should be going
through the SchemaCache in production but currently are not. I found
that the `sessions` table is being queried during runtime due to the
`reset_column_information` when the class is loaded (which clears the
SchemaCache for the `sessions` table).

This commit introduces a new configuration to disable the `sessid`
column fallback (which is the source of the `reset_column_information`).

Since the `session_id` -> `sessid` fallback has been in place for
[twenty years][1], there may be an argument to just remove it, but this
gem is very very stable so breaking changes should probably be held to
an even higher threshold.

[1]: rails/rails@452442d
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.

1 participant