LemmyNet / lemmy

🐀 A link aggregator and forum for the fediverse
https://join-lemmy.org
GNU Affero General Public License v3.0
13.3k stars 882 forks source link

Disable synchronous_commit database option for some queries #5206

Open dullbananas opened 1 week ago

dullbananas commented 1 week ago

Getting an Ok result for changes that end up not being flushed to disk is completely okay in scheduled tasks, so this can be done to improve performance.

The option will need to have the previous value again when the connection is recycled.