scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
833 stars 90 forks source link

Saving takes a long time #84

Closed loleg closed 8 years ago

loleg commented 8 years ago

Right now it takes at least 5, sometimes 10 seconds to save a single page on my main instance. There are a few dozen pages and the database has grown to over 900 objects. I've upgraded to the latest master branch, and also tried optimising the Git database like this:

git fsck --full
git gc
git repack

This is a custom build running in Docker with Postgres and ES in separate images, the git folder on the host filesystem. The server spec is 2x2.5GHz/4GB/SSD. It was all quite snappy at the beginning.

loleg commented 8 years ago

I'm not completely sure whether it was the git commands that fixed it or rebuilding my docker image, but saving is back to normal now. That said I still think disabling the Publish button on click makes sense :)