News for hackers. Stuff that matters.
Re:Do you even need a database? by gavinray on Wednesday April 15, 2026 @03:57PM (#47784402)

  > Doing atomic writes is extremely fragile if you are just on top of the filesystem.
This is not true, at least in Linux.

  pwritev2(fd, iov, iovcnt, offset, RWF_ATOMIC);
The requirements being that the write must be block-aligned and no larger than the underlying FS's guaranteed atomic write size
Re:Do you even need a database? by tclancy on Wednesday April 15, 2026 @04:56PM (#47785104)
Sure, but how many people using files as a data store even know to worry about atomicity?
Re:Do you even need a database? by sgarland on Wednesday April 15, 2026 @05:08PM (#47785252)
They will learn eventually, and then they’ll get to write a blogpost describing something that any sysadmin or kernel dev could’ve told them. Win-win!