You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently returning thousands of records with string instances as keys. Seems wasteful.
[12]pry(main)> DB.execute("select * from politicians")[0].keys.first.object_id# is String: "name"=>70139106472200[13]pry(main)> DB.execute("select * from politicians")[1].keys.first.object_id# is String: "name"=>70139116927900
The text was updated successfully, but these errors were encountered:
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
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
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
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
Currently returning thousands of records with string instances as keys. Seems wasteful.
The text was updated successfully, but these errors were encountered: