Questions tagged [mongo]
MongoDB is a document-oriented database.
22 questions
2
votes
3
answers
1k
views
How to synchronize cache writes in a distributed system?
I am looking for a complete pattern implementing cache-aside when used in a distributed system across multiple nodes read/writing from/to cache.
Specificly how to avoid making multiple requests to db ...
1
vote
3
answers
144
views
Selecting a large set of information from a database
So this is a topic I have never really tackled, so bare with me as I try to describe my issue and the scenario.
I have an API endpoint in my service that sends emails to a bunch of users. The set of ...
0
votes
1
answer
480
views
Store UUID Reference vs. storing string in Mongodb
I am trying to store user preference for notifications.
One way to do is store types of notification in separate collection and store UUID of that notification type in user table.
e.g. notification-...
0
votes
1
answer
1k
views
How to manage one-to-many relationship updates in MongoDB
I asked this over at SO and didn't get any responses after a couple weeks, so I figured I'd try SE...
TLDR;
How do I update nested objects in MongoDB when data referenced in those nested objects ...
1
vote
1
answer
1k
views
best approach to store "enums" shared between collections
I have several enums that need to be defined and shared between collections.
A practical example:
There are X colors available "Light Blue", "Red", "Purple"....
people ...
9
votes
5
answers
835
views
Re-architecting CPU intensive Node application to handle multiple users
A few years ago, I wrote an application that allowed users to upload a file (it's a very specific file type) to a server. It then sends instructions to the server on how to visualise the data, and the ...
1
vote
1
answer
314
views
mongodb queries architecture - resolving lots of nested referenced objects
I have an angular 8 application, with a Python + MongoDB API on the backend.
At present, I have 4 collections, namely: Users, Tasks, Companies and Groups.
All of these resource types are retrievable ...
2
votes
2
answers
1k
views
NoSQL/Mongo: Best practice for modeling 1:1 "relationships"?
I come from many years working with SQL Server. I am working now on a mobile game using GameSparks as the back-end which only supports NoSQL run on Mongo.
I am creating a Computer Card Game and am ...
3
votes
1
answer
3k
views
What is the query router in mongodb architecture of sharding?
I have read the guide and they say
Query Router Sharding is transparent to applications; whether there is
one or one hundred shards, the application code for querying MongoDB
is the same. ...
1
vote
0
answers
118
views
Structuring mongodb documents
I am fairly new to MongoDB document-based storage, and my background is in tabular databases and I am having trouble understanding the right way to model this relationship.
Currently I have a ...
1
vote
0
answers
311
views
Compiling data from multiple API sources, multiple languages, into a single database (MySQL or Mongo)
I'm thinking about a database schema, and would really appreciate if some of you could look at where I'm up to and offer some advice..
The mission - We have to write a program that will fetch data ...
1
vote
1
answer
231
views
Expert advice needed for a NoSql Database
At our company, I have been given the task to develop a Mobile Application (iOS, Android and in the future, maybe Windows).
Given those devices, it's likely that we'll have a high number of ...
1
vote
0
answers
98
views
Should mongoDB be run in a cluster?
I'm trying to implement an architecture that's similar to the coreos's production architecture (shown below)
Should I run the database as a central service or one or more of the workers?
I figured ...
4
votes
1
answer
5k
views
File system implementation in MongoDB with GridFS
I am working on two projects that will both implement a Webdav server backed by a MongoDB GridFS. In each case, there is the potential for the system to store tens of millions of files spread across ...
1
vote
1
answer
671
views
choosing Database and Its Design for Rails
I am having a difficulty in deciding the database & its structure.
Let us say the problem is like this.
For my product I have various customers( each is an educational institute)
Each customer ...