No commit activity in last 3 years
No release in over 3 years
Denormalize ActiveRecord fields for performance reasons
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.8.4
>= 0
>= 0
>= 0
~> 3.12
~> 2.8.0

Runtime

 Project Readme

denormalize-field¶ ↑

Postgres only as of 0.2

Denormalizes fields in ActiveRecord models in order to avoid SQL joins and hydrating Ruby Objects to obtain a simple fields.

Usage¶ ↑

class Post < ActiveRecord::Base
  belongs_to :category
  denormalizes :category => :name
end

category = Category.create(:name => "News")
post     = Post.create(:category => category)

post.category_name # "News"  (you have to create the migration to add Post#category_name manually)