Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Custom directory for mongodb data

I specified a different directory for my mongodb data in the mongodb conf file: # Where and how to store data. storage: dbPath: /home/psr/data/mongodb # engine: # wiredTiger: # where to write ...
Prabhjot Singh Rai's user avatar
0 votes
0 answers
6 views

The backup I took with mongodb mongodump is extremely slow

I am using mongodb 7 community version. And I have a system that inserts a lot of log documents. Since I am using the Mongodb community version, I cannot use the ops manager tool used in Mongodb for ...
emreyanik's user avatar
-2 votes
0 answers
23 views

Which is the right choice for an app dating ScyllaDB or MongoDB?

How does ScyllaDB compare to MongoDB in terms of handling semi-structured data and schema flexibility? Are there any third-party solutions or workarounds needed to achieve similar functionality? How ...
Farshad's user avatar
  • 97
0 votes
0 answers
17 views

Loops not allowed on MongoDB Relational Migrator

Hi I'm trying to use MongoDB Relational Migrator to migrate my postgreSQL DB to MongoDB but I'm getting this message when I try to create a data migration job Error building job context: loops not ...
user2782149's user avatar
0 votes
0 answers
51 views

MongoDb Timeseries Data at high Load Causes Cache Pressure in Time

I'm encountering cache pressure issues in MongoDB, leading to early termination of buckets in my time series collections within a single database. Here's an overview of my system setup and the ...
Çağatay Erem's user avatar
0 votes
1 answer
17 views

MongoDB: What cause bytesRead in insert operation?

Recently we had high CPU/Memory and I/O usage on our MongoDB. While checking the logs all I found is some insert during this period. While inspecting logs I noticed most of the insert logs have ...
Basil Titus's user avatar
0 votes
0 answers
25 views

Bitnami mongod fails with 'MongoServerSelectionError'

Bitnami's Mongo image launched under virtualbox works and brings up the text console (debian11 so no X11). Debian instance starts the listener correctly according to ss -atpn. But starting mongosh ...
ArrowInTree's user avatar
0 votes
0 answers
14 views

Mongoose model creates a plural database name automatically [migrated]

I created the mongoose model below : Movie = mongoose.model('Movie', movieSchema); But in the terminal I can only access the entries by db.movies. It seems mongoose created that DB name movies on its ...
Famien's user avatar
  • 1
-1 votes
0 answers
53 views

Mongo Upgrade from 4.4 to 5.0

We have a development MongoDB cluster that runs on two nodes and one arbiter with version 4.4. We attempted to upgrade it in place, but it was unsuccessful. As a result, we started another Mongo 5.0 ...
Sudhir Shekhsaria's user avatar
0 votes
0 answers
31 views

Document Database Relationship design

I am trying to convert a relational MySQL database into a document database, as a mandatory school assignment. As shown in the ER diagram the idea of the SQL database is that a user can be registered ...
Soma Juice's user avatar
0 votes
0 answers
64 views

Why MongoDB index size is different between servers

emphasized textI imported essentially the same dataset into two different MongoDB instances, both running the same version (5.0.24). One is a single node, and the other is a replica set managed by a ...
antoine.lange's user avatar
0 votes
0 answers
29 views

I am able to login using server, client and x509 authentication in MongoDB community edition

I am trying to configure x509 authentication for mongodb community edition. Though I have configured the same, I am able to login using server as well as client authentication along with x509 auth. Is ...
dheepakraj govindarajan's user avatar
0 votes
0 answers
20 views

MongoDB WiredTiger History Store File Growth Observed During Failover

We are currently undergoing a migration from MongoDB version 4.4 to 5.0, and during this process, we have encountered some intriguing observations that deviate from our anticipated outcomes. Despite ...
user202752's user avatar
0 votes
0 answers
18 views

Mongodb speed up new shards balancing

We have huge collections ( around 3.5 TB ) that is sharded with 2 shards on mongodb. Since the collection is growing and load is getting increased on existing shards we decided to add 2 new shards for ...
Yulian Oifa's user avatar
0 votes
0 answers
60 views

MongoServerSelectionError: Client network socket disconnected before secure TLS connection was established on GKE Autopilot workload

We are in the process of migrating from CloudRun to GKE Autopilot. We have the same exact environment variables and the LoadBalancer service for the workload has the same port configuration as the ...
ift-436t's user avatar
0 votes
1 answer
37 views

How to check mongodb time series collection shard distribution

[direct: mongos] test> db.weather.getShardDistribution() MongoshInvalidInputError: [SHAPI-10001] Collection weather is not sharded we are getting this error and how to check the sharded collection ...
user avatar
0 votes
0 answers
40 views

Practices to maintain historical data via replication?

We have a use case like of banks, where we generate large number of transactions, say in transaction table and few other tables with large number of inserts, every day. Transactions are most inserted ...
Sachin Verma's user avatar
0 votes
0 answers
13 views

Getting this exception in MongoDB Failed to completely discover replica set appdbRS

There is a problem with the address: address=om-3- proud-toad.mdbtraining.net: there is no space after '3-' CAN ANYONE TELL WHERE CAN I CHANGE THE ADDRESS? 2024-01-05T13:13:58.938+0000 [DiagnosticsSvc-...
datascinalyst's user avatar
1 vote
0 answers
25 views

Primary MongoD hit 1M active sessions in cache

Overview We're running a sharded MongoDB cluster, using community edition v4.4. The primary mongod in one of the data shards ('shardX' for short) has hit active sessions in cache limit of 1M and new ...
user3752071's user avatar
0 votes
0 answers
38 views

MongoDB huge amount of temp files

I have a MongoDB replica set. The primary one creates a huge amount of temp files with the name extsort-sort-executor in every seconds, which generates more than 80Gb of temp files under 10 minutes... ...
SnackK0515's user avatar
0 votes
1 answer
75 views

MongoDB huge amount of temp files

I have a MongoDB replica set. The primary one creates a huge amount of temp files with the name extsort-sort-executor in every seconds, which generates more than 80Gb of temp files under 10 minutes... ...
SnackK0515's user avatar
1 vote
1 answer
72 views

What type of lock does MongoDB apply at the document level when reading or writing the document?

I’ve been reading the MongoDB documentation for hours, but I couldn’t find a clear and straightforward answer. When reading or writing a document in MongoDB, what type of lock (S, X, IS, IX) does it ...
dragonborn's user avatar
1 vote
0 answers
32 views

MongoDB: Queries running 3x slow on Azure Serverless Mongodb compared to MongoDb Atlas Free Tier server

I have a database in MongoDB Atlas using the free tier package. I recently transferred my data to Azure Serverless CosmosDB for MongoDB using mongoexport. After the data transfer, I've noticed that ...
Veli Eroglu's user avatar
1 vote
0 answers
50 views

Mongodb traffic analysis

I am experiencing very high traffic on a mongodb database, since we pay per traffic I would like to understand which queries/collections are responsible for most of the traffic to understand what we ...
tollo's user avatar
  • 111
2 votes
2 answers
40 views

MongoDB schema for visit and like

MySQL serves as our primary database, while MongoDB is employed for handling intensive write operations. I have been tasked with implementing a system for tracking visits and likes on products. The ...
BooRuleDie's user avatar
0 votes
0 answers
75 views

Reduce MongoDB memory usage

I have deployed a Mongo Community server docker in WSL Ubuntu and currently running MongoDB aggregate Query and downloading some data from Mongo. I set up the Mongo memory limit to 32 GB. However, ...
Muhammad Raihan Muhaimin's user avatar
0 votes
0 answers
12 views

MongoDB Update Concurrently

I want to update addresses and dependents field concurrently of mongoDb using different API through SpringBoot??? {_id: ObjectId("5effaa5662679b5af2c58829"), email: "[email protected]&...
Pranjal Badge's user avatar
0 votes
2 answers
95 views

mongodump refuses to connect with ssl

I have set up my mongod instance with the following config: net: port: 27017 bindIp: 0.0.0.0 ssl: mode: requireSSL PEMKeyFile: /config/mongo.pem CAFile: /config/ca.pem ...
taxfree's user avatar
0 votes
0 answers
93 views

Can't start MongoDB service [Error: 1067] || "msg":"*** immediate exit due to unhandled exception" || version : 7.0.4

After failing multiple times with many hours of hopeless fixing I simply typed "mongod" command in CMD:Admin and got this error. I'm attaching the screenshots.
user avatar
0 votes
0 answers
16 views

Are there any configuration flags you can set to make MongoDB start faster for integration tests?

We are running some integration tests that require MongoDB running. Unfortunately MongoDB takes about a minute to start on every run. Are there any flags or tricks that could be used to reduce the ...
tftd's user avatar
  • 101
0 votes
1 answer
32 views

Possible options for SQL and NoSQL combination for social media data

I have searched this forum for an answer but could not find anything relevant. We are designing database schemas for a social media app with posts, groups, users and chats etc and it looks like we ...
dksr's user avatar
  • 101
0 votes
0 answers
22 views

mongodb sharded cluster upgrade to 4.4

we had a mongodb sharded cluster of version 3.6. we updated this cluster to 4.0 and 4.2 respectively. then we upgrade the cluster to 4.4 based on the docs. the problem is when we are doing the last ...
user avatar
-1 votes
3 answers
103 views

Should i care about field names in JSON datatypes?

In DBMSes like MySQL, MariaDB, PostgreSQL and MongoDB, data is saved as BSON, JSON or JSONB for JSON columns or document. All of these data types use space for key names in JSON. Does internal data on ...
Ehsan Chavoshi's user avatar
0 votes
1 answer
34 views

What if Priority 0 Replica Set Members got newest oplog

I got a deployment with three nodes: A: priority 2, vote 1 B: priority 1, vote 1 C: priority 0, vote 1 In normal case, A is Primary, B/C are Secondary. Assume the at a time point, B got oplog the ...
sel-fish's user avatar
  • 101
0 votes
2 answers
85 views

mongodb atlas use secondaries to reduce cpu usage

I have M80 atlas cluster(128GB RAM and 32vCPUs) with 3 replicasets. most of the time my system use around 10% of RAM and 10% of CPU, during high load CPU spikes more than 100% leading to autoscaling ...
mahendra's user avatar
  • 101
0 votes
0 answers
39 views

when start the mongos for sharding Getting error

Quickly I giving the details, I have 4 Linux VMs with MongoDB installation. 1. Mongodb is for config so in Mongod.conf file enabled replication with shading like below replication: replSetName: "...
Aravind rajamani's user avatar
0 votes
1 answer
52 views

Why doesn't my MongoDB database start?

Who knows what could be the problem with starting the MongoDB database? PS C:\Users\Yepo> "C:\Program Files\MongoDB\Server\7.0\bin\mongod.exe" --dbpath="c:\data\db" At line:1 ...
Юра Заблоцький's user avatar
0 votes
0 answers
11 views

How can I automate trigger deployment to Mongo Atlas?

I have a couple of triggers on a Mongo Atlas cluster that I want to deploy to a number of databases on a different cluster. Is there any way to do this automatically, through a script or something ...
SQB's user avatar
  • 465
0 votes
0 answers
34 views

Mongo DB community 7.0 on MacOs monterey 12.6

Bootstrap failed: 5: Input/output error Try re-running the command as root for richer errors. Error: Failure while executing; /bin/launchctl bootstrap gui/501 /Users/marcus/Library/LaunchAgents/...
marcus's user avatar
  • 1
0 votes
0 answers
7 views

How to consult the number of connections from specifics clients or ips in my secondary nodes

I need to know how to consult the number of connections from specifics clients or ips in my secondary nodes, I have a replica set composed of 3 nodes (one primary node and two secondary nodes), the ...
miguel ramires's user avatar
0 votes
0 answers
52 views

Restoring Mongodb database in Windows by using dump taken from Ubuntu server

I have taken a dump from Ubuntu v20 server using mongodump. I need to use it on my Windows laptop. In my Windows laptop, a. from which directory should I execute the mongorestore command? b. where ...
hemant's user avatar
  • 101
0 votes
2 answers
58 views

The effectiveness of compound index where the prefix is continuous / high cardinality

schema: { time_utc: "milliseconds", city: "string", age: "integer" } index: { time_utc: 1, city: 1, age: 1 } sample query: col.aggregate([ { $match: { ...
Bear Bile Farming is Torture's user avatar
0 votes
1 answer
21 views

In Mongo 2.6, how can I tell if there are any IP based restrictions?

I have a mongo v2.6.12 cluster that I can't connect to from a new windows machine. Using TNC I've confirmed that port 27017 is accessible from the source -> destination. How can I tell if there ...
Chris Rockwell's user avatar
0 votes
0 answers
171 views

Mongo Upgrade 4.4 to 5

I am trying to upgrade mongodb standalone ver 4.4.22 to 5. I have stopped the services, made the /etc/yum.repos.d/mongodb-org-5.0.repo directory, installed the yum packages with sudo yum install -y ...
datascinalyst's user avatar
0 votes
0 answers
14 views

Advice on MongoDB data modelling

I have a schema written in mongoose, I want suggestions on how to improve this schema to scale. members: [{ user: { type: Schema.Types.ObjectId, ref: 'User', }, roles: [...
Badri's user avatar
  • 1
0 votes
1 answer
33 views

Why use $group / group_by instead of multiple requests?

Let's suppose that there are 100 types of dogs scattered across the documents of my collection. If I need to group by types of dogs and then compute some aggregate statistic about each type of dog, ...
Bear Bile Farming is Torture's user avatar
0 votes
0 answers
41 views

Mongodb database hosting limitations and options

So I'm currently working on an application in node js and I'm using mongodb as the database for the server, it all went well until I got to the point of hosting the database. I've came across mongodb ...
Binus's user avatar
  • 1
0 votes
2 answers
37 views

MongoDB account -- is it an administrator's account?

I'm more familiar with MySQL, but in my new workplace, I have to look after a MongoDB database (MongoDB 4.2.18 with Mongosh 1.1.9 running on Ubuntu 18.04.6 -- yes, it's old; upgrading is a problem for ...
Ray's user avatar
  • 113
0 votes
0 answers
26 views

MongoDB indexing for dynamic query

I'm trying to build a query optimizer for survey response data, all questions are stored in a collection and have some fields are number_of_selection, option_marked etc. Now I'm trying to build a ...
Deepak Kumar's user avatar
0 votes
0 answers
32 views

MongoDB set field in array of embedded documents to value of another field

Within my document I have an array of embedded documents. I want to set the value of one field from one of the documents in the array to the value of another field, outside the array but in the same ...
Voldrix's user avatar

1
2 3 4 5
48