Allow DBCollections to be modified using raw/binary BSON.

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • 2.8.0
    • Affects Version/s: 2.6.5
    • Component/s: API, Performance
    • None
    • None
    • Minor Change
    • None
    • None
    • None
    • None
    • None
    • None

      For any case where DBCollection takes a DBObject i would like to be able to pass raw/binary BSON, rather than build a concrete DBObject object such as BasicDBObject.

      For my usecase i need to serialize DBObjects offline before i eventually update/insert them into DBCollection.

      So rather than serialize offline, then deserialize, then build a DBObject, then call DBCollection, which then serializes the DBObject to BSON for transport over-the-wire to the Mongodb, i would rather serialize offline directly to binary BSON, then pass the BSON directly to DBCollection.

      It appears that RawDBObject is exactly what i need, but there is no public constructor and no usage doc or any tests that i can see?

              Assignee:
              Jeffrey Yemin
              Reporter:
              Marko
              None
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: