It makes a lot of sense to turn cache table into UNLOGGED TABLE for postgresql. Or provide an option to do so.
UNLOGGED TABLES turn off WAL completely. Writting into table gets a significant boost and data sizes will be smaller and will require less vacuum.
But data is easily lost, can't be synched with replicas or will not be backed. All of these drawbacks don't seem like a big problem if youre dealing with cache.
https://www.crunchydata.com/blog/postgresl-unlogged-tables
binlog in mysql functions the same, but it is not a table-specific setting.
Should we implement support for UNLOGGED TABLES? It's easy to turn on or off, at least in PG.
It makes a lot of sense to turn cache table into UNLOGGED TABLE for postgresql. Or provide an option to do so.
UNLOGGED TABLES turn off WAL completely. Writting into table gets a significant boost and data sizes will be smaller and will require less vacuum.
But data is easily lost, can't be synched with replicas or will not be backed. All of these drawbacks don't seem like a big problem if youre dealing with cache.
https://www.crunchydata.com/blog/postgresl-unlogged-tables
binlog in mysql functions the same, but it is not a table-specific setting.
Should we implement support for UNLOGGED TABLES? It's easy to turn on or off, at least in PG.