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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Top 5 MongoDB gotchas

13 点作者 imslavko超过 11 年前

3 条评论

arkham超过 11 年前
Just to clarify on positive&#x2F;negative limits on a cursor: if the limit number is negative, then the database will return that number of results and close the cursor. No further results for that query can be fetched. If the limit is positive you can leave the cursor open to receive further results, hence the option for both. (see <a href="http://stackoverflow.com/a/11995057/1148648" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;11995057&#x2F;1148648</a>)
nasalgoat超过 11 年前
So not only is performance abysmal, the query language has several non-obvious syntax problems. In retrospect, the idea of using JSON as a query language seems ill-advised and counter-intuitive.<p>I&#x27;m glad I am finally rid of MongoDB in my day-to-day job. I won&#x27;t miss it.
评论 #7021175 未加载
BuzzKilla1960超过 11 年前
Wouldn&#x27;t the simpler, faster and more appropriate syntax be<p>if (N &gt; 50 || N &lt; 1) ??
评论 #7021068 未加载
评论 #7020631 未加载
评论 #7020629 未加载