Durability
You will see an option/argument call durability *durability appear a lot
in many option of ReQL. Because it’s so common and it’s very important, I
want to address it here. Durability accepts value of ‘soft’ or ‘hard’.
- soft
- means the writes will be acknowledge by server immdediately and data will be flushed to disk in background.
- hard
- The opposite of soft. The default behaviour is to acknowledge after data is written to disk. Therefore, when you don’t need the data to be consitent, such as writing a cache, or an important log, you should set durability to soft in order to increase speed