MongoDB is a scalable, high-performance, open source, document-oriented database. This tag is used for questions related to the Java language bindings and drivers for MongoDB.
How can i configure mongodb's pool connection for support 1100 threads per seconds?
I tried some configurations like bellow without sucess.
connectionsPerHost = 200
threadsAllowedToBlockForConnectionMultiplier = 5
Can someone help me?
Thanks.
This is really hard. I want to find the select nodes.index where radio.mac_address="00:06:5A:03:2E:5B". how can I get this query in MongoDB using java?
My mongodb is as following.
I tried so many queries. one of them is as following
BasicDBObject…
Is there a single method from MongoDB Java driver which deletes all documents in a collection ? so far I've only been able to do this by browsing a cursor and calling delete on each Document. Thanks
Suppose that you have java based server, and you are calling function which is stored in mongo db:
Let say function name is test and impelemntaton is
function(arg1, arg2){
return arg1;
}
DB db;
....
How to correctly pass the arguments? I've…
I am using a NoSQL database (MongoDB), and I want to back up a relational database (SQL, MySQL) into a NoSQL database...
I have read the manual inside & out - I read no reference on how to do so...
How can that be done? Can you show an example?
I am having a hard time in converting MongoDB aggregate query to Java. I am able to get result in the Mongo shell but not in Java ...
db.intentAnalysisPojo.aggregate(
{"$match": { "threadId": "f5683604-9fc8-40dd-9b7b-a1ef8e3bdb02"} },
{…
I am trying to create/maintain CRUD a PDF letter template using a PDFBox open source Java PDF Generation Library. The letter would have the following section has represented in my POJO class.
private byte[] fileContent;
private String…
I have a document with below fields inside a mongo collection.
{
_id: policyId_YYYYMMDDHH24MISS,
createDate: ISO DATE,
createId: VARCHAR
}
how can i append timestamp 'YYYYMMDDHH24MISS' to a field?
Expected:
{
_id: CERT00501_20160210132745,
…