TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

126 pointsby scottrogowskiabout 4 years ago

21 comments

ogre_codesabout 4 years ago
&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.
saurikabout 4 years ago
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 未加载
hardwaresoftonabout 4 years ago
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 未加载
jbverschoorabout 4 years ago
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 未加载
latenightcodingabout 4 years ago
&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 未加载
kabesabout 4 years ago
Ok, if we forget the comparison with sqlite, it&#x27;s a nice and useful library for python devs Thanks for making it available.
elviejoabout 4 years ago
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 未加载
axiosgunnarabout 4 years ago
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 未加载
giorgiozabout 4 years ago
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.
rvn1045about 4 years ago
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 未加载
deknosabout 4 years ago
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 未加载
macintuxabout 4 years ago
It&#x27;s telling how many killer features SQLite has, that so many people are complaining about the comparison for different reasons.
justsomeuserabout 4 years ago
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).
teryyyabout 4 years ago
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 未加载
bvrmnabout 4 years ago
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 未加载
jbverschoorabout 4 years ago
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
syntonym2about 4 years ago
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?
null4bl3about 4 years ago
The valid use cases for non SQL databases can be counted on one hand.<p>Not sure this project understands that
catchmeifyoucanabout 4 years ago
Anyway to integrate it with a NodeJs project? Seems like a good fit for Electron apps!
评论 #26885750 未加载
评论 #26889626 未加载
ruffreyabout 4 years ago
There used to be something similar called NeDB
评论 #26884127 未加载
评论 #26883106 未加载
kragenabout 4 years ago
&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 未加载