3 ms·
What happens to performance if you store a database inside this filesystem?
by amelius 7y ago
What happens to performance if you store a database inside this filesystem?
- matharmin 7y agoJust speculating, but the database is mostly used for the metadata. If implemented well, there will be very little overhead for reading and writing to a file, especially if the size stays constant. Some databases rely on specific low level file system operations, which may not be optimised in a niche filesystem. But in theory there shouldn't be anything preventing it from being optimized, and the database from running at close to maximum performance.
- amelius 7y agoOk, but if you store only metadata then you lose the advantage of running all the file operations inside a transaction. Then again, posix has no notion of transactions ...
- Someone 7y ago”there will be very little overhead for reading and writing to a file, especially if the size stays constant” Not if you add primary keys, indexes, ‘on update’ clauses, etc.
- rhacker 7y agoDocker -> Mysql Image -> This DB Filesystem -> Separate docker images that mount the DBFS over other Mysql image. Should be quite fun for a lot of people.