154
votes
6answers
68k views

MongoDB vs. Cassandra [closed]

I am evaluating what might be the best migration option. Currently, I am on a sharded MySQL (horizontal partition), with most of my data stored in JSON blobs. I do not have any complex SQL queries ...
31
votes
1answer
3k views

MongoDB Schema Design - Many small documents or fewer large documents?

Background I'm prototyping a conversion from our RDBMS database to MongoDB. While denormalizing, it seems as if I have two choices, one which leads to many (millions) of smaller documents or one which ...
20
votes
2answers
3k views

Simulating relations in MongoDB

Being one of the most popular NoSQL solutions MongoDB has most of the advantages of this approach. But one issue I'm still struggling with is how reflect object relations in NoSQL data store, ...
14
votes
3answers
2k views

How should I implement this schema in MongoDB?

I'm trying to write a tracking script and I'm having trouble with figuring out how the database should work. In MySQL I'd create a table that looks similar to User: username_name: string ...
13
votes
4answers
11k views

MongoDB vs. Cassandra vs. MySQL for real-time advertising platform

I'm working on a real-time advertising platform with a heavy emphasis on performance. I've always developed with MySQL, but I'm open to trying something new like MongoDB or Cassandra if significant ...
12
votes
1answer
2k views

mongodb schema design for blogs

How would you design the schema for a blog-like site with document-based databases (mongodb). The site has the following objects: User, Article, Comment. User can add Comments to Article. Each User ...
12
votes
3answers
4k views

MongoDB - too much data for sort() with no index error

I am using MongoDB 1.6.3, to store a big collection (300k+ records). I added a composite index. db['collection_name'].getIndexes() [ { "name" : "_id_", "ns" : ...
10
votes
3answers
2k views

MongoDB embedded vs. reference from performance perspective

I read that embedding is better from a performance point of view: "If performance is an issue, embed." (http://www.mongodb.org/display/DOCS/Schema+Design) and most guides always say contains should be ...
9
votes
2answers
2k views

MongoDB Approaches for storing large amounts of metrics / analytics data

We are planning on using MongoDB to store large amounts of analytics data such as views and clicks. I'm unsure on the best way to structure the documents within MongoDB to aid querying and reduce ...
8
votes
3answers
703 views

Pros/cons of MongoDB or MySQL for this purpose

I'm looking for a bit of help or guidance on which database to use for a project. If you can raise any points, or note flaws, answer any questions or promote either database type for the purpose I'm ...
8
votes
1answer
1k views

MongoDB relationships for objects

Please excuse my english, I'm still trying to master it. I've started to learn MongoDB (coming from a C# background) and I like the idea of what is MongoDB. I have some issues with examples on the ...
8
votes
1answer
1k views

Twitter-like app using MongoDB

I'm making an app that uses the classic "follow" mechanism (the one used by Twitter and a lot of other apps around the web). I'm using MongoDB. My system has a difference, though: an user can follow ...
8
votes
2answers
2k views

Understanding MongoDB (and NoSQL in general) and how to make the best use of it

I am beginning to think that my next project I am wanting to do would work better with a NoSQL solution. The project would either involve a ton of 2-column tables or a ton of dynamic queries with ...
8
votes
4answers
619 views

How does MonogoDB stack up for very large data sets where only some of the data is volatile

I'm working on a project where we periodically collect large quantities of e-mail via IMAP or POP, perform analysis on it (such as clustering into conversations, extracting important sentences etc.), ...
7
votes
4answers
6k views

When to use MongoDB

I'm writing an application that doesn't necessarily need scaling abilities as it won't be collecting large amounts data at the beginning. (However, if I'm lucky, I could down the road potentially.) I ...

1 2 3 4 5 13
15 30 50 per page