best practices for NoSQL database design
I have just started using a NoSQL document based database (MongoDB) and i’m curious about the best practices for designing databases.
What is the recommended MongoDB schema for this quiz-engine scenario?
I’m working on a quiz engine for learning a foreign language. The engine shows users four images simultaneously and then plays an audio file. The user has to match the audio to the correct image. Below is my MongoDB document structure. Each document consists of an image file reference and an array of references to audio files that match that image. To generate a quiz instance I select four documents at random, show the images and then play one audio file from the four documents at random.
Should I try to write simple key-value storage by myself? [closed]
Closed 10 years ago.
Why is NoSQL faster than SQL?
Recently I was asked:
NoSQL as file meta database
I am trying to implement a virtual file system structure in front of an object storage (Openstack). For availability reasons we initially chose Cassandra, however while designing file system data model, it looked like a tree structure similar to a relational model. Here is the dilemma for availability and partition tolerance we need NoSQL, but our data model is relational.
Static Tables vs Dynamic Entity Attributes Storage Configurations
I am trying to figure out a better way to decide table storage configurations whether it will use static configurations using tables or dynamic configurations using EAV (entity-attribute-value)
Is Neo4j graph database sufficient to itself for all query types? [closed]
Closed 8 years ago.
Why is NoSQL better for this scenario?
Hypothetical scenario: Let’s say we are downloading JSON from Facebook with details of a user’s friend’s checkins, posts, etc… These come in as one document per friend per activity, so with 8 activities a user with 300 friends will cause our system to make 2400 requests to Facebook, downloading 2400 JSON documents.
How best to merge/sort/page through tons of JSON arrays?
Here’s the scenario: Say you have millions of JSON documents stored as text files. Each JSON document is an array of “activity” objects, each of which contain a “created_datetime” attribute. What is the best way to merge/sort/filter/page through these activities via a web UI? For example, say we want to take a few thousand of the documents, merge them into a gigantic array, sort the array by the “created_datetime” attribute descending and then page through it 10 activities at a time.
NoSQL use cases [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]