Reddit » MongoDB
166 FOLLOWERS
News, articles, and interesting stuff in general about MongoDB.
Reddit » MongoDB
3h ago
mongodb
submitted by /u/Known_Cardiologist18
[visit reddit] [comments ..read more
Reddit » MongoDB
3h ago
I have JSON data and want to implement pagination. You can think about any webshop with products loaded into pages.
I have to do 2 level sorting (never more, only 2) and apply filters. Here's an example query:
FT.AGGREGATE h:s * LOAD 3 $.id $.price $.type SORTBY 4 type ASC id DESC LIMIT 0 10
or the same in mongo
[
{ "$match": { } },
{ "$project": { "id": 1, "price": 1, "type": 1 } },
{ "$sort": { "type": 1, "id": -1 } },
{ "$limit": 10 }
]
Based on you experience would you do this in Redis or Mongo if the only goal is to make it as fast as possible? I know you'd need a lot more info, I just n ..read more
Reddit » MongoDB
5h ago
I am totally new to MongoDb so just downvote this if needed, :)
The situation is that my (small) company hired a company to build a website and this website stores user information in a MongoDB, I have login credintials and are owner there.
Basically what is stored there is when new users are created to login to our website.
What I am now looking for is a alert of somesort when new users are added, and my inital thought was if it´s possible to get a alert from MongoDB if there is a update to our database.
So this is basically my question, do anyone know if this is possible to get posibly a em ..read more
Reddit » MongoDB
22h ago
Hi everyone - beginner with mongo here,
I have a backend with postgres for my relational data and now I've integrated Mongo for some custom fields on some of my postgres tables. I'm using prisma as an ORM for both my databases and it's working fine but I'm not really sure if i should stick with Mongo for my key/value custom fields.
So, an example would be a `user` which is a table on my postgres table can have custom fields which the user can insert. Both the key and the value of that custom field will be set by the user - we can have `age` as a key, and the value would be of number type.
I h ..read more
Reddit » MongoDB
2d ago
This is for a group project at uni. We are using a React/Node.js framework with MongoDB Atlas to manage our data. Our instructor just informed us that we have to make our database management system vendor-agnostic but didn't give us details on how to proceed. We have no clue how to do this and would appreciate any help.
submitted by /u/HelpMeRonda1
[visit reddit] [comments ..read more
Reddit » MongoDB
2d ago
I am new to MongoDB. Currently, our MongoDB sharded cluster runs on CentOS 7, but since LTS support is no longer available, we are migrating it to Ubuntu 22 with MongoDB 6.0. Plan is to create a fresh sharded cluster on Ubuntu. Now, I want to know if we can directly take a mongodump from the existing cluster, which runs on version 4.2, and restore it on Ubuntu 22 with MongoDB 6.0.
Thanks.
submitted by /u/peanuts-vodka
[visit reddit] [comments ..read more
Reddit » MongoDB
2d ago
Hi everyone,
I'm encountering a frustrating issue with MongoDB on my Ubuntu 20.04LTS VPS. When I try to start the service, it fails with a "core-dump" error. Here's the output from sudo systemctl status mongod:
× mongod.service - MongoDB Database Server Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled) Active: failed (Result: core-dump) since Wed 2024-04-17 12:56:21 UTC; 8s ago Docs: https://docs.mongodb.org/manual Process: 84721 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=dumped, signal=ILL) Main PID: 84721 (code=dumped, signal=ILL) CPU: 6ms A ..read more
Reddit » MongoDB
2d ago
I am using MongoDB community server to host a server locally on a Windows computer . I wish to connect remotely from a Linux server over pymongo, but I get TimeoutException as the Python instance cannot establish a connection to my MongoDB server. However, I am able to connect to the server from the same network, just not outside my WiFi.
Local environment: OS: Windows 11 db version: v7.0.8 distarch: x86_64 target_arch: x86_64
Remote environment: OS: Ubuntu 22.04 pymongo version: 4.6.2 Python version: 3.8
Is there something I am missing? Are you not supposed to be able to host locally on comm ..read more