Skip to content

Slowness when creating / updating objects #556

Closed Answered by MrTrustor
MrTrustor asked this question in General
Discussion options

You must be logged in to vote

I reduced the number of gunicorn workers to 2, but that didn't have much effect. I noticed that neither gramps nor celery looked like they used much CPU at all during those 15s, so I investigating my database setup.

After a few oopsies on my part that have nothing to do with gramps (involving data loss and restoration...), I changed a couple of settings of my PostgreSQL database. Specifically:

  • wal_level from replica to minimal
  • synchronous_commit from on to off

That sped up significantly my setup, and now adding entities to my tree takes less than half the time (5 to 7s). While still not ideal, this is much more usable than previously so for the time being I'm not going to investigate m…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MrTrustor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants