Gridfs cascade file metadata to chunks objects

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Unknown
    • None
    • Affects Version/s: 6.3.0
    • Component/s: GridFS
    • 2
    • Not Needed
    • 🔵 Done
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      How are you using Mongo? What version of the server and driver are you using?

      Mongo 8.x with driver 6.x

      What is the feature/improvement you would like?

      We have some processes using changeStreams where we need to conditionally send gridfs data to different places based on metadata added when data is uploaded.  Currently chunks don't inherit the files metadata and due to ordering of change events we cannot be sure the file exists when the chunk exists to even look up its metadata.  I would like to avoid maintaining a shadow collection or manipulating files._id value if possible.  Is it possible to manipulate the chunk object before it is stored ?

      What use case would this feature/improvement enable?

      ETL processes around gridfs

       

            Assignee:
            Bailey Pearson
            Reporter:
            Kevin Fairclough
            None
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: