this post was submitted on 07 Nov 2023
6 points (87.5% liked)

Lemmy Support

4661 readers
43 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

Hello, I have 160GB to run Lemmy but I saw that as much as 77GB is used by pictrs.

Is there any way to clear the image cache or delete any pictures that are too heavy?

Also 37GB for postgres seems like a lot to me, is there any cache or temporary file that can be cleared?

edit: I am using Lemmy 0.18.5

you are viewing a single comment's thread
view the rest of the comments
[–] pe1uca@lemmy.pe1uca.dev 3 points 1 year ago

The last time I checked postgres gets big becouse of a log activity table used for deduplication, it stores the data of 6 months. The devs mentioned you could be deleting it up to some point (IIRC they said 3 months, but confirm first).

As for pictrs, lemmy caches a lot of stuff, so it copies a lot of data from other instances even when it's advertised only media from your instance is stored in your server.
My solution was to disable pictrs since I don't upload media.
Other solutions I've heard about are to ask users of your instance to upload media to any other media hosting service, the images uploaded to lemmy are just seen as urls, so it wouldn't be any different.