Rails 7 adds setting for enumerating columns in select statements | BigBinary Blog
02-Nov-2021 1390
Rails 7 has introduced a new setting called enumerate_columns_in_select_statements for enumerating columns in activerecord select query statements by which we can avoid common ActiveRecord::PreparedStatementCacheExpired errors.Rails uses prepared statements for database query efficiency. When prepared statements are being used, the repeated queries will be cached based on the prepared statement query plan at Postgres database level. This cached value will become invalid when the returned results are changed.
Rails 7 adds setting for enumerating columns in select statements | BigBinary Blog #ruby #rubydeveloper #rubyonrails #Rails #setting #enumerating #columns #select #statements #BigBinary #bigbinary #blog https://rubyonrails.ba/link/rails-7-adds-setting-for-enumerating-columns-in-select-statements-bigbinary-blog