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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Dynamic data in a database

1 点作者 x0ner超过 14 年前
I am trying to figure out whether or not I should make the switch from a standard database to something new and fancy like mongodb, but I am still unsure how my problem fits into either solution.<p>Essentially what I have is data that grows with time, so a column based database seems likely to cause headaches in the near future. I should also note that I receive all my data in a JSON format, so I was leaning towards a mongo solution given those facts. It seems pretty keen on storing data in that object based format.<p>I think my only concerns are how do you do match up data from one collection to another. Say for instance I wanted to organize my data in such a form so that I had an entry collection, a hash data collection and then a results collection. How would I associate those details with a given entry within the entry collection? Or would I just store it all together?

2 条评论

maxdemarzi超过 14 年前
Brandon,<p>I think you need to give us a bit more information about your data in order to get meaningful answers.<p>When you say "data grows with time", you mean the number and type of fields for an "entity" change right?<p>Mongo or any document db fits that purpose well. I am not sure I understand your question about matching things up? You can store all "related" objects together in one document, you can "link" objects together like done in Riak (or with a list of incoming and outgoing relations in the document) or you can use a graph DB (like Neo4j).
Skywing超过 14 年前
You might also want to check out Redis. I use both MongoDB and Redis. I don't quite understand your requirements or data schema, though.