MongoDB is a document-oriented database.
Questions tagged [mongo]
21 questions
14
votes
2 answers
Can SQL Server and Mongo be used together?
We have a large news-oriented site that has high web traffic. The architecture is your often seen DB - Repo Layer - Services Layer - Asp.Net MVC. The problem that we've been seeing is around read performance. It turns out that all this DDD domain…

John
- 479
- 2
- 4
- 9
9
votes
5 answers
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 server presents the data as either a dot plot…

Mark
- 79
- 8
5
votes
2 answers
What's the best way to modularize a User schema so it's generic
I have a database design question. Basically I want to be able to create a schema for a User model, then use this User model in other models that extend User but I want to design it in such a way that it's generic enough to be used in every…

AntelopeSalad
- 151
- 3
5
votes
1 answer
Is there an easy way to map directory structure to a MongoDB schema?
I'm trying to store a directory structure, including files and their content, in MongoDB. The work is part of a synching app, and is using in Node/Mongoose.
Now, I'm new to Mongo, and it's late here - is the idiomatic implementation as easy as it…

blueberryfields
- 13,200
- 8
- 51
- 87
4
votes
1 answer
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 thousands of hierarchical directories.
I can come…

Ralph
- 143
- 1
- 6
4
votes
2 answers
Implementing Scheduling Within an Application
I'm building an app and the end user will be using an Admin screen to schedule content on the front page. They will be choosing two dates, a start date and an end date.
Obviously I don't want to cycle through the entire collection to see if todays…

Sara Chipps
- 231
- 1
- 8
3
votes
1 answer
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. Applications issue queries to a query router that
…

Khan
- 133
- 1
- 5
2
votes
2 answers
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 trying to get my head around the best-practice for…

dferraro
- 331
- 2
- 3
- 10
1
vote
3 answers
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 users selected is based on the criteria in the…

alaboudi
- 213
- 1
- 6
1
vote
1 answer
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 can like items of several colors
items can use several colors
I need to be able…

mostafawornout
- 121
- 5
1
vote
1 answer
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 via the API on their own routes.
In all…

Slepton
- 51
- 3
1
vote
0 answers
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 collection called users, I would like to add a structure…

tt9
- 611
- 7
- 19
1
vote
0 answers
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 from around 50 different APIs from local governments…

Martyn
- 795
- 8
- 21
1
vote
1 answer
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 installations spread over all those devices.
Off course,…

Complexity
- 113
- 3
1
vote
0 answers
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 the database needs some kind of replication, which…

benbot
- 131
- 6