| ▲ | proaralyst 3 hours ago | |||||||||||||||||||||||||||||||||||||||||||||||||
You could use LVM or btrfs snapshots (at the filesystem level) if you're ok restarting your database between runs | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | briffle an hour ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
LVM snapshots work well. Used it for years with other database tools.. But make sure you allocate enough write space for the COW.. when the write space fills up, LVM just 'drops' the snapshot. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | francislavoie 3 hours ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
Restarting the DB is unfortunately way too slow. We run the DB in a docker container with a tmpfs (in-memory) volume which helps a lot with speed, but the problem is still the raw compute needed to wipe the tables and re-fill them with the fixtures every time. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||