Hi Håvard
Enabling by default sounds good to me.
In many cases, write performance of disks should nowadays be better anyway,
and one would still be able to disable it when not needed…
Best regards
Bart
From: rdf4j-dev-bounces@xxxxxxxxxxx <rdf4j-dev-bounces@xxxxxxxxxxx>
On Behalf Of Håvard Ottestad
Sent: maandag 20 april 2020 17:13
To: rdf4j developer discussions <rdf4j-dev@xxxxxxxxxxx>
Subject: [rdf4j-dev] NativeStore and file sync
Hi,
While looking at the NativeStore I've noticed that there is a feature to enable forced sync for file writes. From my understanding this would be used to force the underlying storage to flush writes to disk in the case that it is still only
in a write cache in memory.
This guarantee is particularly useful for a database, since people tend to trust them more in the face of failures (power failures in this case).
Forced sync is currently disabled by default.
I'm thinking we should enable it by default. Even though this will degrade performance.
I would also like to introduce a bulk loading method that would use the optimal settings for loading data (including turning off forced sync).
What do people think about this?