Things I wish I knew about MongoDB a year ago
snmaynard.com
Things I wish I knew about MongoDB a year ago
1–10 of 111 posts
Re: Things I wish I knew about MongoDB a year ago
#2EDIT: Actually, looking at the bug reports, sounds like maybe lock contention on the index?
The master/slave replication problem seems bad but I think it can be worked around (for my particular project) with a flag on the user session ... if they've performed a write in the last 30 seconds, set slaveOkay = false. Users who are just browsing may experience a slight delay in seeing new documents but users who are editing stuff will see their edits immediately.
Re: Things I wish I knew about MongoDB a year ago
#3Re: Things I wish I knew about MongoDB a year ago
#4Re: Things I wish I knew about MongoDB a year ago
#5In what use cases does mongo kick mysql's ass?
I've used it a couple of times in hobby projects and enjoyed not maintaining a schema. I read so many of these 'gotcha' style articles and for example one commenter here wants to have a manual "recently dirty" flag to combat the master / slave lag mentioned in the article. I know it's faster (tm) but once you have to take in to account all this low level stuff you have to worry about yourself wouldn't it just be better to rent/buy another rack of mysql servers and not worry about it?
Look forward to learning something...
Re: Things I wish I knew about MongoDB a year ago
#6I'm so glad this wasn't another case of someone just ranting about using mongo for the wrong purpose and being mad about it a year later.
Re: Things I wish I knew about MongoDB a year ago
#7Genuine question: In what use cases does mongo kick mysql's ass? I've used it a couple of times in hobby projects and enjoyed not maintaining a schema. I read so many of these 'gotcha' style articles and for example one commenter here wants to have a manual "recently dirty" flag to combat the master / slave lag mentioned in the article. I know it's faster (tm) but once you have to take in to account all this low leve…
Re: Things I wish I knew about MongoDB a year ago
#8Re: Things I wish I knew about MongoDB a year ago
#9Genuine question: In what use cases does mongo kick mysql's ass? I've used it a couple of times in hobby projects and enjoyed not maintaining a schema. I read so many of these 'gotcha' style articles and for example one commenter here wants to have a manual "recently dirty" flag to combat the master / slave lag mentioned in the article. I know it's faster (tm) but once you have to take in to account all this low leve…
IMO there is no rational explanation to this phenomena other than: people are different. Some get bored with stored procs and want same hassle but in another form.
Re: Things I wish I knew about MongoDB a year ago
#10The inconsistent reads in replica sets is something we've come across with MySQL read slaves as well. I think it's a gotcha of that whole model of replication, rather than a MongoDB-specific issue.
When we saw it before, ensuring that a given request which issued a write also read from the master was sufficient. (sub-second replication delay).