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.

SQLite is not a toy database (2021)

267 pointsby losfairalmost 3 years ago

18 comments

emptyparadisealmost 3 years ago
I wish there was some sort of an Access-like form/app builder tool for quickly building GUIs around SQLite databases. That's the one thing I miss. I'd love to reach for SQLite instead of Excel or something.
评论 #32479216 未加载
评论 #32480282 未加载
评论 #32479331 未加载
评论 #32479325 未加载
评论 #32479222 未加载
评论 #32479301 未加载
评论 #32479944 未加载
评论 #32479492 未加载
评论 #32496498 未加载
评论 #32479805 未加载
评论 #32481178 未加载
评论 #32480138 未加载
评论 #32479210 未加载
Subsentientalmost 3 years ago
Finally, a software fad that I actually want to support! About time I get one!<p>SQLite is more than good enough for an awful lot of things. Most of the time that I do see software using MariaDB etc, I think to myself &quot;they didn&#x27;t need a server model for this, SQLite would have been fine&quot;.
评论 #32479412 未加载
JaggerFooalmost 3 years ago
I started to use Postgres on AWS for a personal project, after fighting with several non-docker VM&#x27;s - I don&#x27;t want to use docker. But I decided on SQLite + Litestream, hopefully for free on AWS. The simplicity of deployment is great.<p>SQLite to my surprise has much of the same SQL functions as Oracle and Postgres. I wanted to use window functions, which are supported.<p>Sqlite came to my attention when I read a Tailscale blog article stating they will be using it.
latchkeyalmost 3 years ago
It certainly has some good use cases and is not a toy, but there are some critical SQL features (like say: `last_at &lt; NOW() - INTERVAL &#x27;10 minutes&#x27;`) that are not easily compatible with SQLite and are with postgres, that would require a lot of code rewrite in case you need to scale upwards. Testing against multiple databases is hard, so migrating to postgres wouldn&#x27;t be trivial either. Hosting small postgres databases on things like GCP are ~$8 a month... why not just save yourself from future pain?
评论 #32479238 未加载
评论 #32479163 未加载
评论 #32479206 未加载
评论 #32479172 未加载
评论 #32479306 未加载
评论 #32479676 未加载
1MachineElfalmost 3 years ago
Today I opened up the Windows Resource Monitor to see why my elderly neighbor&#x27;s AOL Desktop Gold app was loading so slowly. The problem turned out to be network related, but I was intrigued to see in it&#x27;s disk activity many reads and writes to a .sqlite file.<p>I wonder how long AOL&#x27;s desktop app has been using SQLite - since the early 2000s maybe? If anyone has one of those original AOL disks lying around, it may be interesting to see if the installer unpacks a SQLite DB of some kind.
评论 #32479203 未加载
评论 #32479246 未加载
me551ahalmost 3 years ago
Lack of native support for SQLite in modern browsers is what is holding it back.
评论 #32480130 未加载
评论 #32480150 未加载
re-lre-lalmost 3 years ago
One more thing to say about SQLite - is a simplicity of writing unit tests. Like this stuff. But my major concern is the file locking.
评论 #32480242 未加载
dangalmost 3 years ago
Discussed at the time:<p><i>SQLite is not a toy database</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26580614" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26580614</a> - March 2021 (354 comments)
Aperockyalmost 3 years ago
Shameless plug: <a href="https:&#x2F;&#x2F;github.com&#x2F;Aperocky&#x2F;sqlitedao" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Aperocky&#x2F;sqlitedao</a><p>For an out of the box python dao&#x2F;orm with sqlite and deal with no SQL statement&#x2F;strings.
评论 #32479075 未加载
bobekalmost 3 years ago
Checkout quite interesting replication projects <a href="https:&#x2F;&#x2F;github.com&#x2F;superfly&#x2F;litefs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;superfly&#x2F;litefs</a> and <a href="https:&#x2F;&#x2F;github.com&#x2F;benbjohnson&#x2F;litestream" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;benbjohnson&#x2F;litestream</a>
评论 #32479171 未加载
评论 #32479215 未加载
incomingpainalmost 3 years ago
Sqlite has really 1 big problem in my mind.<p>1 thread at a time. If you try to have 2 threads throwing stuff at it.<p>_sqlite.OperationalError: database is locked<p>This is what makes it a toy database. Mind you, sqlite will handle most projects, but those are also toy projects.
评论 #32494711 未加载
gigatexalalmost 3 years ago
Haha I love this. It’s a love letter to SQLite. And what’s fun read it was.
emaddaalmost 3 years ago
<a href="https:&#x2F;&#x2F;table.dog" rel="nofollow">https:&#x2F;&#x2F;table.dog</a> is a CLI that downloads your Stripe account to a SQLite db.<p>Would appreciate it if you could test it out if you are interested.
didipalmost 3 years ago
Has anyone seen rqlite? Someone slapped a raft layer on top of sqlite statements.<p>Now you have a network layer on top of sqlite.
评论 #32482019 未加载
mrwnmonmalmost 3 years ago
I love the style of this blog.
评论 #32479810 未加载
endisneighalmost 3 years ago
I like SQLite (use it for android apps), but there’s no reason to use it for apps over a network. SQLite is meant to be embedded (also works great with desktop apps and local-only web apps).<p>In fact, I’d argue there’s no <i>networked</i> use case in which SQLite is cheaper, easier to deploy, maintain or run than Postgres.<p>All that being said, absurdsql is great. There should be some optimizations in mirroring network state to IndexedDB that could be queried via SQl(ite).<p>The SQLite documentation literally says use Postgres and not it for networked use cases (unless you use WAL or rollback, in which case why not just use Postgres?)<p><a href="https:&#x2F;&#x2F;www.sqlite.org&#x2F;useovernet.html" rel="nofollow">https:&#x2F;&#x2F;www.sqlite.org&#x2F;useovernet.html</a><p>—-<p>As an aside, I think we need a new storage primitive. In the 2000s desktop apps were rampant and SQLite was more or less the standard.<p>We then moved over to networked apps where RDBMS had its day. There was a moment where nosql was booming for the scaling but it turned out people like relations.<p>We need an open source, distributed and relational store that’s easy to maintain build this decade.
评论 #32479558 未加载
评论 #32479520 未加载
评论 #32479538 未加载
评论 #32479803 未加载
评论 #32479527 未加载
评论 #32479602 未加载
评论 #32480041 未加载
评论 #32480034 未加载
losfairalmost 3 years ago
Came over this article as I was looking for interesting resources in the SQLite ecosystem. I&#x27;m building mvsqlite (<a href="https:&#x2F;&#x2F;github.com&#x2F;losfair&#x2F;mvsqlite" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;losfair&#x2F;mvsqlite</a>), as an attempt to turn SQLite into a proper distributed (not just replicated) database. Check it out if you are looking for this kind of stuff!
评论 #32479323 未加载
评论 #32479287 未加载
评论 #32479173 未加载
beebmamalmost 3 years ago
Does SQLite still not support remote connections? Without that, it&#x27;s hard for me to take it seriously for most RDBMS use cases.
评论 #32479138 未加载
评论 #32479154 未加载
评论 #32479131 未加载
评论 #32479225 未加载