Skip to content

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

Closed

Description

@hydex86

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?

Activity

  1. flovilmart commented on Dec 2, 2016

    @flovilmart
    Contributor

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

  2. yangkghjh commented on Dec 12, 2016

    @yangkghjh

    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.

  3. hydex86 commented on Dec 12, 2016

    @hydex86
    Author

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

  4. flovilmart commented on Dec 12, 2016

    @flovilmart
    Contributor

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

  5. hydex86 commented on Dec 12, 2016

    @hydex86
    Author

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

  6. flovilmart commented on Dec 12, 2016

    @flovilmart
    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?

  7. hydex86 commented on Dec 12, 2016

    @hydex86
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions