Rails 7 adds setting for enumerating columns in select statements | BigBinary Blog

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 #bigbinary #blog https://www.rubyonrails.ba/single/rails-7-adds-setting-for-enumerating-columns-in-select-statements-bigbinary-blog

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles