title: MongoDB BasicDBObject vs Document in java
body: <p>I am using MongoDB v3.2.0 with Mongo Java Driver 3.0.4 version. I am using the <code>BasicDBObject</code> (deprecated) instead of using the <code>Document</code> in java, as I need to do many changes for converting to Document in my standalone java project. Can anyone tell me changing into Document, will there be any performance improvement in memory and large collection inserts and reads. Is there any way to improve my frequent write and read operations on MongoDB using java. </p>