MongoDB is a scalable, high-performance, open source, document-oriented database. It supports a large number of languages and application development platforms.

learn more… | top users | synonyms (2) | mongodb jobs

0
votes
0answers
3 views

MongoDb and Hibernate OGM Example without maven

I could successfully set up the requirment for Hibernate OGM. My persistance.xml looks like this: ... <provider>org.hibernate.ejb.HibernatePersistence</provider> ...
0
votes
0answers
12 views

MongoDB 2.2.5 upgrade issue with special character in db name

I just upgraded to 2.2.5 version. My old data with 2.0.2 had database name with special character : in the name. After upgrade, when I am fetching data from that db, I am getting following error ...
0
votes
1answer
19 views

How to use $unset and $set in combination in mongoDB

I have record like this : { "Date" : ISODate("2013-06-28T18:30:00Z"), "Details" : { "Amount1" : -200, "Amount2" : 2800, "Amount3" : -100 }, 'NID' ...
0
votes
1answer
11 views

Find records that STARTS with whatever, in MongoDB using PHP

I am using this to find documents that 'contains' whatever string, in a Mongodb collection: $query[(string) $mongo_record] = array( '$regex' => (string) $value ); Then: $results = ...
0
votes
0answers
16 views

Saving twitter4j Status object to MongoDB

I'm trying to save twitter4j Status object to Mongodb. I have the following code: public void saveTweets(Status status) throws Exception { BasicDBObject tweet = new BasicDBObject(); ...
0
votes
0answers
10 views

Upsert embedded document in yiimongodbsuite

I need to perform an upsert command in yiimongodbsuite. I tried $model = new Murls(); $key = array( 'title' => $title ); $data = array( '$inc' => array( 'someint' => 1 ) ); ...
0
votes
0answers
5 views

Has anyone been able to use successfully PredicateBuilder from albahari.com against MongoDB?

I have the following code using the popular PredicateBuilder from albahari.com: var predicate = PredicateBuilder.False<Message>(); predicate.Or(p => p.Subject.Contains("a")); ...
0
votes
0answers
18 views

MongoDB sorting and limit inside in array

I have a collection of conversations like this: [ { title: ..., members: [...], messages: [ { _id: ..., date: ..., text: ... }, ...
0
votes
1answer
24 views

Why won't my mongodb connect to port 28017?

I was hoping somone could help me with my problem with mongodb. I had been able to connect just fine before, however after my laptop's battery ran out during a power outage I have not been able to ...
-1
votes
0answers
19 views

where do you put the mongodb files in a node application?

I have mongodb installed, as well as node. when i want to shove some data into a mongo document, where do i put the mongo document? And what is the mongo document called? mydocument.mongo?
0
votes
0answers
13 views

Generate Alternative when Unique Index fails on MongoDB

So when users sign up via Google, Twitter or such, names can overlap. Within my app, usernames have a unique index. Since a new document is put into the collection whenever someone signs in for the ...
0
votes
1answer
20 views

Mongo C++ Driver: mongo/client/dbclient.h: No such file or directory

I am trying to install the MongoDB C++ driver on my machine. I have followed the directions here, and everything seemed to install successfully. Still, I can't seem to include the headers. Here is a ...
0
votes
0answers
11 views

Aggregate push N number of array results

I have the following aggregate: db.reports.aggregate({ $group: { _id: "$user", reports: { $push: {report: {properties: "$properties"} } }}}, { $project: { _id: 0, user: "$_id", reports: "$reports"} ...
0
votes
1answer
15 views

MongoDB - Using regex wildcards for search that properly filter results

I have a Mongo search set up that goes through my entries based on numerous criteria. Currently the easiest way (I know it's not performance-friendly due to using wildcards, but I can't figure out a ...
0
votes
0answers
10 views

Performance in MongoDB and GridFS

I am developing a plugin that using mongodb. The plugin has to store some .dcm files (DICOM files) in the database as binary files. After that, the plugin has to store the metadata of the file and be ...

1 2 3 4 5 1228
15 30 50 per page