TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

12 Months with MongoDB

145 点作者 meghan超过 14 年前

8 条评论

michaelchisari超过 14 年前
Alright, so, I fully understand the scalability reasons for using MongoDB, but I need someone to clearly explain to me when NoSQL would be a better solution than SQL <i>from a development standpoint</i>. Because like someone pointed out, Postgres without fsync can be just as fast.<p>What is the advantage of giving up the ability to use SQL and the associated relational algebra that has long been established in that query language? I'm not asking to start a flame war, I'm sincerely interested. Can someone give me a use case for when NoSQL would have a clear advantage over SQL?
评论 #1832226 未加载
评论 #1832189 未加载
评论 #1832215 未加载
评论 #1832217 未加载
评论 #1833620 未加载
评论 #1832214 未加载
评论 #1833423 未加载
评论 #1832567 未加载
评论 #1832296 未加载
评论 #1833118 未加载
评论 #1832363 未加载
megaman821超过 14 年前
It is kind of odd that speed is the main motivation to switch from MySQL. Horizontal scaling is the usually given reason. From what I have seen Mongo achieves most of its speed by not using fsync by default. There were some slides floating around a while ago that showed Postgres at about the same speed by turning off fsync.
评论 #1832811 未加载
评论 #1832244 未加载
评论 #1832157 未加载
评论 #1832225 未加载
wslh超过 14 年前
Only had 5 days with MongoDB and I found it a good alternative for persistence of basic data structure in Python, my main concern was something that can $set individual elements of a JSON instead of retrieving the whole doc and modify it.
评论 #1833627 未加载
评论 #1833136 未加载
j_baker超过 14 年前
Dumb question: the author talks about not having to use caching because Mongo has built-in caching. Don't most RDBMSes also have built-in caching?
评论 #1833431 未加载
评论 #1832605 未加载
sigzero超过 14 年前
From the tutorial:<p>SELECT * FROM things WHERE name="mongo"<p>================================================<p>&#62; db.things.find({name:"mongo"}).forEach(printjson); { "_id" : ObjectId("4c2209f9f3924d31102bd84a"), "name" : "mongo" }<p>I am having a hard time finding the benefit of that except you can do it programmatically and not step out of your language of choice and into SQL.<p>I am just looking into this...so maybe the lightbulb will get brighter as I go through the docs for MongoDB.
semipermeable超过 14 年前
Has anyone had experience comparing MongoDB and HiveDB from apache? I briefly considered both of them over a year ago before realizing that they weren't quite yet prime time for my application, and I've not had time to look at them since. I'm curious to see how they've evolved in practice.
jrosoff超过 14 年前
Great writeup! Couple questions:<p>- I'm curious why querying before a write makes such a big difference. I would have guessed that updating a document that's not in RAM would first load it into RAM, then perform the update. Does the write get applied to disk without loading the page into RAM first? If you do an update to a document that is not in RAM, is it in RAM following the update?<p>- Can you elaborate on the corruption that occurred to both the master &#38; the slave during a DAS failure? We have seen something similar in our deployment (high write volume leading to corruption in both master &#38; slave. required repair to recover. ran on a partially functioning slave during the repair), but were unable to identify the root cause.
评论 #1832202 未加载
weixiyen超过 14 年前
Where are the "MongoDB is Web Scale" jokes? crickets. If you are not using MongoDB, you are missing out badly and are probably developing at a much slower rate than someone who is.
评论 #1832075 未加载
评论 #1832102 未加载
评论 #1832330 未加载
评论 #1832072 未加载