Skip to content

Conversation

@tenderlove
Copy link
Member

When we get column names back from the database, it's very common to always return the same strings. This patch uses Ruby's "interned string" API so that we're always getting the same string objects back from the database.

Fixes: #155

@tenderlove tenderlove force-pushed the intern-column-names branch 2 times, most recently from c503ba4 to bb63f86 Compare January 24, 2024 22:40
@tenderlove tenderlove added this to the 2.0.0 milestone Jan 24, 2024
When we get column names back from the database, it's very common to
always return the same strings. This patch uses Ruby's "interned string"
API so that we're always getting the same string objects back from the database.

Fixes: #155
@flavorjones flavorjones merged commit ea0cb80 into main Jan 27, 2024
@flavorjones flavorjones deleted the intern-column-names branch January 27, 2024 16:12
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.

return symbolized keys when using results_as_hash = true

3 participants