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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

SQLite 3.32

379 点作者 nikbackm大约 5 年前

20 条评论

iagovar将近 5 年前
As a non-dev intruder I have to say that I love SQLite. I do a lot of data-analysis and it makes everything easy, from fast SQL Wizardry to sharing the DB just coping a file! Just how amazing is that?!<p>It must sound naive to some of you, but the first time stumbled upn sqlite I was so excited!
评论 #23282639 未加载
评论 #23284027 未加载
评论 #23282629 未加载
评论 #23282713 未加载
评论 #23282575 未加载
评论 #23283448 未加载
评论 #23282983 未加载
bob1029将近 5 年前
For our B2B application, we&#x27;ve been using SQLite as the exclusive means for reading and writing important bytes to&#x2F;from disk for over 3 years now.<p>We still have not encountered a scenario that has caused us to consider switching to a different solution. Every discussion that has come up regarding high availability or horizontal scaling ended at &quot;build a business-level abstraction for coordination between nodes, with each node owning an independent SQLite datastore&quot;. We have yet to go down this path, but we have a really good picture of how it will work for our application now.<p>For the single-node-only case, there is literally zero reason to use anything but SQLite if you have full autonomy over your data and do not have near term plans to move to a massive netflix-scale architecture. Performance is absolutely not an argument, as properly implemented SQLite will make localhost calls to Postgres, SQL Server, Oracle, et. al. look like a joke. You cannot get much faster than an in-process database engine without losing certain durability guarantees (and you can even turn these off with SQLite if you dare to go faster).
评论 #23283077 未加载
评论 #23283125 未加载
评论 #23282785 未加载
评论 #23282678 未加载
评论 #23284126 未加载
dtf将近 5 年前
While reading the documentation for iff(), I noticed the command line function edit(), which is pretty cool.<p><pre><code> UPDATE docs SET body=edit(body) WHERE name=&#x27;report-15&#x27;; UPDATE pics SET img=edit(img,&#x27;gimp&#x27;) WHERE id=&#x27;pic-1542&#x27;;</code></pre>
评论 #23283439 未加载
评论 #23282602 未加载
评论 #23283065 未加载
ha470将近 5 年前
While I love SQLite as much as the next person (and the performance and reliability is really quite remarkable), I can’t understand all the effusive praise when you can’t do basic things like dropping columns. How do people get around this? Do you just leave columns in forever? Or go through the dance of recreating tables every time you need to drop a column?
评论 #23282863 未加载
评论 #23283019 未加载
评论 #23282843 未加载
评论 #23282814 未加载
评论 #23283581 未加载
评论 #23288940 未加载
评论 #23283339 未加载
评论 #23288053 未加载
评论 #23283121 未加载
评论 #23282928 未加载
评论 #23284081 未加载
why-el将近 5 年前
One of the great things one can learn from SQLite is the degree to which they unit (and integration) test their source code. It&#x27;s honestly the best unit test document I have read in my career to date: <a href="https:&#x2F;&#x2F;www.sqlite.org&#x2F;testing.html" rel="nofollow">https:&#x2F;&#x2F;www.sqlite.org&#x2F;testing.html</a>.
评论 #23285637 未加载
wenc将近 5 年前
SQLite is great but its decision in not having a standard datetime&#x2F;timestamp datatype -- a standard in all other relational databases -- has always struck me as a surprising omission, but in retrospect I kind of understand why. Datetimes are undeniably difficult.<p>So sqlite leaves the datetime storage decision to the user: either TEXT, REAL or INTEGER [1]. This means certain datetime optimizations are not available, depending on what the user chooses. If one needs to ETL data with datetimes, a priori knowledge of the datetime type a file is encoded in is needed.<p>In that sense, sqlite really is a &quot;file-format with a query language&quot; rather than a &quot;small database&quot;.<p>[1] <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;17227110&#x2F;how-do-datetime-values-work-in-sqlite" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;17227110&#x2F;how-do-datetime...</a>
评论 #23287655 未加载
评论 #23287422 未加载
trashburger将近 5 年前
&gt;Increase the default upper bound on the number of parameters from 999 to 32766.<p>I don&#x27;t want to know the use case for this.<p>Keep rocking on, SQLite. It&#x27;s the first tool I reach for when prototyping anything that needs a DB.
评论 #23282894 未加载
评论 #23282904 未加载
zubairq将近 5 年前
Thanks so much for SQLite. Amazing and stable database. Yazz Pilot (<a href="https:&#x2F;&#x2F;github.com&#x2F;zubairq&#x2F;pilot" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zubairq&#x2F;pilot</a>) is built on it
oefrha将近 5 年前
Good to see a ternary function iif() added. Case expressions are usually pretty painful and&#x2F;or unreadable when using query builders.
RivieraKid将近 5 年前
Is it reasonable to assume that in most current deployments of PostgreSQL or MySQL, SQLite would be at least an equally good choice?<p>I was recently choosing a database for a medium-size website and SQLite seemed like an obvious choice. One thing I was worried about was that the database locks for each write - but this is apparently not true anymore with write-ahead log.
评论 #23287537 未加载
评论 #23288970 未加载
评论 #23287896 未加载
评论 #23285992 未加载
评论 #23287482 未加载
评论 #23290962 未加载
emadda将近 5 年前
I’ve been using SQLite on GCP for a few small projects and it seems to work well.<p>I use docker volumes to write to disk. I pass the disk directory to my process via a CLI arg.<p>When running on a VM these disk writes are replicated between zones (this is default for regional GCP disks). So you get zero config high availability (if you can tolerate down time during a reboot).
评论 #23284792 未加载
devwastaken将近 5 年前
Are there resources for good practices on database formatting? I feel that what I make &#x27;works&#x27;, but I&#x27;d be curious on what experienced databases look like.<p>For example I have an app that you upload files through. Files can be local to the server or on s3 and have metadata. I end up making a new table for the API points. Like a table for listing files&#x2F;directories. A table for local files and a table for s3 files. Then a table for the metadata, and a table for the kind of file it is, etc. It works, but it feels like a heavy hammer.
评论 #23283406 未加载
nattaylor将近 5 年前
A few nice little conveniences like IFF(). I like reading SQLite released because they seem good at avoiding adding cruft. (The refusal to implement JSONB comes to mind.) Now if only I could get my shared web host to upgrade to a recent version...
评论 #23282684 未加载
cptnapalm将近 5 年前
Recommendations for learning SQL with SQLite? I&#x27;ve recently started doing the Khan Academy videos, and am liking them, but I&#x27;d like more practice problems and explanatory text.
评论 #23290024 未加载
评论 #23283449 未加载
RivieraKid将近 5 年前
One possible disadvantage of SQLite is that it only allows one writer at a time (but writes don&#x27;t block readers with write-ahead log enabled). I&#x27;m really curious about whether Postgres performs better at concurrent writing, couldn&#x27;t find any benchmarks. In theory, disk writes are always sequential, so I&#x27;m skeptical Postgres would do substantially better.
评论 #23290032 未加载
评论 #23287414 未加载
pachico将近 5 年前
I have running in production a SQLite powered service for the free Geonames gazetteer. It&#x27;s a read only service so it fits perfectly and providing really good performance. I also use it to work with data coming in CSV format. What a great piece of software!
me551ah将近 5 年前
Where can you use sqlite?<p>Embedded: Yes<p>Raspberry Pi: Yes<p>Mobile Apps : Yes<p>Desktop Apps: Yes<p>Microservices: Yes<p>Big Monolith : Yes<p>Browsers. : No
评论 #23285374 未加载
评论 #23285414 未加载
zeroimpl将近 5 年前
Why is it “iif” instead of “if”? I don’t recall “if” being a keyword in SQL
hn_1234将近 5 年前
is SQLite used for big data storage ? What are high end use cases than small data points which I mostly use it for. excuse me if its a dumb question
评论 #23287604 未加载
boksiora将近 5 年前
my favorite db format