[katello-devel] Faster demoing without production!

Justin Sherrill jsherril at redhat.com
Mon Jun 25 15:01:43 UTC 2012


On 06/25/2012 10:50 AM, Jason Rist wrote:
> On Mon 25 Jun 2012 08:46:04 AM MDT, Justin Sherrill wrote:
>>
>> Ever demoed a web UI action and had to wait wait wait?
>> Want to speed things up without the mess of converting to production 
>> and generating assets?
>> Well I've got the configuration change for you, simply follow this 
>> two step plan and you'll be on your way to demoing in development 
>> mode so fast viewers will think you've got a mainframe!
>>
>> 1. Change config.cache_classes = true in 
>> src/config/environments/development.rb
>> 2. Restart your thin server.
>>
>> Thats it!
>>
>> Lets compare some time differences shall we:
>>
>> Systems page:
>> Before:7490ms After: 2541 ms
>>
>> Systems items:
>> Before: 4655ms After: 695 ms
>>
>> Providers page:
>> Before: 7084ms After: 1743 ms
>>
>> Providers items:
>> Before: 3613ms After: 121 ms
>>
>>
>> Its that easy!
>>
>>
>> _______________________________________________
>> katello-devel mailing list
>> katello-devel at redhat.com
>> https://www.redhat.com/mailman/listinfo/katello-devel
>
> Would changing   config.action_controller.perform_caching to true also 
> help? If we're caching classes I'm assuming this is only for demo 
> purposes if you're working on classes...
>
> -J
>
Looks like for the items actions its shaving off about 50 ms  and on the 
main index pages about 400 ms.  So feel free for some extra speed.




More information about the katello-devel mailing list