All versions of MongoDB - a scalable, high-performance, open source, document-oriented database.

learn more… | top users | synonyms

0
votes
0answers
12 views

MongoDB: what is the better way to implement shared record with ability to remove it by each user

I have a MongoDB record, for example, called Letter. This letter can be sent to some group of users, so many users have an access to it. A Letter can be sent in a context of Topic that is shared ...
0
votes
1answer
41 views

MongoDB script to backup replication set locally to a ubuntu 14.04 server

I would like to make a Daily Backup of my MongoDB from a replication set running from ubuntu 14.04 server. End goal would be to get a daily backup and write the backup to a remote or local share - ...
0
votes
0answers
17 views

Data Modelling of product and product variations

I want to model product and product variations using mongodb (mongoose) I am really confused with how shall I model both I need to add stock and price to variations. Variation can be of anything (not ...
1
vote
1answer
32 views

Is there a way to find out if value exists with addToSet?

addToSet adds values to an array if the value doesn't exist. If the value already exists MongoDB will not return anything saying that it exsits. Is there a way to find out if the value exists? (...
1
vote
0answers
28 views

Solr with SQL Server or NoSQL

I am working on a POC of using Solr with SQL Server. I have a very complex data model with SQL server which required a bunch of joining and scalar functions to strip some mark up and other stuff. ...
1
vote
0answers
55 views

Getting empty folder when using mongodump to back up my MongoDB

Basically, I have a problem with using mongodump to back up my MongoDB. This is the general syntax I use in SSH: mongodump -d myDatabaseName -o ~/backups/my_backup This is the resulting message: ...
3
votes
1answer
95 views

Improving mongodb read throughput for tiny database

I am given to understand that MongoDB will essentially perform like it is pulling records from memory if the working set is small. I wrote a simple MongoDB test program that inserts just one record ...
0
votes
0answers
31 views

MongoDB collStats.size compared to collection.totalSize

I have a collection which has the following dimensions: rs0:PRIMARY> db.myCollection.totalSize() 2188206080 rs0:PRIMARY> db.myCollection.stats() { "size" : 5899660704, "avgObjSize" : ...
0
votes
1answer
38 views

Adding secondary via rs.add on MongoDB

I have a master and slave on linux (centOS 7). The rs.initiate(cfg) was done but its shows the below output when trying to add secondary via rs.add. I get this: How do I resolve? Version: The ...
0
votes
0answers
18 views

Speeding up MongoBD query { $ne: [] }

I'm currently doing a MongoDB aggregation but then have a query looking for all documents where a certain field, whose value is an array, is empty. obs = db.collection.count({'things.titles': {'$ne':...
0
votes
0answers
26 views

Is it possible which documents couldn't be dumped using “mongodump”?

I am removing historical data from a collection in MongoDB (3.2), but first I need a backup of it. The choice has fallen, a simple combination of: mongodump --db myDatabase --collection myCollection ...
0
votes
1answer
49 views

How to get mongdodump --quiet to still report errors?

I'd like to run mongodump so that it only outputs errors (to avoid extraneous logwatch reporting for an automated nightly backup script). I've tried mongodump --quiet but from a quick test this ...
0
votes
1answer
65 views

How to show all users of all databases in mongodb?

I know show users or db.getUsers() can show all users in current database in mongodb, but how to list all users in all databses for ease of management as an administrator?
1
vote
1answer
44 views

Large `mongodump` followed by `mongorestore`

I have a fairly large (~240GB) Mongo database that I need to transfer across a sluggish network and onto a new server. Traditionally for these situations, I've found that a mongodump followed by a ...
1
vote
1answer
29 views

Keep files in mongo as part of the data

I want to create a news app that works in the following way: The site will contain articles, and each article with have multiple versions. Each version is a docx file and the article itself does not ...
0
votes
2answers
385 views

mongodb could not find host matching read preference { mode: \“primary\” } for set?

I am deploy a monodb sharding, I have deploy a replica set in three machines: dev41:27017,dev42:27017,dev193:27017 and configsvr in three machine: dev41:27019,dev42:27019,dev193:27019 and also a ...
0
votes
0answers
25 views

Is that hybrid model i thought with Mongo and MySQL fits?

I'm building a System with Node.js-Express.js and at first i decided to use MongoDB to store. But a moment ago i read that article and it made me think about it. Article talks about a MongoDB exp. ...
0
votes
1answer
20 views

MongoDB temporary node / mirror

When I have a running MongoDB instance with some data and requests against it, can I start a second instance on another machine, register it as another node in the first instance and all the data is ...
0
votes
0answers
50 views

Understanding MongoDB Log warning

In my MongoDB log, I am seeing these lines of messages: 2016-04-05T00:03:42.904+0000 I COMMAND [ftdc] serverStatus was very slow: { after basic: 200, after asserts: 240, after backgroundFlushing: ...
1
vote
0answers
24 views

Running a query in Mongo Shell vs PyMongo (in Flask) results in extreme slowdown

When prototyping a query I've been using just the Mongo Shell to make sure my aggregation query is working fine: # Default query query = [{ # Supposedly forces MongoDB to initially use ...
1
vote
0answers
58 views

MongoDB with multi core instance

I have a "large" EC2 instance with 2 cores running MongoDB as part of a Replicaset. Does MongoDB use both cores in parallel by default or do I need to make some configuration change?
1
vote
0answers
30 views

Mongo indexes question

I have the following aggregation query: db.getCollection('usersongs').aggregate([ {$match: { room: 'someObjId', status: { $in: [ "ended", "skipped" ] } } }, {$group: { ...
0
votes
0answers
34 views

Replica set with SSL issues

I was able to set up a replica set with self signed certificates on Windows. However, I suspect there are some communication issues between primary and secondary. When I look at the log, I see ...
2
votes
5answers
175 views

Lots of Indexes - MySQL vs MongoDB - Migrating

So, I've never used MongoDB, I just read a lot about it and I think it's going to be good for my project. Also, I do not have lots of experience with MySQL and to be even more honest I have no clue of ...
0
votes
1answer
31 views

see currently running background indexing jobs (MongoDB)

In mongodb.log I see 2016-03-31T12:44:11.003+0200 I - [conn58191] Index Build (background): 14396400/17648149 81% 2016-03-31T12:44:14.018+0200 I - [conn58191] Index Build (...
0
votes
2answers
54 views

Mongo ReplicaSet - arbiter in connection string

I'm using ReplicaSet with Mongo and when i build the connection string i have all servers hosts and ports - comma delimited. My question is, shall i add the arbiter address there as well or just the ...
0
votes
1answer
51 views

Mongo 2.6 vs. 3.2 - data folder size

I just migrated from Mongo 2.6 (Single node) to 3.2 (ReplicaSet). In the old server the Mongo's data folder was a total of ~12GB, but looks like in the new servers (master and its slave) it's just ~2....
3
votes
2answers
71 views

How can we ensure security and integrity of data stored in MongoDB?

Since MongoDB lacks support of transactions how one can ensure consistency of data stored in MongoDB database?
0
votes
1answer
11 views

Chunk error when upgraded to mongodb 2.6 while uploading doc

I was trying to upgrade mongodb 2.2 to 2.6 and upon testing 2.6 received chunk out of order error.. I recieve an unexpected error from the server: exception: chunks out of order at /home/ps203k/....
0
votes
1answer
18 views

Can't stop MongoDB process on CentOS

My OS is CentOS release 6.4 (Final) and my MongoDB version is 2.4.1. I tried: use admin; db.shutdownServer() and I got in output: assert failed : unexpected error: "shutdownServer failed: ...
1
vote
0answers
14 views

MongoDB Fails to get TGT

I've setup MongoDB enterprise on CentOS 7 with Kerberos support. Additionally I've setup a Kerberos service on CentOS 7 for the authentication. I know that Kerberos is setup correctly as I now have ...
1
vote
0answers
36 views

Would it be good practice to represent MongoDB ObjectId as a String or a Blob type in SQL Lite (RDMS world)?

All: We have a software application with 1) Web-based component 2) Mobile-based component Our 1) Web-based component uses a) MongoDB as the Database b) ASP.NET C# Our 2) Mobile-based component ...
0
votes
0answers
33 views

How to migrate AWS dynamodb to mongodb

I am new to NoSQL databases. I am having a database in AWS RDS DynamoDB. I need to migrate this to MongoDB. Can any one help me with the steps to convert database from DynamoDB to MongoDB.
0
votes
0answers
30 views

Can we check the timestamp of last mongo dump command?

We have a central database hosted on AWS. And many developers keep dumping the database from time to time. Is there any method for to get a time stamp when the last mongo dump command was executed? ...
0
votes
0answers
22 views

MongoDB: Splitting empty collection with hashed sharding key

I'm currently trying to pre-split an empty collection. According the documentation (found here: https://docs.mongodb.org/manual/reference/command/split/): As such, the command cannot use the find ...
0
votes
0answers
19 views

Scaling MongoDB netwrok peformance

I have two question which are rally about the same thing - how to read more documents per second? I'm running a MongoDB cluster on Amazon EC2 and I'm load testing it from 10 servers (on Amazon EMR). ...
0
votes
0answers
19 views

MongoDB job on CentOS 7 has file permission errors

I have a CentOS 7 server and I've been trying to start using MongoDB. At some point, I changed group & file permissions for the following: /var/lib/mongo /var/run/mongodb /var/log/mongodb What ...
0
votes
0answers
18 views

MongoDB Lookup Issue

In collection A, we have "batches" : [ ObjectId("56fccffbe7c9f9cf7634dbfe") ], and in Collection B, we have { "_id" : ObjectId("56fccffbe7c9f9cf7634dbfe") Can we perform a ...
1
vote
1answer
133 views

Server warnings on MongoDB startup

I recently installed MongoDB on an AWS EC2 instance running Ubuntu. When I'm starting the MongoDB service, I get some warnings: $ mongo MongoDB shell version: 3.0.11 connecting to: test Server has ...
1
vote
1answer
122 views

How to efficiently design MongoDB database for Uber-like application?

I'm designing a MongoDB database for an Uber-like application, but since I'm new to NoSQL concept, I have several doubts. I have three main collections - users, requests and messages. User can post a ...
0
votes
0answers
46 views

MongoDB daily document growth rate

Is MongoDB feasibly suited to handle 90,000,000 documents per day? Version 3.2. I did some rough estimates on my data size. There will be about 90,000,000 recorded events per day, each a maximum size ...
0
votes
0answers
11 views

MongoDB server machine “actively refusing connections”, though previously accepted with no issues?

I am using MongoDB as a storage solution for my C# application. I noticed this issue today when starting up my application and trying to connect to Mongo, the exception was something like "target ...
0
votes
0answers
34 views

MongoDB replication seems to be abnormal

I have a three-member replica set with 1 primary and 2 secondaries: A - Primary B - Secondary C - Secondary Initially I had only one Member A and all CRUD operations were performed on it only. ...
0
votes
1answer
29 views

How to use --excludeCollectionsWithPrefix in mongodump

I would like know how to use the option "--excludeCollectionsWithPrefix" of the mongodump ? I have some collections name with numbers like this: registry.logging_event_15313531 registry....
1
vote
2answers
13 views

How to predict new disk allocation?

I understand that MongoDB pre-allocates disk space, but the disk allocation I'm seeing is growing much faster than I'm anticipating. For example, I had a database using up 8GB of actual disk space. ...
0
votes
1answer
34 views

How can I set maxIdleTimeMS by command line or mongo-shell?

So, I have deployed my PHP application (using Laravel). However , I've noticed a high connection number in connection pool. I would like to know how could I to set the maxIdleTimeMS parameter through ...
1
vote
1answer
65 views

Isn't contradictory that MongoDB may lose updates with journaling in WiredTiger?

This is what MongoDB says about journaling: To provide durability in the event of a failure, MongoDB uses write ahead logging to on-disk journal files. But with WiredTiger: Important ...
0
votes
0answers
119 views

mongod.exe has stopped working

I have installed mongoDB 3.2.4 and I am on windows 7 64-bit system. After installation of mongoDB , i have specified dbpath as c:\data and also set the environment variable. Now whenever I am trying ...
0
votes
0answers
10 views

MongoDB COnnection Issue

In mongo log we see a lot of connections from primary server to itslef(Where 10.67.91.214 is the Primary Server's IP).Here user user has readWrite access on datbasedb 2016-03-23T12:33:32.349+0530 I ...
1
vote
0answers
31 views

MongoDB:Too many connections from Secondary

We have a 3 node replica set running on MongoDB 3.2, and having an issue with Replication. On Primary server, connection count will keep increasing as one of the secondary will keep making new ...