Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3737

Add custom row on GridFs fs.files collection

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: GridFS
    • Labels:
      None

      Hi,

      I can't find a way with new reactive stream api to add a custom row on fs.files collection of gridfs.

      On my old (that run in production) I was able to add custom row on 
      com.mongodb.gridfs.GridFSInputFile using

      gridFSInputFile.put("CUSTOM_ROW", myCustomRow);
      

      The com.mongodb.reactivestreams.client.gridfs.GridFSBucket only allows to add metadata via GridFSUploadOptions.

       

      But I've 16TB on my mongodb and I can't change the structure of my document.

      By the way, this customRow,  is also my sharding key...

       

      Can you add this features (or suggest me a workaround)?

       

      regards

      matpil

       

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            matteo.pileggi@cerved.com Matteo Pileggi [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: