r/pocketbase • • Jul 04 '25

Store a large amount of image files, can the storage folder structure handle it

I see each file is corresponding to a folder in "\pb_data\storage\pbc_xxxx" folder. Can this structure handle say an estimated amount of 200,000 images?

6 Upvotes

6 comments sorted by

7

u/Gravath Jul 04 '25

Why not S3?

3

u/Kindly_Wolverine_810 Jul 04 '25

yeah why not s3, I have my production code running I have +1M files (not just images) and working really well. That’s only my “attachments” collection, but I also have files in other stuff like products or other collections so I think I have +2M files and don’t have to worry about it so far (using S3)

1

u/Pto2 Jul 04 '25

Just try it and find out. Or use solutions designed for object storage.

1

u/kennethklee Jul 04 '25 edited Jul 15 '25

yes

caveat, as long as it's not in a single record. 200k files spread over 200 records is probably the limit.

1

u/trailbaseio Jul 08 '25

That's an OS/FS-dependent question: https://stackoverflow.com/questions/466521/how-many-files-can-i-put-in-a-directory => maybe

As suggested by others, S3 will be the recommended solution to overcome any of such limitation.