Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Discourse running so slowly?

I'm not sure which link in the chain is causing the problem. I just finished setting up Discourse on Vagrant on a Windows machine. Everything seems to be working fine, except that it took a good 86000ms (a minute and a half!) for Discourse to load in the browser. Something tells me that it's not supposed to be that slow. Where can I look for problems that might be causing this?

like image 945
Jo Sprague Avatar asked Nov 03 '22 01:11

Jo Sprague


1 Answers

This is the most relevant discussion on the forum.

http://meta.discourse.org/t/development-mode-super-slow/2179

Make sure you have allocated enough resources in the virtual machine.

You can also try this in the development configs

#config/environments/development.rb

config.cache_classes = true

This made a huge difference to my render time. From 8 minutes to 30 seconds. Still a bit slow though.

like image 98
nverba Avatar answered Nov 10 '22 18:11

nverba