Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse doesn't clear fs.chunks after a upload #3161

Closed
hydex86 opened this issue Dec 2, 2016 · 7 comments
Closed

Parse doesn't clear fs.chunks after a upload #3161

hydex86 opened this issue Dec 2, 2016 · 7 comments

Comments

@hydex86
Copy link

hydex86 commented Dec 2, 2016

Hi, I'm using parse-server in Heroku + mlab.

My client app uploads files to the server. Yesterday my client app was receiving an error 130 when saving a file to the server. I started to investigate and I found there was a collection called fs.chunks with 1 Gb of data, but the collection who stores files only had 50 Mb.

I think fs.chunks uploaded should be deleted after the save process completes successfully, isn't it? Which is the best way to manage this?

@flovilmart
Copy link
Contributor

Not sure about that, but the memory error you mention is real :)

@yangkghjh
Copy link

The collection fs.chunks is where the files binary saved.And the fs.files collection save same file info.The collection who stores files just store the file names.

@hydex86
Copy link
Author

hydex86 commented Dec 12, 2016

Thanks @yangkghjh , you're right. I close this issue

@hydex86 hydex86 closed this as completed Dec 12, 2016
@flovilmart
Copy link
Contributor

flovilmart commented Dec 12, 2016

@yangkghjh @hydex86 that doesn't explain the memory retention issue, is it in the express middleware then?

@hydex86
Copy link
Author

hydex86 commented Dec 12, 2016

@flovilmart which memory retention issue are you talking about? Not sure if you found anything ese thanks to this :)

@hydex86 hydex86 reopened this Dec 12, 2016
@hydex86 hydex86 closed this as completed Dec 12, 2016
@flovilmart
Copy link
Contributor

I started to investigate and I found there was a collection called fs.chunks with 1 Gb of data, but the collection who stores files only had 50 Mb.

The collection is in the database right? so that's not the process memory but the database?

@hydex86
Copy link
Author

hydex86 commented Dec 12, 2016

As @yangkghjh I was wrong. Data stored in fs.chunks are real files. The collection where I store the PFFiles would be pointers to those fs.chunks.

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

No branches or pull requests

3 participants