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: Past, Present, and Future

282 pointsby chrstrover 2 years ago

15 comments

dangover 2 years ago
The pdf: <a href="https:&#x2F;&#x2F;www.vldb.org&#x2F;pvldb&#x2F;vol15&#x2F;p3535-gaffney.pdf" rel="nofollow">https:&#x2F;&#x2F;www.vldb.org&#x2F;pvldb&#x2F;vol15&#x2F;p3535-gaffney.pdf</a>
simonwover 2 years ago
I shared some notes on this on my blog, because I&#x27;m guessing a lot of people aren&#x27;t quite invested enough to read through the whole paper: <a href="https:&#x2F;&#x2F;simonwillison.net&#x2F;2022&#x2F;Sep&#x2F;1&#x2F;sqlite-duckdb-paper&#x2F;" rel="nofollow">https:&#x2F;&#x2F;simonwillison.net&#x2F;2022&#x2F;Sep&#x2F;1&#x2F;sqlite-duckdb-paper&#x2F;</a>
评论 #32680825 未加载
评论 #32680192 未加载
评论 #32692286 未加载
评论 #32683143 未加载
polyrandover 2 years ago
Regarding hash joins, the SQLite documentation mentions the absence of real hash tables [0]<p><pre><code> SQLite constructs a transient index instead of a hash table in this instance because it already has a robust and high performance B-Tree implementation at hand, whereas a hash-table would need to be added. Adding a separate hash table implementation to handle this one case would increase the size of the library (which is designed for use on low-memory embedded devices) for minimal performance gain. </code></pre> It&#x27;s already linked in the paper, but here&#x27;s the link to the code used in the paper [1]<p>The paper mentions implementing Bloom filters for analytical queries an explains how they&#x27;re used. I wonder if this is related to the query planner enhancements that landed on SQLite 3.38.0 [2]<p><pre><code> Use a Bloom filter to speed up large analytic queries. </code></pre> [0]: <a href="https:&#x2F;&#x2F;www.sqlite.org&#x2F;optoverview.html#hash_joins" rel="nofollow">https:&#x2F;&#x2F;www.sqlite.org&#x2F;optoverview.html#hash_joins</a><p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;UWHustle&#x2F;sqlite-past-present-future" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;UWHustle&#x2F;sqlite-past-present-future</a><p>[2]: <a href="https:&#x2F;&#x2F;www.sqlite.org&#x2F;releaselog&#x2F;3_38_0.html" rel="nofollow">https:&#x2F;&#x2F;www.sqlite.org&#x2F;releaselog&#x2F;3_38_0.html</a>
评论 #32696022 未加载
gorjusborgover 2 years ago
I came for SQLite, got sold DuckDB.
maniminoover 2 years ago
TFA appears to be about adapting SQLite for OLAP workloads. I do not understand the rationale. Why try to adapt a row-based storage system for OLAP? Why not just use a column store?
评论 #32677986 未加载
评论 #32677922 未加载
评论 #32688117 未加载
评论 #32678898 未加载
spaniard89277over 2 years ago
I&#x27;ve been learning SQL recently with PostgreSQL and MySQL in an online bootcamp here in Spain. So far very comprehensive. We&#x27;ve touched indexing and partitioning with EXPLAIN ANALYZE for optimizing performance, and I&#x27;ve implemented this strategies successfully onto an active forum I own.<p>The SQL course has almost no love by the students but so far it has been the most useful and interesting to me.<p>I was able to create some complex views (couldn&#x27;t understand how to make materialized views in MySQL), but they were still very slow.<p>I decided to copy most of this forum DB to DuckDB (with Knime now, until I know better), and optimization with DuckDB seems pointless. It&#x27;s very, very fast. Less energy usage for my brain, and less time waiting. That&#x27;s a win for me.<p>My current dataset is about 40GB, so It&#x27;s not HUGE, and sure people here in HN would laugh at my &quot;complex&quot; views, but so far I&#x27;ve reduced all my concerns from optimizing to how to download the data I need without causing problems to the server.
评论 #32910927 未加载
评论 #32910619 未加载
评论 #32910588 未加载
js8over 2 years ago
Why cannot SQLite have two different table storage engines for different tables, one row and the other column oriented?
评论 #32910901 未加载
评论 #32911209 未加载
mwishover 2 years ago
I&#x27;m confused that why in Figure3, seems in Raspberry Pi, latency is slower than same queries&#x27; latency in cloud server. Did I missed something?
rafaleover 2 years ago
SQLite vs Postgres for a local database (on disk, not over the network): who wins? (Each in their most performance oriented configuration)
评论 #32676732 未加载
评论 #32678913 未加载
评论 #32676773 未加载
评论 #32676558 未加载
评论 #32676608 未加载
评论 #32696413 未加载
评论 #32676891 未加载
评论 #32676963 未加载
youngtaffover 2 years ago
Why do people have to publish papers in a weird two column academic format instead of something that&#x27;s more easily readable?
评论 #32692274 未加载
评论 #32692615 未加载
Kalanosover 2 years ago
i wish it had an optional server for more concurrent and networked transactions in the cloud
评论 #32683433 未加载
评论 #32678009 未加载
oaieyover 2 years ago
After seeing one diagram: Why the hack are we still talking to databases with SQL strings and not directly specifying the Query-AST? Admins, sure (a fancy UI could help there as well) but why in our code?
评论 #32910191 未加载
评论 #32910175 未加载
评论 #32910728 未加载
评论 #32910162 未加载
评论 #32910968 未加载
评论 #32910410 未加载
评论 #32911344 未加载
评论 #32911994 未加载
评论 #32910270 未加载
评论 #32910061 未加载
评论 #32910130 未加载
评论 #32910374 未加载
评论 #32910282 未加载
评论 #32910100 未加载
naikrovekover 2 years ago
my ipad won’t let me search through the PDF, but i couldn’t find where “SSB” was defined, if anywhere. i did not see it defined in the first paragraph, which is where it is first used.<p>everyone: not all of your readers are domain experts. omissions like this are infuriating.
评论 #32679474 未加载
评论 #32682234 未加载
评论 #32680875 未加载
Thaxllover 2 years ago
&quot;While it continues to be the most widely used database engine in the world&quot;<p>It realy depends what do you mean by that, yes it&#x27;s shipping in every phones and browser, but I don&#x27;t consider that as a database. Is the windows registry a database?<p>Oracle, MySQL, PG, MSSQL are the most widly used DB in the world, the web runs on those not SQLite.
评论 #32684237 未加载
stonemetal12over 2 years ago
&gt;SQLite is primarily designed for fast online transaction processing (OLTP), employing row-oriented execution and a B-tree storage format.<p>I found that claim to be fairly surprising, SQLite is pretty bad when it comes to transactions per second. SQLite even owns up to it in the FAQ:<p>&gt;it will only do a few dozen transactions per second.
评论 #32680248 未加载
评论 #32680266 未加载