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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Mongita is to MongoDB as SQLite is to SQL

126 点作者 scottrogowski大约 4 年前

21 条评论

ogre_codes大约 4 年前
&quot;Mongita is to MongoDB as SQLite is to SQL&quot;<p>SQLite is a embeddable SQL implementation which has been ported to dozens of platforms with no requirements.<p>Mongita is a Python library.<p>I like Python as much as the next guy, but the comparison is pretty far off whack. SQLite is popular because it embeds everywhere easily. This doesn&#x27;t. I can&#x27;t use this on my iPhone app. It&#x27;s likely way too fat for Android and awkward at best on Android.
saurik大约 4 年前
So, by their own benchmarks, unless you are doing totally random lookups of documents by identifier--and mostly reads, with very few writes--you should absolutely use SQLite with JSON values, which absolutely destroy this project in performance?...
评论 #26883858 未加载
hardwaresofton大约 4 年前
Cool project but I have to admit I sure wish this was written on top of SQLite, rather than just mentioned it, implementing a query language shim for MongoDB on SQLite would be an amazing project. In the absence of such a project though, this is a pretty great alternative to have.
评论 #26884232 未加载
评论 #26884740 未加载
评论 #26897560 未加载
jbverschoor大约 4 年前
SQL is a language and specification.<p>How can I trust something that makes a comparison that&#x27;s not right, or a product that compares itself to mongodb
评论 #26889188 未加载
latenightcoding大约 4 年前
&gt; Mongita is to MongoDB as SQLite is to SQL<p>it really isn&#x27;t if it&#x27;s written in python
评论 #26883644 未加载
评论 #26884290 未加载
评论 #26883556 未加载
评论 #26883907 未加载
kabes大约 4 年前
Ok, if we forget the comparison with sqlite, it&#x27;s a nice and useful library for python devs Thanks for making it available.
elviejo大约 4 年前
I&#x27;m looking for &#x27;X&#x27; is to Neo4j as Sqlite is to SQL any suggestions for what project is X?
评论 #26884710 未加载
评论 #26884963 未加载
axiosgunnar大约 4 年前
How can the benchmark show Mongita be around as fast as SQLite if SQLite is written in C and Mongita in Python?<p>Genuine question!
评论 #26884564 未加载
giorgioz大约 4 年前
Very cool, I&#x27;m looking for MongoDB to be able to run on AWS Lambda and be more serverless. This seem like a step in the good direction. Personally I think JS would have been a better choice to implement this in than Python given all the mongo queries are in javascript db.collection(&#x27;users&#x27;).find({_id:&#x27;AN_ID&#x27;}) Also having it made in javascript would have open the option to embed it in the browser later on.
rvn1045大约 4 年前
This would be super nice to have when developing mobile apps. I’ve used sqllite when developing with react-native, but can see myself using a mongita type solution.
评论 #26883011 未加载
评论 #26885131 未加载
deknos大约 4 年前
what i always think about stuff like this:<p>if stuff like mongita and sqlite would exist for all kinds of databases (graph,kv,xml; as for document and sql it already exists), couldn&#x27;t we &quot;just make distributed versions&quot; if we put stuff ontop of it? like with dqlite&#x2F;rqlite with sqlite?<p>or does there have to be some inherent mechanisms withIN the database to support distributed versions?
评论 #26886372 未加载
评论 #26886291 未加载
macintux大约 4 年前
It&#x27;s telling how many killer features SQLite has, that so many people are complaining about the comparison for different reasons.
justsomeuser大约 4 年前
I think you should change your tag line:<p>- From: &quot;Mongita is to MongoDB as SQLite is to SQL&quot;<p>- To: &quot;Mongita is to MongoDB as SQLite is to MySQL&quot;<p>When I see &quot;SQL&quot; I think of the textual query language (not a server SQL process&#x2F;engine).
teryyy大约 4 年前
In memory, how does perf compare to <a href="https:&#x2F;&#x2F;github.com&#x2F;nodkz&#x2F;mongodb-memory-server" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nodkz&#x2F;mongodb-memory-server</a> ?
评论 #26884388 未加载
评论 #26884040 未加载
bvrmn大约 4 年前
It&#x27;s sad that author did not mentioned that disk engine basically stores copy of data in memory. And it seems from benchmark code that reading doesn&#x27;t hit disk at all.
评论 #26886234 未加载
jbverschoor大约 4 年前
afaict, the disk_engine does not lock the file when reading &#x2F; writing. Also, the storage engine is bson and relies on cached offsets. There&#x27;s also this non-atomic defrag method.<p>I dunno.. wouldn&#x27;t touch it with a pole wearing a hazmat suit, sorry.<p>Using sqlite for storage and querying would&#x27;ve been better. Heck, that would be pretty great for moving a few smalller (server) applications off of mongodb. Although they&#x27;re using ruby
syntonym2大约 4 年前
I mostly use SQLite for persistence - put anything in and it&#x27;s resistant against crashes and corruption. What is the persistence story with Mongita?
null4bl3大约 4 年前
The valid use cases for non SQL databases can be counted on one hand.<p>Not sure this project understands that
catchmeifyoucan大约 4 年前
Anyway to integrate it with a NodeJs project? Seems like a good fit for Electron apps!
评论 #26885750 未加载
评论 #26889626 未加载
ruffrey大约 4 年前
There used to be something similar called NeDB
评论 #26884127 未加载
评论 #26883106 未加载
kragen大约 4 年前
&quot;Mongita&quot; is a misspelling according to the DLE; the standard spelling is &quot;monjita&quot;. Literally, the word means &quot;little nun&quot;, but is the common name for flycatchers of the genus <i>Xolmis</i>. <a href="https:&#x2F;&#x2F;dle.rae.es&#x2F;?formList=form&amp;w=monjita#" rel="nofollow">https:&#x2F;&#x2F;dle.rae.es&#x2F;?formList=form&amp;w=monjita#</a> <a href="https:&#x2F;&#x2F;es.wikipedia.org&#x2F;wiki&#x2F;Xolmis_rubetra" rel="nofollow">https:&#x2F;&#x2F;es.wikipedia.org&#x2F;wiki&#x2F;Xolmis_rubetra</a><p>Unfortunately every time I see the misspelling in this thread I involuntarily cringe. I suppose &quot;MongoDB&quot; is named after a slur used to insult people with Down syndrome, so maybe calling this project the Spanish equivalent of &quot;Magolia&quot;, &quot;Mamalian&quot;, or &quot;Meercat&quot; is a clever reversal of the insult into a form of self-deprecation on the part of the author, who is wittily feigning illiteracy? Or perhaps it is intended to ridicule the speling of Spainards and other speekers of Spansh? Or programmers who decided to yoke their applications to fake open source?<p>Even if correctly spelled, perhaps the name would be more appropriate to a debugging tool than to a hash table implementation.
评论 #26888490 未加载
评论 #26889394 未加载
评论 #26888495 未加载