espen / balder

Balder - Open source Ruby on Rails photo gallery
http://balderapp.com
MIT License
263 stars 97 forks source link

please add to documentation - disable setup after creation of first user #42

Open zachvenice opened 10 years ago

zachvenice commented 10 years ago

please add this to documentation for the app:

disable setup once you have created the first user with admin permissions!

i used your code to create a site and the user base grew very large. the line of code in the application controller that checks if there are any users: 'User.all.length'

created a huge lag on each page load.

so, you might want to document that this should be disabled after you've set up your administrator user.

espen commented 10 years ago

Thanks, I'll look into a better solution.