Skip to main content
0 votes
0 answers
38 views

I have a branch management system in my application where some approved requests show the processor's name (like "usernme") while others show "Legacy". The issue Logs always show ...
Dipanshu Rawat's user avatar
1 vote
1 answer
69 views

I am having a strange (to me) an issue with golang mongodb connector. The current problem is that I have a db retrieval function that actually returns no errors, but the struct expected is just not ...
Ilian Zapryanov's user avatar
1 vote
1 answer
61 views

I'm working with MongoDB transactions (Node.js, replica set). Inside a transaction, I update a document in a way that changes the value of a field that is covered by an index. Later in the same ...
Bear Bile Farming is Torture's user avatar
Best practices
0 votes
3 replies
67 views

Trying to solve a conundrum I have in writing some queries. I’ve traditionally used simple find operations (and cursor operations for paging functionalities), but need something more complex to ...
Snappawapa's user avatar
  • 2,092
3 votes
1 answer
64 views

exports.getAllProducts = async (req, res) => { try { console.log(req.query); const queryObj = { ...req.query }; const excludedFilters = ["page", "limit", "...
ahmad fakher's user avatar
-1 votes
1 answer
56 views

i have some problems in production using mongo We have python using mongo and mongo-express for ui. And we are facing performance issues, after research i found db.currentOp() to see queries which are ...
Zesshi's user avatar
  • 522
1 vote
0 answers
50 views

Say I have a document in a Mongo collection that looks like the following: { "_id": "01:550204", "somefield1": "someValue1", "somefield2": "...
djsumdog's user avatar
  • 2,828
-2 votes
1 answer
98 views

I’m working with a MongoDB compound index like this: db.users.createIndex({ gender: 1, city: 1, age: 1 }) Suppose city has only a few possible values, e.g., "Chicago", "LA", "...
Bear Bile Farming is Torture's user avatar
-3 votes
1 answer
103 views

https://mongoplayground.net/p/2CHyeuaG0y0 db.test.aggregate([ { $match: { $or: [ { cheese: { "$exists": true } }, { ...
Bear Bile Farming is Torture's user avatar
0 votes
1 answer
88 views

I'm using MongoDB Atlas 7.0 on a dedicated cluster and encountered a bizarre issue where a document in one of my collections mysteriously lost all its fields except for the _id. I performed a ...
ARTK's user avatar
  • 1
0 votes
1 answer
95 views

I’m working with a collection where documents contain an array of subdocuments, for example: { "_id": 1, "tasks": [ { "priority": 2, "dueDate": "...
Bear Bile Farming is Torture's user avatar
-1 votes
1 answer
78 views

I have a users collection with a compound index: db.users.createIndex({ bin: 1, gender: 1, age: 1, location: 1, // ... other fields }); When I query like this: db.users.find({ bin: X, ...
Bear Bile Farming is Torture's user avatar
0 votes
1 answer
58 views

I am working with MongoDB and have a compound index on a collection, e.g., { a: 1, b: 1 }. I want to understand the performance implications when updating documents with respect to the fields in this ...
Bear Bile Farming is Torture's user avatar
2 votes
0 answers
145 views

Mongoose connection to MongoDB Atlas fails with queryTxt ETIMEOUT I’m trying to connect my Node.js app to MongoDB Atlas using Mongoose, but the connection fails with a timeout error. Here’s the error ...
Kevin L's user avatar
  • 21
-2 votes
1 answer
85 views

index: { "name": "tar", "key": { "tar.a": 1, "tar.b": 1 } tar is an array of subdocuments. query: ...
Bear Bile Farming is Torture's user avatar

15 30 50 per page
1
2 3 4 5
1167