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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Did I choose the right NoSQL database?

2 点作者 evlapix将近 14 年前
I am frustrated and finally ready to hear the truth (as is usually the case after I've exhausted myself trying to answer the question independently.. "Did I make the right choice?"): I built a web analytics application using CouchDB. Should I have used something else?<p>[more detail]<p>I've had a great time working with CouchDB, and the guys behind it have been enormously patient helping me along on a case by case basis (I have refused them the right to tell me I should use something else, because I needed to understand why myself. Doubt is a cancer). I have rebuilt the entire back-end several times confidently, and concisely. On top of that, I'm primarily a front-end developer, so to have gotten this far is without a doubt something the CouchDB team can brag about (I can hardly manage the basics of MySQL without a cheat sheet).<p>But in my "smallest big client" tests, I haven't been impressed with what speeds I've gotten and fear launching in this state would highlight my lack of qualification to enter the market. Still though, I have pressed on. Maintaining the logic that not finishing is not an option (I have other ideas that are simpler to build).<p>So far, CouchDB has nailed real-time. The _changes makes something that seemed like a Trojan horse of complexity, as simple as a callback (when paired with NodeJS). The learning curve was slow, but ramped up quickly (remember I'm coming from no NoSQL experience). Additionally there was never a database problem I came across that wasn't due to my own error. The problems I'm having are with representing historical data quickly.<p>I completely accept that I may have botched some small detail, or missed the big picture during my implementation.. But for the number of iterations I have gone through, I feel like I should have nailed it by now. I am at least confident of that.<p>Knowing what I know now, I'm certain I can make use of some high level insight. What do you think? Was CouchDB a silly choice for my application?

5 条评论

latch将近 14 年前
What if I asked you: "Did I make a mistake using cream cheese?"<p>How the heck are you going to answer me? What's the context?<p>I think you couldn't give us less information if you tried. You need to explain the problem you are trying to solve, the solution you came up with. We need to see data model, example queries.<p>Also, this isn't a help forum. Ask in the CouchDB group, or on stack overflow.<p>For what it's worth, I'm going to guess that the problem is with how you wrote it.
评论 #2805725 未加载
pbreit将近 14 年前
For starters, as evidenced by this post, your thought processes are confusing. You might want to try and bring some focus and clarity to your tasks.<p>In the beginning, it would be surprising if you already had so much data that it is the amount of data that is causing the performance issues instead of your code or db decision.<p>For what you are doing, I would give a slight edge to Mongo.
puredevotion将近 14 年前
It is really hard to tell that CouchDB was the wrong option, since (if I understand correctly) you're doubting your choice on performance issues.<p>Performance (or lack thereof) can come from the back-end as well, such as complex algorithms. Then there's the connection between the database and the application, caching etc.<p>I have tried cassandra for a while, but my knowledge of MySQL is so far superior that I stopped bothering with NoSQL and went back to SQL.
hy将近 14 年前
Don't know about CouchDB well, but personally recommend to go to more popular one (cassandra, mongo, hbase, riak etc) so you may find better documentations and more data points as far as nosql is concerned.
plasma将近 14 年前
I'm not sure, I have not used CouchDB (have played with MongoDB, and know MySQL etc very well).<p>Your description of the problem is not that clear.