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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Building a Data Platform in 15 Minutes

3 点作者 poseid超过 11 年前

1 comment

jsteemann超过 11 年前
thanks for the great post! btw would it be possible to add the application directory to the article for download? saves at least a bit of typing.<p>re the naming of databases &amp; collections: this is indeed a good question!<p>You may want to organise all your Foxx applications in a single database, which then requires some mechanism to tell collections from different applications apart. Imagine you have two applications that both need to store &quot;users&quot; independently. Having just one collection named &quot;users&quot; would cause conflicts, so in this case it makes sense to prefix collections with the application name &quot;myapp_users&quot;. On the opposite, putting all applications into one database also allows you to share collections between apps. For example, it allows to share users between two applications so you can implement single-sign on etc.<p>If your design decision is to put app goes into a single database, prefixing collections with the application name would still work but would be just overkill.<p>So in the end, how to best organise apps in databases &amp; collections depends on your requirements. Foxx establishes some conventions on the collection naming, but if they don&#x27;t fit your needs, it&#x27;s still possible to override the default names and use different ones.