Configure IRSA to access mongodb cluster from EKS pod
I'm trying to setup a IRSA(Iam Role for Service Account) in order to acces mongodb cluster from EKS cluster.The IRSA will then be attached to my EKS pod.(The goal is to setup passwordless...
View Articlesorting behavior and sorting sequence for mongodb
Does MongoDB use a different sort sequence order when sorting within a $search operation compared to a normal sort operation?case 1:db.collection.aggregate([{ $search: { index: "default_multi_sort",...
View ArticleWhy does the $search aggregation make every other step so much slower? (v7.0.11)
I was experimenting with Atlas Search in MongoDB and I found a strange behavior.Consider a collection of 100000 documents that look like this:{_id: "1",description: "Lorem Ipsum",creator: "UserA"}With...
View ArticleTrouble with prefilters in MongoDB Atlas and Langchain: 'Path needs to be...
How do I use prefilters with langchain and mongodb atlas?Here's my example models:class Question(Document): content = StringField(required=True)class ResponseFragment(Document): question =...
View ArticleConnecting Google Cloud Build to Private Endpoints
I have a VPC network and that network has a private endpoint for my database connection. All servers are able to connect to the database without fail. However, once I turn on a cloud build (in a...
View Articlepipeline with only simple $lookup stage automatically unwinds the data in the...
I have two collections "users" and "persons", the "users" collection has an ObjectId of the "persons" collection ("person_id: "ObjectId("some_string")", I'm trying to get all users with the related...
View ArticleHow to do forever anonymous authentication with realm?
I'm trying to build an "offline first" react native app. Basically the user can use the app without signing up, but can later decide to sign up to sync data across all devices.I went for realm but it...
View ArticleWhat is RTT connection and monitoring connection in atlas?
I am using this documentation to calculate the number of connections my service will have:docs/manual/tutorial/connection-pool-performance-tuninginstances of the python application that connects to...
View Articledb to bigQuery from mongodb atlas
want to create a trigger in MongoDB Atlas that sends data directly to BigQuery via an HTTP request whenever a new document is added to my collection. I understand that I need to use JavaScript and do...
View ArticleReturning all documents in MongoDB Atlas Vector Search
I have created an MongoDB atlas vector index LocationSemanticSearch based on location.my api fileimport base64# import ioimport osfrom flask import Blueprint, jsonify, request# from PIL import...
View ArticleMongoDB connection error: MongoTimeoutError: Server selection timed out after...
I am trying to create a fullstack app reading the following tutorial:https://medium.com/javascript-in-plain-english/full-stack-mongodb-react-node-js-express-js-in-one-simple-app-6cc8ed6de274I followed...
View ArticleLocal atlas deployment raise "Get "https://production.cloudflare.docker.com...
I use atlas deployments setup for local atlas devlopment,It shows the following message:Creating your cluster local6606 [this might take several minutes]1/3: Starting your local environment…2/3:...
View ArticleMongoDB Atlas CMD_NOT_ALLOWED: grantRolesToUser and dropDatabase Permissions...
I am encountering issues with MongoDB Atlas permissions while trying to manage user roles and perform administrative actions. Specifically, I am facing the following...
View ArticleUnresolved reference after try/catch added
I have the following code I'm trying to debug and want to add a try/catch block to see why it is crashing. When I add that though, it gives me an unresolved reference a few lines down, as noted in the...
View ArticleHow to connect Google App Engine with MongoDB Atlas?
I'm trying to connect Google App Engine with my existing MongoDB Atlas instance. The issue is that I cannot whitelist an IP directly as I would do it with a custom server. So I followed this tutorial...
View ArticleSpring Boot connect to Atlas MongoDB issue
I am trying to connect my Atlas MongoDB instance from Spring Boot using the following...
View ArticleMongodb Atlas FindByIdAndDelete operation timed out
I am using Postman to test deleting a document on Mongodb atlas in a NextJs 14.2.4application using the api router.This is the route:import { connectToMongoDB } from "@/app/lib/db";import Employee from...
View ArticleAttempt to delete a document on Mongodb Atlas times out and returns an error
I am using Postman to test deleting a document on Mongodb atlas in a NextJs 14.2.4 application using the api router. The problem is that my delete methods time out and the document is not deleted. This...
View Articlecant reach atlas mongo service from docker
i have a rest api golang app.with go run . everything works fine, no error.then, I dockerize it on localhost. everything seems fine, but endpoints that are connecting to mongo are not working and I am...
View ArticleHow to Optimize MongoDB Aggregation Pipeline with Keyword Search and Sorting...
I am working on a Laravel project that uses MongoDB via MongoDB Atlas. I have a collection with millions of documents, and I am running a complex search query that includes keyword search, sorting, and...
View Article