Why is this "hacky"? I've long wondered why databases need to be on filesystems, other than simply convenience. If you think about it, a filesystem is, itself, basically a database (not a relational one of course). So it seems like you could improve performance a lot by eliminating the filesystem layer and going straight to direct disk access.
Also, how this would be done would probably change depending on whether you're using a spinning-rust HD or an SSD, or a RAID array.
Also, how this would be done would probably change depending on whether you're using a spinning-rust HD or an SSD, or a RAID array.