It’s normal for the current month to grow significantly and then essentially be condensed every 30 days? So I’d expect it to grow over 30 days and then on a rolling basis its condensed? I didn’t delete all the data. I only deleted May data and January data.
The “problem” as I see it, I was not on the Beta update so I shouldn’t have received 1.41.7.9784. I only turned it on to received the 1.41.7.9795 update. My DB went from 248Mb to 11 GB
@Yaracuy you can just group by a date/time (or 30 days previous) and delete.
DELETE FROM statistics_bandwidth
WHERE strftime('%Y-%m', datetime(at, 'unixepoch')) = '2025-05';
It seems like deleting these statistics will caused usage stats to incorrectly reported for users.
Edit: Despite not selecting the beta channel I absolutely have a crash report for 1.41.7.9784 so that definitely is the culprit. I’m just wondering if the currently growing May (ok last 30 days) will actually shrink. The DB doubled from watching 2 hours and as shown above, that last 2 hours was responsible for 76% of rows in the table.
I was able to cut down the database considerably from 12.8GB to 374MB. The statistics bandwidth data seems to only remove May and Jan (where it was large amount of data), and kept the size of other months intact. This is comparing by count size.
Ran the following commands:
sqlite> DELETE FROM statistics_bandwidth WHERE account_id IS NULL;
sqlite> VACUUM;
So the stats data, compared to the previous post, is:
My Mac Mini M4 ran out of space when it grew from 1.21 GB to 64GB (and the backup was 24GB), I’m now on 1.41.7.9795 and can see the database is growing at 280MB an hour. I’m guessing this is significantly less than the previous version but still massively higher than it was previously.
Will there be a fix to further reduce the stats ? Or am I going to have to create a daily job to delete the previous day’s stats ?
I’m hoping to chalk it up to it being the weekend but it’s clearly still not fixed given the growth rate occurring on the latest beta. I went back to the public tag and it’s grown 2MB in 2 days compared to 300MB in 2 hours before. I was testing having the same 2 streams running as the previous beta increase.
It looks like today may have been ok but the disk filled up so probably stopped data being written, I think 12th and 13th being low was the same full disk scenario.
Anyway, I’m rolling back to the public release after deleting data for the spoecific high days.
@drzoidberg33
My com.plexapp.plugins.library.db went from 473MB to 37.5GB between 5/15 and 5/18 and now when I run the optimization, it locks the server up.
@huntsj17 I just swapped to my backup from 5-15 while keeping a backup of the 37.5GB. While I had to re-add all my new media and rerun some scans it appears to be working so far and not getting to much bigger.
Edit: May have spoken too soon my plugins.library.db went from 473MB to 2.7GB in the last 7 hours
My backup would be 65GB and I don’t have the space. I may just take a copy onto my NAS and restore the previous backup. Then downgrade plex back to public.
In the end I’ve restored an old backup from 5 days ago that was the usual size. Anything I did to the statistics_badwidth table ended up filling the wal file and I didn’t want to corrupt the file by turning off the write ahead logs (I’m not too familiar with sqlite).
I also installed the public version and everything seems ok again now.