When interfacing a PostgreSQL DB using prisma, do ...
# orm-help
s
When interfacing a PostgreSQL DB using prisma, do I still need to run
VACUUM
to reduce disk usage? If yes, how?
r
@Soumitra Shewale 👋 Yes you would need to use
vacuum
as Prisma doesn’t do any of that automatically. You can use
prisma.$executeRaw(vacuum "tableName")
to vacuum the table.
In another case, you can also enable autovacuum: https://www.postgresql.org/docs/12/routine-vacuuming.html#AUTOVACUUM I would recommend this so you do not need to do this manually.
👍 1
s
Ooh, thanks a lot!
👍 1