HomePhorge

Change the way the tags and params are handled in rails
f01882da6284Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Change the way the tags and params are handled in rails

The rationale behind this patch is that it takes a lots of time
to let rails unserialize the ParamValue and ResourceTag object
on each compilation, just to throw them away the second after.
The idea is to fetch directly (and batched host per host) the
parameters and tags from the database and then returns them as
hash.
This allows the no-modification case to takes at least 2 times
less than before.

Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>

Details

Provenance
Brice Figureau <brice-puppet@daysofwonder.com>Authored on
James Turnbull <james@lovedthanlost.net>Committed on Feb 6 2009, 11:54 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUb7ab54c7f094: Add methods to return hash instead of objects to params and tags
Branches
Unknown
Tags
Unknown

Event Timeline

James Turnbull <james@lovedthanlost.net> committed rPUf01882da6284: Change the way the tags and params are handled in rails (authored by Brice Figureau <brice-puppet@daysofwonder.com>).Feb 6 2009, 11:54 AM