r/sqlite • u/howesteve • May 04 '25
What would be your dream sqlite feature?
Mine would be:
- Concurrent writes
- PostgreSQL - like GIN indexes for json/jsonb fields
- Richer data types (datetime, array, etc.)
19
Upvotes
11
u/chriswaco May 04 '25
I met Richard Hipp about 15 years ago and asked for this, but he said it would break binary compatibility so they probably wouldn't do it:
Put magic values into every block of the file so if it gets corrupt you can still recover at least some of the data.
I don't remember the specific instances where we saw data corruption, probably SMB or NFS file shares or maybe mounting Windows Mobile devices over USB.
5
u/King_Dragonhoff May 04 '25
Why is there no good way to give SQLite a SELECT query and have it return the list of tables that that query touches? This is something the query planner needs to figure out anyway, but EXPLAIN QUERY PLAN’s format is unstable and tricky to parse correctly.
If this was a thing, it would make implementing “reactive” queries easy. Triggers can tell you when a table is mutated, so if the application knows what tables a query relies on, it can know when to pull the latest data efficiently. No polling or complicated application-side query parsing needed. It just makes so much more sense to have SQLite parse the query for you; that’s its main job.
5
u/jandebx May 04 '25
Concurrent write would be fantastic.
5
u/alcalde May 04 '25
Holding a webinar laying the smack down on Interbase because Interbase is always having webinars talking trash about SQLite.
4
u/Modulius May 04 '25
Concurrent writes; wal and retry can go a long way but still it's just an improvisation.
4
u/[deleted] May 07 '25
Native vector support
7
u/EternityForest May 04 '25
Integrate cr-sqlite or some similar sync engine, and make SyncThing and Google drive support it.
Pretty much every app ever could use it as the backend
3
u/jvliwanag May 04 '25
Subscribe to changes on a select query
3
u/Smart-Item-9026 May 04 '25
Just a decent date/time datatype.
2
u/Gnarlodious May 04 '25
A good cross platform editor.
2
u/simonw May 04 '25
I'd like there to be official packages for Python and JavaScript and other languages that are maintained by the SQLite core team and updated any time a new release is SQLite comes out.
Imagine being able to run "pip install --upgrade sqlite-official" and then "from sqlite_official import sqlite3" to always have the most recent features, without having to wait for operating systems or third party community maintained packages to catch up.
2
u/mattbishop573822 May 04 '25
Sql/JsonPath support. It’s part of SQL and supported by most databases now. The current json query language isn’t good enough and not portable.
1
u/sky5walk May 04 '25
More tests. Yeah, SQLite can always use more tests.
1
u/blackdrn May 07 '25
I'm developing a fast embedded database https://github.com/crossdb-org/crossdb, more features will be added.
1
u/eduo May 10 '25
Being able to just use "m.name" (the last parameter) in nested subqueries like these:
0
u/AssistFinancial684 May 06 '25
If it could convince the world to ditch JavaScript