Activerecord

ActiveRecord::QueryMethods#select adds support for hash values in Rails 7.1

ActiveRecord::QueryMethods#select adds support for hash values in Rails 7.1

How to write SQL queries in Rails?

ActiveRecord in Rails helps developers to simplify the process of interacting with databases.

ActiveRecord::Calculations will now use column-based type casting

Rails 7 now harmonizes results of ActiveRecord::Calculations.average by applying column-based typecasting. Now, floating-point number columns will be aggregated as Float.

Rails ActiveRecord::Relation#pick now uses already loaded results

Rails ActiveRecord::Relation#pick now uses already loaded results instead of making a new query everytime.

Improving Database performance and overcoming common N+1 issues in Active Record using includes, preload, eager_load, pluck, select, exists?

Improving Database performance and overcoming common N+1 issues in Active Record using includes, preload, eager_load, pluck, select, exists? and reducing number of overall queries

Using bind parameters in Active Record for SQL security and performance

Using bind parameters in Active Record for improved SQL security and performance