-
Type: New Feature
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.6.5
-
Component/s: API, Performance
-
None
-
Minor Change
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?