[GOWS] whatsmeow_sessions table is growing rapidly #1406
š Kindly use GitHub Discussions to ask questions! I am currently using postgresql to store sessions. Are there any tables I can periodically delete to avoid wasting space?
What engine do you use?
If it's NOWEB/GOWS
Check messages, media tables for each session
https://waha.devlike.pro/docs/how-to/storages/#faq
If it's WEBJS - nothing to clear, it's just big zip archive
I use GOWS. But I see the session has used about 12GB. And when I revoke and log back in, the capacity is much lower
Will being logged in multiple times increase the number of records? And how can I delete old data while keeping only the latest session? These sessions have only been active since September 9, so it has only been 18 days, but the storage usage is already very high. I tested revoking and logging in again with another session, and it only took around 2GB. @devlikepro
In the past few days, I noticed the data was only around 15ā20GB, but after deleting the message table, the storage usage seems to have increased a lot. Iām not sure if deleting the message table has any impact. @devlikepro
"Whatsmeow sessions" shouldn't take that long and should be cleared after logging out/scanning the QR code š¤ We'll check it.
@devlikepro how can i delete old sessions in postgres to solve my situation? And what should i delete?