Skip to content

Conversation

@saynomoo
Copy link

In order to make gridfs files removal efficiently, the chunks need some additional metada which can be indexed. To make it possible to create custom chunks, a new method is introduced: createChunk. This method can then be overriden based on the custom needs. The constructors are also changed to protected so that the class itself can be overriden.

Signed-off-by: Tuomas Huhtanen github@saynomoo.com

Tuomas Huhtanen added 2 commits November 18, 2011 12:44
Overriding this method allows creating custom chunks, for example with some extra attributes

Signed-off-by: Tuomas Huhtanen <github@saynomoo.com>
…ass can be overriden

Signed-off-by: Tuomas Huhtanen <github@saynomoo.com>
@saynomoo
Copy link
Author

saynomoo commented May 3, 2012

Hi breinero,

The whole pull request #53 should be applied to be useful. At least in my use case.

@reynders
Copy link

Any progress here? Without this feature it is impossible to do tag aware sharding on chunks collection (which is the most likely target for sharding if you ask from me): http://www.mongodb.org/display/DOCS/Tag+Aware+Sharding

@jyemin
Copy link
Collaborator

jyemin commented Jan 14, 2013

http://jira.mongodb.org/browse/JAVA-475 was closed in 2.8.0, and it looks like these changes were incorporated into the release (see the commit log on the issue). I'm not sure why this pull request was not simply merged, but instead re-applied by hand.

@jyemin jyemin closed this Jan 14, 2013
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

Successfully merging this pull request may close these issues.

6 participants