Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

Use of S3 needs GridFS to work, how about the data saved in the database? Can we flush it? #1026

Open
pedrofg opened this issue Mar 5, 2018 · 1 comment

Comments

@pedrofg
Copy link

pedrofg commented Mar 5, 2018

Hello Guys, I see the number of data increasing in the database using the CollectionFS S3 since it creates some temporary tables to save the images. How it handles those tables? Does it have a maximum limit? Should we flush those tables when we want?

@shnere
Copy link

shnere commented Jun 25, 2018

I have a cron job that flushes those tables every day, for some reason those tables make my deployments (using passenger) crash when they are above ~200 records.

Take into account that this will try to delete the documents from your S3 store, what I've done to overcome this problem is to not include delete rights for your AWS key, that way the library won't be able to delete those documents from S3 and only from the tables.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants