Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
0 answers
37 views

in what DB can personal information be fully encrypted in database, so to render data breaches less worth it? [closed]

I am here to ask if there would be ways to make databases more secure by storing all my information in an encrypted format. I read that MongoDB features data encryption even when the data is in ...
Rho Phi's user avatar
  • 1,230
0 votes
1 answer
29 views

Performance impact of updating leading vs. trailing fields in a MongoDB compound index

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
0 votes
0 answers
44 views

How do we model the data in Mongodb which requires Aggregation [closed]

I have a collection defined in MongoDB like, type EmployeeAttendance struct { Id mtdb.ObjID `bson:"_id,omitempty"` SiteId string Tenant string ...
Akon_Namikaze's user avatar
2 votes
0 answers
56 views

MongoDB Atlas connection error: queryTxt ETIMEOUT with Mongoose

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
1 vote
1 answer
40 views

MongoDB $unset with all positional operator $[] only if array field exists

I'm trying to use the $[] (positional array-wide update operator) to $unset a field from all nested documents in an array. Imagine a document like this: { "_id": 123, "orderDate&...
quietmint's user avatar
  • 14.2k
-1 votes
1 answer
75 views

can mongoDB use the full depth of a compound index on an array of subdocuments?

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
0 votes
0 answers
49 views

MongoDB database is getting deleted automatically [closed]

I recently got a server and set up MongoDB on it for my application. The problem I’m facing is that my application’s database keeps getting deleted on its own. I’ve encountered this issue three times ...
Cadillac's user avatar
0 votes
0 answers
70 views

MongoDB target fails with 401 error on Prometheus web UI

We use Azure managed Prometheus and are trying to integrate it with Atlas MongoDB. We followed this tutorial to implement this integration. We got the below scrape config following the above tutorial. ...
Arun's user avatar
  • 132
0 votes
2 answers
41 views

MongoDB Find Two Values from array & add them to variables

I have the following object: { _id: 'id_value', formHeader: [ { label: 'Operation Sequence', value: '5.00' }, { label: 'Operation Code', value: 'IV1' }, ...
Felipe Vidal's user avatar
-5 votes
1 answer
63 views

Can MongoDB use an index for $exists: false on an indexed field? [closed]

Given a aggregation pipeline like this, in which I use a $match with { $exists: false } on a indexed field: db.collection.aggregate([ { $match: { myField: { $exists: false } } } ]) ...
Bear Bile Farming is Torture's user avatar
0 votes
0 answers
36 views

MongoDB/Mongoose: Calculating large time series differentials in Node.js is too slow (~5–6 seconds) despite indexing and $slice

I’m building a financial backend in Node.js/Express that serves bond yield differentials for two countries at minute granularity. Each country+bond maturity pair is stored in MongoDB as a single ...
ivanbosk's user avatar
0 votes
1 answer
45 views

RxJS Reactive way to handle async error callbacks like in finally

I'd like to await an async function regardless if there is an error or not. I am curious is there a more reactive and cleaner way to do this. In my code there are two session.endSession() and couple ...
TheSoulkiller's user avatar
0 votes
1 answer
83 views

Generic mongoose dynamic module cannot inject options

I wanna have a dynamic module which should take care of registering mongoose for me. Right now I have a problem with injecting the options asynchronously when I am invoking MongooseModule.forRootAsync(...
Mohammad Jawad Barati's user avatar
0 votes
0 answers
76 views

How to read data from MongoDB collection using SparkSession into a Spark DataFrameReader?

Spark reading data from MongoDB(ver 7.0) and DocumentDB(ver 4.0) and loading into the spark DataFrameReader is failing when DataFrameReader.isEmpty() method is called . SparkSession and ...
Sandeep Reddy CONT's user avatar
0 votes
1 answer
39 views

Apache Spark Error: Cannot cast STRING into a StructType(StructField(subFieldA,StringType,true)) (value: BsonString{value='{}'})

I’m reading documents from DocDB (MongoDB) into Spark using the mongo-spark-connector. One of the fields, fieldA, is a nested object. If fieldA is missing in a document, I replace it with an empty ...
fancybear's user avatar
  • 119

15 30 50 per page
1
2 3 4 5
11704