MongoDB is a scalable, high-performance, open source, document-oriented database. It supports a large number of languages and application development platforms. Questions about programming should be asked on http://stackoverflow.com.

learn more… | top users | synonyms

0
votes
1answer
7 views

Use index intersection feature in mongo 2.6 to compound shard key

I am having three indexes like name,age,salary. I can use them as compound index as per 2.6 (name and age together). But can i use the same indexes as compound shard key like name and age. i also have ...
0
votes
0answers
20 views

MongoDB performance problem

I have a MongoDB for storing result like this {_id, type, imei, lat, lng, spd, dir, time} {_id, type, imei, lac, cid, time} If type is f first one is used and if it is l second one is used. Here ...
1
vote
2answers
9 views

How to determine database read/write ratio on MongoDB MMS?

By looking at MongoDB MMS charts, is there a way to calculate a database read/write ratio, or roughly determine whether a database is read-heavy or write-heavy? Assume I do not have contact with ...
0
votes
0answers
9 views

Neo4j vs MongoDB (pros and cons) [on hold]

I am working on a design of a system in which I need to maintain relationship between various kinds of real world entities and also have to handle documents(can have one or more attachments with 1 ...
0
votes
0answers
12 views

Mongodb x509 certificate for client and cluster member

I am newbie to mongodb, i understood the concepts and architecture in mongodb document. I would like to setup (1) mongodb server and cluster members (2) x509 SSL security for the server, client ...
0
votes
0answers
11 views

Scaling mongoDB & Node.js

Having an app running on Google App Engine, where everything is done for you - I am thinking about moving to mongoDB & Node.js in a Docker system. Would you have one mongoDB instance - and ...
1
vote
0answers
19 views

Mongo stuck on save

We have a single node of Mongo holding data in a single collection. We run it on windows 2008 64-bit machine with 128 GB RAM. The size of the collection is ~2TB holding ~200M items. Lately, when we ...
0
votes
1answer
14 views

Mongo import error: exception:read error, or input line too long (max length: 16777216)

I have a shareded collection which I'm trying to migrate from an existing production Cluster running v 2.4 to a new one running 2.6. As both clusters are shareded, I'm using mongoexport from the old ...
1
vote
1answer
58 views

Delayed replication false alerts and migration delays

I am running mongo 2.6.1 on a 3-shard cluster. Configuration is: 3 data nodes and 2 arbiters. The one data node is hidden and delayed for 3 hours (slavedelay). I have hidden the node in order to ...
0
votes
0answers
12 views

Mongo Sort By Added Fields

I'm using MiniMongo which means I won't be able to use aggregations. I'm wondering if there's a way to do this without. I'm basically trying to sort rows by two values, foo and bar. Both are ints, ...
0
votes
1answer
21 views

MongoDB Server has authorization schema version 3, but found a schema version 1 user

Trying to restore a production MongoDB onto a dev MongoDB and getting this error assertion: 17408 Server has authorization schema version 3, but found a schema version 1 user: { _id: ...
0
votes
1answer
49 views

1 million strings and exact match search

I need to chose the best solution (software and algorithm) to solve my problem. I need to store up to million strings and data associated with them. Strings are search queries and data is cached ...
1
vote
1answer
49 views

Understanding document size in MongoDB

My collection.stats(): { "ns" : "csdbprotobuf.archive", "count" : 429787895, "size" : 48374032272, "avgObjSize" : 112, "storageSize" : 56527326864, "numExtents" : 47, ...
0
votes
0answers
26 views

MongoDB thinks it's running a replica?

I'm running MongoDB (version 2.4) behind a Django application served by Apache. In the past few days, I'm seeing the following error come up many times an hour in the Apache logs, on all sorts of ...
0
votes
0answers
12 views

users and roles in mongodb

Following users are created in mongodb. First user created with name "user" having read write role for "project" database use project db.createUser( { user: "user", pwd: "user123", ...
0
votes
0answers
13 views

Exception in 'hibernate.ogm.datastore.database'

I am trying mongodb with hibernate-ogm i am completely new for hibernate-ogm i have stucked with following exception. I am using hibernate-ogm 4.1 6beta version and mongodb-ogm-hibernate.4.1 jar. ...
0
votes
0answers
9 views

where did my mongo databses go?

I have various Mongo databases and when I do ls -l in my CentOS linux I can see the databaseA.0 and databaseA.ns files for each database and the file size is large enough to tell my data is still ...
1
vote
1answer
17 views

PHP/MongoDB: Unset all fields in a document

I want to use PHP to remove documents from a MongoDB collection, but it's a capped collection (and it's stuck that way until I can get more memory), which means I can't remove documents. I have to do ...
0
votes
1answer
21 views

Tracing the origin of noTimeout cursors

I'm currently managing a Mongo DB instance that has several applications using it. It's been accumulating noTimeout cursors, and, while it's easy enough to cull them if they start getting ...
1
vote
1answer
16 views

mongodb: maxTimeMS ignored

After trying with different drivers and clients, we suffer with mongodb timeout on find query. Even Profiling logs the settings and issue well. 2014-08-13T23:46:43.218+0200 [conn80] query ...
0
votes
1answer
12 views

MongoDB Booleans

In MongoDB, I could store a boolean like so: active: True But that doesn't really take advantage of NoSQL, since there's no reason to have the active property at all if it's false. Is there a way ...
0
votes
1answer
36 views

How to limit the connections per host in MongoDB?

I'm running a mongo server which accepts connections from other clients through java driver. The thing I have noticed is after a while some users open too many ports, and this prevents other users to ...
0
votes
1answer
13 views

Disc IO for query in MongoDB

is there a way to tell how much data MongoDB is reading from disc and how much from cache for a query ? I looked at the explain()-Function but did not find this kind of informations. Thanks, Andre
0
votes
1answer
21 views

What is the easiest way to start a mongodb copy server?

Our mongodb server is running on AWS EC2 - it is using up a lot of the cpus of this server - which is also our Apache server - How Can I easily migrate the mongodb to another EC2 dedicated server?
0
votes
0answers
13 views

Documents with many potentially overlapping geolocations (maybe MongoDB)

Let's say I have a large list of coordinates coupled with the type of building is at this location (e.g., restaurant, doctor's office). In this scenario, there would potentially be many different ...
1
vote
2answers
36 views

How do I explicitly define data types for a MongoDB collection?

How do I explicitly define data types for a MongoDB collection? I understand that in Mongo if a collection doesn't exist it will create it when you insert the document, but I know the fields and data ...
1
vote
1answer
27 views

How we can take backup oplog on every hour and apply on top on full backup for mongodb

We have full lvm snapshot backup. We are trying to take oplog backup in every hour and save as a file. We like to apply the oplog backup on top of full backup if we need to. We like to know how we can ...
1
vote
1answer
30 views

Should all machines which run mongo instances (mongod or mongos) in a Mongo DB cluster have unique hostnames (also at OS level)?

I have been using Mongo DB Cluster for some data analysis (Mongo DB version 2.4.5) and while inserting some data into the cluster, I found an error which is the same as mentioned in the bug : ...
0
votes
1answer
40 views

Updating mongo sharded cluster without down time for mongod

I am trying to update my mongo sharded version from 2.4 to 2.6.3. I have some queries on steps to update this. When I will run one mongos with the --upgrade option, will it update all the config ...
1
vote
0answers
18 views

Positional Operator Matching Nested Arrays Workaround?

As was just pointed out to me on stackoverflow, Positional Operator Matching Nested Arrays has yet to be made available.. I need to display read.marked:true replies differently than read.marked:false ...
1
vote
0answers
46 views

MongoDB read performance

I have an ingestion process which loads data into a specific collection at a very high rate. Some of these documents have to be loaded into another system in batches of 100K . Means as soon as I find ...
1
vote
1answer
26 views

What folders should I check to see if these MongoDB applications are installed on my server?

I have a CentOS (Linux) server and looked at the /bin directory, but don't find the applications listed below. What folders should I check to see if these applications are installed on my server? I'm ...
1
vote
0answers
38 views

How to check which sql statement is causing global lock

We are monitoring mongodb Database using MMS and it is showing 15-20 sec global lock. But we can't find any statement is taking more than 2-3 sec. I like to know which is causing so much global lock ...
0
votes
0answers
21 views

Why does a mongo connector need 5% of server memory?

I have 2 servers, one running MongoDB, and the other running a Clojure app. The Clojure app makes some calls to MongoDB. If I ssh to the server running Clojure and run htop, I see: 28961 das ...
0
votes
0answers
37 views

mongodb import … taking very long time

I have json file of 432.6 MB, which i am uploading to mongodb database, I have mongodb setup on my OS X 10.9.4 mongoimport -d fastqdb -c seqcol --file /Users/loginname/FASTQ.json --jsonArray ...
0
votes
2answers
25 views

MongoDB data directory space is increasing

I have a worry, mongoDB data directory space is increasing very rapidly: I have a two data files and each one has reached 2GB limit and starts spawning 2 GB file multiple files. Is there any where I ...
1
vote
2answers
40 views

MMS is assigning same alias to two data nodes of different shards and replicasets

I am using MMS to monitor a 13 node MongoDB Cluster(3 Config Servers, 4 MongoS, 2 replica sets with 2 members + 1 arbiter each). MMS was working properly since its installation, but now it is not ...
0
votes
1answer
46 views

Mongo large chunks will not split

I had a 3 shard set up, and ran out of capacity, so I added 3 more shards. (Each shard is a replica set). But the data isn't spread across the cluster evenly. I have my chunkSize set to the standard ...
0
votes
1answer
19 views

Data Migration or Sharded Cluster to new Cluster

We have Sharded Mongo Cluster. However some documents are sharded and others are unsharded. We are planning to migrate these databases to new cluster. Please update if there is any process or steps ...
0
votes
1answer
20 views

MongoDB syncingTo change

I have a 3 members replica set version 2.6.1 with following configuration "_id" : 0, "host" : "10.125.16.22:30000", "priority" : 2 ...
1
vote
0answers
122 views

MongoDB communication issues on Azure

I have a Python uWSGI app running behind Nginx using pymongo to communicate with a 4 machine replica set running Mongodb 2.6.3. The replica set is configured using domain names for each machine ...
0
votes
0answers
70 views

Failure dialing host after a time, skipping all tasks. Err: `no reachable servers`

I have been using MMS and there're 3 hosts based on Windows for monitoring. They're replica set with 1 primary and 2 secondary. Everything is OK for a long time. Recently, MMS has sent me too many ...
1
vote
1answer
55 views

Mongo sharding issue with chunk split and Data transfer

I am getting this error in my primary shard warning: moveChunk failed to engage TO-shard in the data transfer: still waiting for a previous migrates data to get cleaned, can't accept new chunks, num ...
0
votes
1answer
20 views

Why mongo write only one partition

The /dev/mapper/vg_db1-lv_root partition used 100%,but the other partition is free,why mongodb store data only use this partition. This is why? How can I solve this problem? [root@db1 shard11]# df ...
0
votes
0answers
45 views

Mongodb is taking up 7GB of hard drive space on VM, how do I fix?

I am running Debian on a VM. I installed mongodb and it is taking up A LOT of space. It is really slowing me down in college, with work and projects ... etc. I have a disk usage analyzer and I've ...
1
vote
1answer
48 views

MongoDB index strategy

I'm developing a system to back-up computers and store the files / data with retention for a while. The actual files are stored in an object store, while I'm planning to keep the metadata of the files ...
1
vote
0answers
51 views

mongodb replicaset

I am adding a new member in ReplicaSet and it starts initial sync bur after certain point sync break and start resync again.this process continue and never complete its initial sync.so please resolve ...
0
votes
0answers
25 views

Add a member in mongo db replica set

I Have Added A new Member in Replica set.And It Starts initial sync But After some point it will start resync again and again. And Log file show [rsSync] replSet initial sync pending Sat Jul 19 ...
1
vote
1answer
66 views

Tuning Mongo (TokuMX) for fastest bulk reads

What options do I have for tuning MongoDB / TokuMX for reading the results of queries with large result sets? I'm currently on a single server (no sharding) with the data on an SSD drive. My queries ...
-1
votes
1answer
26 views

Disable MongoDB journaling?

Are there any benefits in disabling mongodb journaling besides performance gain? I know journaling provides write durability and crash resiliency. But I can tune syncdelay parameter to make data files ...