Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
-1
votes
1answer
208 views

What database do most mobile start ups use? [closed]

mongodb? MySQL? PostgreSQL? If someone would add pluses and minus, let me know. Why I ask: I am a mobile startup. I need a database that supports spatial indexes. The spatial index must be able to ...
-1
votes
2answers
647 views

MongoDB replication to one machine

Does MonogDB supports replication where I have many machines with MongoDB that have different data and I want to replicate this data to one, and only one MongoDB?
-1
votes
1answer
76 views

MongoDB Performance of Overwriting an Array Field vs Individually Updating the items

The problem I am facing is basically updating the inventory when an order is received in a MongoDB database.The general hierarchy is as follows Manufacturer: { ... Items: [ ... ...
-1
votes
1answer
937 views

mongodb not working after install

I followed these steps at http://www.liquidweb.com/kb/how-to-install-mongodb-on-ubuntu-14-04/ as I usually do, since everyone on ubuntu knows the mongo docs don't work. I'm actually on kubuntu 15 I ...
-1
votes
1answer
4k views

Getting next and previous document

In a mongo collection I have a list of words (millions words). {word:'a'} {word:'b'} {word:'x'} {word:'y'} {word:'z'} I need to get lexical adjacent of a word. I am looking for most efficient method....
-1
votes
1answer
27 views

Mongodb restriction on update to only allow “$push” operator

Mongodb V 4.0 I want to restrict a user's role by only allowing new inserts to the collection. Either as a new document, or as an append to the document. I don't want the user to be able to update(...
-1
votes
1answer
124 views

Unstructured point cloud data from MongoDB vs filesystem

NOTE: I am using geographic locations here in my question, but those who do image processing likely face similar questions/issues. That is why I've titled the question using unstructured point could ...
-1
votes
1answer
28 views

How to backup documents to s3 in a particular collection older than specific dates in a mongodb collection where timeseries data are stored? [closed]

I have mongodb database. I have a collection in that stores time series data, time values are stored as ISODate. Older than few days are not required on database, but required to be backed up in aws ...
-1
votes
2answers
2k views

Unable to start MongoDB with --replSet [closed]

I have been trying to install Rocket.chat which requires MongoDB, the instruction for configuring MongoDB is here: https://rocket.chat/docs/installation/manual-installation/ubuntu/index.html#install. ...
-1
votes
1answer
31 views

Updating a mongoCluster

We have Mongodb 3.2.6 as a cluster with 2 arbiter and 2 working data nodes running. Now we want to update to version 3.4.3. What is the intended way of doing this? Can I update one by one and will ...
-1
votes
1answer
353 views

why are NoSQL databases better suitable for container platforms (cloud)?

In the article from Linux-Magazin 04/2017 Relationale Datenbanken als Container (sorry German and paywall) there is written in conclusion that NoSQL DBs are better suitable for containers than the "...
-1
votes
2answers
573 views

What database should I use to create a webmail service like gmail? [closed]

I planned to use python for my frontend with django framework. But for backend, I have no idea which database I should use. Since it involves plenty of reads and writes can someone point me in the ...
-1
votes
0answers
5 views

what built role i can choose while creating a user to connect my mongoDB instance for running mongosqld service [closed]

i am setting up mongosqld service to connect to my mongod server. for this i am creating a user just to be able to perform task required for Mongosqld service. i am looking for some suitable built in ...
-1
votes
1answer
65 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
42 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
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
38 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
290 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
454 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
96 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
297 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
225 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
209 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
531 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
2answers
219 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
827 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
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
96 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? ...
-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
45 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
2answers
42 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
443 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
107 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
474 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
340 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
56 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 ...