For questions about Amazon's DocumentDB with MongoDB compatible databases.
Questions tagged [aws-documentdb-mongoapi]
109 questions
0
votes
0 answers
Concurrent updates to same field in MongoDB
I have the following schema:
unique_doc_id: {
title: title1,
desc: desc
listField: [listElement1, listElement2]
mapField: {someKey: someValue}
}
I have a microService1 which hosts an API used to take inputs for above document…then…

user10501730
- 13
- 4
0
votes
2 answers
DocumentDb equivalent of Mongo's arrayElemAt, expr and eq
I have following structure in documentdb
{
"_id": {
"$oid": "5bc7a1d14cedfd0006445b10"
},
"externalId": {
"$numberLong": "70285"
},
"passengers": [
{
"_id": {
"$numberLong": "3757"
},
"name": "abc",
…

Sandeep Nair
- 436
- 2
- 15
0
votes
0 answers
Google OAuth node.js script running on AWS instance times out when connecting to Amazon DocumentDB
I am using Google OAuth to authenticate users via a node.js script called user.js which is run on my AWS Instance (a VM) which calls a Amazon DocumentDB Mongo Database. The database is still fresh, I have not created any databases or users within…

IT-Biscuit
- 1
- 1
0
votes
0 answers
Why AWS documentdb is creating 3 connections for a single insert operation
I have created a AWS documentdb instance of t4g.medium size. I am trying to insert data in a collection. While monitoring the connection count in AWS monitor console, I observed that for every request 3 connections are getting created. Had any body…

Anand Gaurav
- 1
- 1
0
votes
1 answer
DocumentDB query is using the wrong index
I'm using MongoDB version 4.0.0 with DocumentDB.
I have a collection called transactions. That collection has this two indices:
{
"creation_date": -1
}
{
"project_id": 1,
"mid.id": 1
}
I'm running the following…

Ale Sanchez
- 536
- 1
- 6
- 17
0
votes
1 answer
Mongo DB - Login issue with role - Unable to login with non-root role
I have a DocDB (MongoDB Instance) running on AWS. I'm using PyMongo and MongoShell for accessing the DB.
And, I was able to login with master credentials perfectly fine. I tried to create a new user annd update the…

Raviteja Ainampudi
- 282
- 1
- 11
0
votes
1 answer
Issues connecting the AWS DocumentDB via python script - using SSH Tunneling
I'm trying to connect from my local machine to our AWS DocumentDB instance using pymongo. Our current setup is using a ssh tunnel on an ec2 instance which then connects to AWS DocumentDB. This part is working because I can connect via third party…

Nippon87
- 81
- 1
- 6
0
votes
0 answers
Does @DBRef supports on aws document db?
I am migrating a Spring App which has @DBRef annotations in implementation. Does this support in AWS Document DB?

techmagister
- 1,188
- 8
- 14
0
votes
3 answers
Scale read from change streams in documentdb
I am utilizing change streams from documentDB to read timely sequenced events using lambda, event bridge to trigger event every 10min to invoke lambda and to archive the data to S3. Is there a way to scale the read from change stream using resume…

Mr9
- 159
- 4
- 15
0
votes
1 answer
How to create Amazon DocumentDB Elastic cluster via terraform
I want to create managed MongoDb using DocumentDb on AWS via terraform.
I created a DocumentDb Elastic cluster via the UI, and it seems to work fine. Now I want to create this cluster via terraform, and I don't find documentation for it.
I read that…

Yagel
- 1,184
- 2
- 18
- 41
0
votes
0 answers
Is countDocuments() speed in DocumentDB depends on document size?
I found that countDocuments() take different time in different copy of the same db. The case is next:
counts documents same (about 70k)
structure documents the same
instance the same 4vcpu і 32 ram.
Slower db stats:
Faster db stats:
As you can…

Рома Матковский
- 139
- 1
- 1
- 10
0
votes
1 answer
How DocumentDB indexes existing documents with new index?
I have 70k documents. I create a new index. Call explain("executionStats") with newindex field in match condition shows following:
Or it may take some time? But it was created 8 h ago. Can I somehow check progress of indexing?

Рома Матковский
- 139
- 1
- 1
- 10
0
votes
2 answers
DocumentDB why query very slow?
We have collection with 70k documents. On prod our query executing about 2,8 minute. We trier reproduce same case on another instance, but with the same collection size and on the worse in performance instance query takes 6 sec. What it can be?…

Рома Матковский
- 139
- 1
- 1
- 10
0
votes
0 answers
Connecting to AWS Document DB (MongoDB) with rails mongoid
I am trying to connect to AWS Document DB (MongoDB) in rails using "mongoid" gem (7.5.1) which internally uses mongo gem (2.18)
dev:
clients:
default:
database: my_database_name
hosts:
- docdb.dev.mysite.internal:27017
…

Vipul Kumar
- 259
- 1
- 2
- 12
0
votes
1 answer
is amazon documentdb compatible with 4.0.28
Accouding to Official Amazon DocumentDB homepage, the cloud services only two versions which are 3.6 and 4.0.
But is it possible to use 4.0.28 version or another 4.X version?
I couldn't find the information exactly!
I tried to search official…

Rojojun
- 3
- 1