Questions tagged [mongodb-3.6]

Useful links

Changelog

Documentation

Related Tags

  • - Main and generic mongodb tag
  • - JSON document which defines constraints on the structure of our collections
25 questions
6
votes
2 answers

Why does BCrypt no longer accept hashes?

Last week I upgrade Fedora to the brand new 28 release, which came with a mongodb upgrade to 3.6. See How to repair mongodb service after an upgrade to Fedora 28? for how I managed to resolve my first problem which was that mongod would no longer…
psychoslave
  • 2,783
  • 3
  • 27
  • 44
6
votes
7 answers

Mongorestore seems to run out of memory and kills the mongo process

In current setup there are two Mongo Docker containers, running on hosts A and B, with Mongo version of 3.4 and running in a replica set. I would like to upgrade them to 3.6 and increase a member so the containers would run on hosts A, B and C.…
mpartan
  • 1,296
  • 1
  • 14
  • 30
3
votes
1 answer

How to run mongodb instance in ERROR log level mode?

Not able to run mongodb instance in ERROR log level. As defined by mongodb documentation, by default verbosity is 0 which includes information messages. But increasing verbosity to 1-5 will include debug level messages. I need only error messages to…
3
votes
1 answer

Create mongo change stream in the mongo shell

MongoDB introduced change streams in their 3.6 release. I wanted to implement mongo change stream in my code and wanted to understand how it works. I will implement using the java driver and it's pretty clear. But I wanted to know if there is there…
Paras Diwan
  • 333
  • 1
  • 5
  • 13
2
votes
1 answer

How to increase a date field with one second value in a MongoDB 3.6?

MongoDB scripting is still pretty cryptic to me, and stuck with this problem on a 3.6 server lacking the fancier operators from 4.2. How to increase a date field with one second value in a MongoDB 3.6? For example, I'd like to do something like…
Gabriel R.
  • 1,186
  • 1
  • 15
  • 29
2
votes
0 answers

Run MongoDB 3.6 as a brew service with auth

MongoDB v3.6.4: After migrating from mongo 3.4 to 3.6 From the shell I am able to startup the db and connect to it with authentication. mongod --auth --port 27017 --dbpath /data/db However when I start mongodb with brew the authentication does not…
sznrbrt
  • 993
  • 2
  • 11
  • 32
2
votes
0 answers

Group by field of document from embedded array then by field of parent document

I'm not sure how to phrase this, but basically I want to group documents by a field from a child array, then I want to group by a field in the parent (root) document, but retaining the prior grouping. I hope an example would help here. Let's say I…
watery
  • 5,026
  • 9
  • 52
  • 92
2
votes
1 answer

Using $lookup in MongoDB

I have the following collections in mydb database: purchases: it contains documents in the following format: { _id: , name: , //customer name purchasedItems: 0: < Object > i_name: //…
Loay
  • 483
  • 3
  • 18
2
votes
1 answer

MongoDB aggregation: remove some elements from embedded array (redact?)

I'm querying a MongoDB collection to extract informations, thus only aggregation operations are possible (i.e. no update()). From several documents shaped like these, where each contains an embedded array with at least one document with a partNum :…
watery
  • 5,026
  • 9
  • 52
  • 92
1
vote
0 answers

MongoDb 3.6 lookup with _ID as a foreign key

I an to fetch data from "udatas" schema with lookup "productdata". I quess this works with mongodb 4.x but not with 3.6. Any Ideas? Udata schema { "_id" : ObjectId("5f6357500153c4d59b38f1e7"), "uId" : "112345", "pId" :…
user2544102
  • 91
  • 1
  • 6
1
vote
0 answers

Uniqueness of mongodb index

What is the difference of a unique vs a non-unique index in Mongodb in terms of 1. write performance - i believe all indexes are defined as B-tree in mongodb.If so,is there any material difference between insert performance in a collection having…
IUnknown
  • 9,301
  • 15
  • 50
  • 76
1
vote
1 answer

Mongodb: insert an object to the array, only if an element of that object in unique

I have this collection. I am trying to add object(item = {label: "Chrome", value: "chrome"}) to the array only if the value is unique, i.e. insert the whole object, item in the array foo only if array foo doesn't have any other object with the same…
Ronit Roy
  • 890
  • 1
  • 8
  • 10
1
vote
0 answers

How To Convert String To Double While Using Aggregation in mongoDB v3.6.5

I want to solve this with Aggregation if in other way possible please do let me know I Tried This with aggregation : db.CLV_MATERIAL_AGING.aggregate([ { $match: {"Material_Number" : "000000000810000010"}}, { $group: { _id: 'null', …
AmitNayek
  • 158
  • 1
  • 9
1
vote
1 answer

Can MongoDB changeStreams listen to system level collections?

With the limited documentation available on MongoDB changestreams which they introduced version 3.6 onwards, I am not able to conclude if MongoDB changestreams let us listen to system collection changes. Currently, I am interested in system.profile…
1
vote
2 answers

Mongo 3.6 debug validation using jsonSchema

I'm following a course from mongodb university to learn new features in the release 3.6, and I'm unable to resolve why my validator is invalid. This is how I created the collection: db.getSiblingDB("TSA").createCollection("claims", { validator:…
Ivan Beldad
  • 2,285
  • 2
  • 21
  • 33
1
2