Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Support for GridFS append mode #155
This change add the ability to open a gridfs file in append mode and add data to it, without having to pull it from the db and put it back once modified.
Currently the only way to append some data to a file is to dump the entire file to a temporary file, append the data and then put it again into the gridfs, a very expensive way to add some bytes to a file.
Hope it will be useful to everyone.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
We're not going to include this in the next release for now and I'm going to go ahead and close out the PR, but I'm going to keep your changes around so it can be discussed with some of the other driver teams at 10gen. Right now, none of the other drivers offer this functionality yet and the Ruby driver shouldn't break the mold here.
We'll need to come to some sort of consensus as a group about whether or not this behavior/functionality should be included before the Ruby driver can proceed so I'm tabling this one for now.