diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-22 04:56:05 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-22 04:56:05 +0000 |
commit | 5bd0e8c6035e5d175c6c609813e844ae3a77a055 (patch) | |
tree | 22f04c756f0a3ed1360d4a901c379b7be83f7129 /lib/puppet/rails/resource.rb | |
parent | 4c357d84960bc3cbaf26db8d9a94eccbf95f9a34 (diff) | |
download | puppet-5bd0e8c6035e5d175c6c609813e844ae3a77a055.tar.gz puppet-5bd0e8c6035e5d175c6c609813e844ae3a77a055.tar.xz puppet-5bd0e8c6035e5d175c6c609813e844ae3a77a055.zip |
Rails is now significantly faster. I refactored all of the queries; they are mostly reduced to three queries, each of which is relatively fast, although there are still a ton of file- and tag-related queries that I cannot find the source of. Note that this speedup requires indexes, which will only get added if you start puppetmasterd with --dbmigrate (although you cannot always start with that, as there is an error in the init code). I expect that the indexes will not help unless you forcibly reindex your database, but after that you should see significant speed improvements.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2344 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/rails/resource.rb')
-rw-r--r-- | lib/puppet/rails/resource.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/rails/resource.rb b/lib/puppet/rails/resource.rb index 6656c2450..c3bf8c38a 100644 --- a/lib/puppet/rails/resource.rb +++ b/lib/puppet/rails/resource.rb @@ -47,7 +47,7 @@ class Puppet::Rails::Resource < ActiveRecord::Base end def ref - "%s[%s]" % [self[:restype], self[:title]] + "%s[%s]" % [self[:restype].capitalize, self[:title]] end # Convert our object to a resource. Do not retain whether the object |