Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
-1
votes
0answers
10 views

DB schema fitting for infographic [on hold]

I'm a beginner in this field. For some of you this might seem obvious, but.. I have a database - I believe it doesn't matter what it is for the question, but its MongoDB - which will have, in theory, ...
-1
votes
0answers
12 views

MongoDB Replica Set failover with 2 nodes

I have a Replica Set consisting of three nodes: -Server1 (Primary) -Server2 (Secondary) -Server3 (Secondary) When the primary server (still Server1) is down, a voting is started and Server2 get ...
-1
votes
0answers
8 views

Key points that i have to take care before designing mongodb database using Node.js for a uber like application? [closed]

Hi, world I am a newbie to MongoDB I haven't any experience regarding the MongoDB so I need your help to tell me the basic key points that I have to keep me in mind before approaching. it's ...
-1
votes
1answer
20 views

Database are not visible to users who has access in MongoDB

We are using Robo 3t tool to interact with Mongodb. We could see the user has read access on 2 databases but when the user is connected to MongoInstance that databases are not visible to the users. ...
-1
votes
1answer
188 views

Connectivity issues in replication process

I've been trying to add a new node to a replica set without success due to these errors: 2019-08-12T06:48:15.031+0200 I ASIO [NetworkInterfaceASIO-RS-0] Ending connection to host mongo03:...
-1
votes
2answers
212 views

join two collections with group by and sum in Mongodb

i have this two collection and i want to join, after this I want to sum the value of TotalPrice each orderdate : some line of my two collections the first collection date : {"Id_Date":1,"...
-1
votes
1answer
81 views

What are the pros and cons of having more data-bearing members in a MongoDB replica set? [closed]

A 3 member replica set has the same fault tolerance if all 3 members contain a copy of the data or if one is an arbiter so why would I ever want all 3 members to have a copy of the data? What is a ...
-1
votes
1answer
80 views

Automate setting secondary node to primary when majority nodes are down-MongoDB

There are many ways to force a secondary node to become a primary when majority nodes are down in mongo replica set. But we need to do this manually. For eg, forcing reconfig: cfg = rs.conf(); cfg....
-1
votes
1answer
1k views

mongodb - what roles the user to grant access to all databases

I have created mongouser as testuser with below roles. I want to give access for new databases for this user. what roles the user to grant access to all databases. db.createUser({ user: "testuser" , ...
-1
votes
1answer
37 views

MongoDb User with readWrite can create database

I dont understand why my user can create data base. The user "toto" with role "readwrite" on DB1 can create a DataBase (db2). And with the same account "toto" I can create a user and affect this user ...
-1
votes
1answer
39 views

MongoDB replica set configuration problem

I'm facing some issues when trying the following: I have a three-node MongoDB 4.0 cluster, no sharding, one mongodb instance as primary, the rest as secondaries. When I shut down the primary, one of ...
-1
votes
1answer
143 views

MongoDB RBAC to only one document

Is it possible to give access to a user to only one document in a collection which is in my Mongo Data Base ? I saw that this is possible for one collection.
-1
votes
1answer
371 views

MongoDB: Read Role Able to Write and Edit Collections

I have created a user in MongoDB and it has read permission to a db, which i verified it by db.getUser("username"). It confirms that it has read access. However i am able to create and update ...
-1
votes
1answer
519 views

Why does mongodb primary stops writing sometimes?

I have 3 mongodb servers in our production environment with replica set configured. All the 3 are running in 3 different Ec2 instances. The application server is running in another instance. The ...
-1
votes
1answer
108 views

Suggestions for type of DB to use (Elasticsearch vs MongoDB vs Hadoop)

I am hoping some of you highly skilled DBAs can provide some insight as to the best DB to use for this dataset. This is a relatively simple dataset with no relationship needed between the entries. ...
-1
votes
1answer
333 views

How to make mongos to be in a replica set?

I have a shard cluster: one mongos, three shard replica sets and one config replica set. My application only talks to the mongos for read/write to mongodb. I wonder whether I can make the mongos ...
-1
votes
1answer
239 views

Add mongodb cluster to a replica set

I have a database db on mongodb server s0 with collection coll which is not sharded. To shard this collection I set up a sharded cluster and add s0 to replica set rs0. Now I want to add the sharded ...
-1
votes
1answer
215 views

Duplicate data inserted while failover MongoDB

I'm inserting 3000 documents and in between my primary goes down and secondary becomes new primary I find my application has inserted 3002 documents, 2 documents are duplicate. What could be the ...
-1
votes
1answer
546 views

Benchmarking Mongodb Queries Without cache

I want to benchmark some Mongodb queries by calculating their execution time but I could not find a way to do so without caching : The first time I execute a query it takes a decent amount of time and ...
-1
votes
1answer
213 views

Selective synchronization between distributed clusters

What's the best practice for the following scenario: I've an embeded device with a single, lightweight database; a powerful server with a cluster; a cluster in the cloud. I'd like to synchronize the ...
-1
votes
2answers
222 views

MongoDB or ElasticSearch

Which one of them is good to use? I'm developing a application which will have the following functionalities. Multiple users Each user will have their own database Data objects will be different; ...
-1
votes
1answer
851 views

How many replica set members consitute majority in MongoDB?

MongoDB 3.2 manual is not very clear as to what constitutes a majority with regards to write concerns in a replica set e.g. w="majority". It is somewhat subjective. In a replica set of 10 members ...
-1
votes
2answers
224 views

Mongo HDD disk grows to fast when insert / deleting data

My Mongo version is 2.6.9 I have an application that is inserting, reading and removing data from Mongo. That's all working fine. However the disk space increases exponentially. My HDD is around 120 ...
-1
votes
1answer
1k views

Mysql InnoDB vs Mongodb write performance

I need to increment a counter each time a web page is rendered. When I use mongodb to do that, I can do about 16000 writes per second on a 4 cores/8 threads CPU on a regular disk. When I use Mysql ...
-1
votes
1answer
104 views

Data containing list of all the domain names. MongoDB or MySQL?

Data containing list of all the domain names (currently present in the Internet world), along with few attributes (5-6 or maybe 10, each attribute being a column) will be considered as Big Data? ...
-1
votes
1answer
106 views

Updating Document in MongoDB without Alphabetically order

I am making one project on MongoDB and inserted some documents and now i am updating the documents by this code.. bson_init( query ); bson_append_string(query, "First", "A"); bson_append_string(...
-1
votes
1answer
141 views

Installation problems

After a fresh install of mongodb following the instruction here https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/index.html I seem to have a problem: ludo@aegir:~$ sudo service ...
-1
votes
1answer
340 views

Mongodb upgrade from 3.0 to 3.2

I have upgraded the mongodb from 3.0.15 to 3.2 mongodb3.0.15 Configuration : Three shards Three config servers mongodb3.2 Configuration : Three shards Three config servers No replica sets I ...
-2
votes
1answer
38 views

How sharding of databases effect ACID property or transactions?

MySQL (and other Relational Databases) are known to be ACID compliant with respect to transactions. However, when databases are sharded, does the ACID property of transactions break since now ...
-2
votes
1answer
16 views

Please guide me to change 1 node standlone to 2 node 1 arbiter Replicate Set [closed]

Please guide me to change 1 node standlone (have data) to 2 node 1 arbiter Replicate Set
-2
votes
1answer
47 views

Is MongoDB an appropriate choice for storing large files as compared to MySQL? [closed]

I'm working on a project to store large JSON files (~1 MB each) in a database, with 10 of these files linked to one user profile. Normally I would use MySQL, and have two tables, one with the meta ...
-2
votes
1answer
105 views

MongoDB failed to start after adding keyFile config

I have issue with mongod service after adding keyFile in config. I follow instruction from here : https://docs.mongodb.com/manual/tutorial/deploy-replica-set-with-keyfile-access-control/ after adding ...
-2
votes
2answers
45 views

What DB should I use in my case? [closed]

I'm writing a software in C# that downloads some data from a website and stores it in a DB daily. The data is cases that were processed at that day. Each case has attributes like case_creation_date,...
-2
votes
1answer
510 views

MongoDB Sharding Configuration

I am trying to setup a sharding on Windows Server 2008 R2. I have a batch file in which i added the following commands: When I try to connect to mongos with the default port, I get an error (unable ...
-2
votes
1answer
122 views

Disk space problem regarding MongoDB [closed]

I have 12 servers in which there are 4 replicas. The architecture of the mongo servers and the disk spaces are present like: 1st replica s1-rep1 - 287GB s1-rep2 - 0GB s1-rep3 - 0GB 2nd replica ...
-2
votes
1answer
19 views

How to analyzing files diagnostic.data? [closed]

I had the incident in my database and I has the files diagnostic... This files is a good way to analyzing the problem? My plan is use the files the diagnostic for the shows the evidences after a time ...
-2
votes
1answer
135 views

Mongodb slave shut down

I started a mongodb master slave, but due to technical issues the slave server crashed. I restarted it and the mongod proccess as well with the host parameter, but for some reason the slave isn't ...
-2
votes
1answer
477 views

How to configure maximum number of connections of MongoDB server on Windows?

I need to run a Java program that have massive amounts of read requests from a Mongodb instance hosting on a Windows machine. How can I boost the speed to read? I googled similar topics but they are ...
-2
votes
1answer
186 views

Why are writes failing in MongoDB?

Here is the information about my development environment: Microsoft Visual Studio Community 2015 .NET Framework 4.6 ASP.NET MVC assembly System.Web.Mvc Version=5.2.3.0 MongoDB.Driver 2.0.1.27 ...
-3
votes
1answer
341 views

Compare MongoDB and MySQL [closed]

Can anyone help me to make right decision for choosing scalable and reliable database? I have to create 3-4 tables with around 200 columns each and these tables will have around 5000 data records. As ...
-3
votes
1answer
57 views

How to make it Secure? [closed]

I am building a website ( a platform ) which will have people communicate between each other and there is bound to be money transactions. The amount of money in each customers account will be kept ...
-3
votes
1answer
92 views

How to view and export database content? [closed]

I'm trying to view the actual entries, not the backend identifiers. > db.<collection>.find({"_id": "486b4ca55b144b119f4551417c5798c8"}).pretty() { "_id" : "...
-4
votes
1answer
6k views

Create more mongodb concurrent connections

We are using mongodb 3.4.5 version I would like to use more concurrent connections. Available connection showing 8 lakhs but the connection establishing is 100 by 100. For example,if we create 20,000 ...