Relative Content

Tag Archive for cdatabasedata-structuresembeddedfilesystems

Why can’t filesystems provide direct access to the physical sector allocations (extents/groups) of a file?

I’m working on a database project where I need to write to both a data.bin file (for storing data) and a metadata file. I’m running into an issue with the overhead caused by filesystem metadata updates, especially when using undo logs. Every write operation essentially doubles, leading to 8x writes for a single data update (2 writes for data and meta multiplied by 2 writes for undo logs, multiplied by 2 due to filesystem).