Turso is an in-process SQL database, compatible with SQLite
Posted by marklit 5 days ago
Comments
Comment by d1l 2 days ago
I’d be more excited and imagine it would be more marketable if it focused instead on being simply an embedded sql db that allowed multiple writers (for example), or some other use case where SQLite falls short. DuckDB is an example- SQLite but for olap.
Comment by Joker_vD 2 days ago
Comment by hiddendoom45 1 day ago
I'm surprised they didn't have any extreme tests with a lot of data that would've found this earlier. Though achieving the reliability and test coverage of sqlite is a tough task. Does make the beta label very appropriate.
Comment by tracker1 1 day ago
In the end, the company is a distributed DBaaS provider using a SQLite interface to do so... this furthers that goal... being SQLite compatible in terms of final file structure just eases backup/recovery and duplication options.
I think being able to self-host either in an open/free and commercial/paid setting is also going to be important to potential users and customers... I'm not going to comment on the marketing spin, as it is definitely that.
Comment by ncruces 1 day ago
Just like STRICT tables, as soon as you use an unsupported feature in your schema, your database becomes incompatible.
With STRICT tables you needed to upgrade SQLite tools.
But if you use something from Turso you're placing yourself outside the ecosystem: the SQLite CLI no longer works, Litestream doesn't work, sqlite_rsync doesn't work, recovery tools don't work, SQLite UIs don't work.
Turso has no qualms with splitting the ecosystem. They consider themselves the next evolution of SQLite. The question is do you want to be part of it?
Comment by ako 1 day ago
Comment by formerly_proven 1 day ago
Comment by ako 1 day ago
Comment by ncrmro 1 day ago
Comment by maxpert 1 day ago
I have been asked multiple times on why I chose SQLite and not Turso. I've always responded people that I don't trust an open-source project once it's backed by a VC firm. I've moved away from Redis to Val-Key for same reason, and we have seen the Redis train-wreck in slow-mo. I hope at no point in future Turso ever ends up in that state, but chances are pretty high. At this point the "compatible with SQLite" has become a marketing term IMO, we all know how easy it is to break compatibility here or SQLite to break compatibility.
Comment by bawolff 1 day ago
SQLite is some of the most battle tested software in the world. Turso seems like relatively new software that is still a bit experimental.
You do not want your databases to be new or trendy. You want your databases to be solid as a rock.
Comment by anentropic 1 day ago
well, Turso adds features
otherwise yeah, there'd be no reason
Comment by namibj 1 day ago
At least notably; not sure about the MVCC `BEGIN CONCURRENT`'s practical relevance though; I am just already familiar enough with the other two big ones to chime in without having to dive into what Turso does about them...
Comment by bawolff 9 hours ago
Are there benchmarks comparing turso with io_uring to sqlite (with other config the same)?
io_uring has the potential to be faster but its not garunteed. It might be the same, it might be slower, depending on how you use it. People bragging about the technology instead of the result of using the technology is a bit of a red flag.
Comment by jauntywundrkind 1 day ago
I still find it absolutely freakish & abominable that people are so incredibly touchy & reflexively mean & vile to Turso. I've seen a couple Turso centric YouTube's recently and there are dozens and dozens of up votes for what just seems like the most petulant vacuous reflexive bitter viewed comments, dominating the comments. Sqlite deserves its honor, is amazing! Yes! But there's such a wild concentration of negativity about a sqlite compliant open source rust rewrite. None of it is technical. It's all just this extreme conservatism, this reflexive no, I don't trust it, fud fud fud fud.
(Can't find the worse example but https://youtu.be/CrIkUwo8FiY somewhat shows this)
I'm just so embarrassed having such low antagonistic peers dominating the conversation all the time. With zero moderation, zero maybe it's ok, just dialed 100% to no no no no. For fuck sake man. Everywhere I go it's not hackers, it's not possibility seekers, it's a radical alliance of people using fear uncertainty and doubt to cling to some past, refusing even possibility of different. It's so regular, so consistent, so tiresome and so useless.
What if this is better? What if you are wrong? What if there is some possibility of better? It just feels like all the air time is sucked up by these negative creeps, always, everywhere, all around, with these absurd vast pervading pessimisms that admit to no maybe possiblies, that see no tradeoffs, that are just convinced always for the worst. And it's just so popular! Is the plurality! How anti-hackerly a spirit is anti-possibility! The world deserves better than these endless drag-gards.
I'm obviously reacting strongly here. But I just want some God damned room left for maybe. The negative creeps never allow that: no no no no no, fear uncertainty & doubt endless & abundant, no possibility, just bad. I cannot stand the negative energy, I'm so sad the hackers have to put up with such absolutist shitty drains sucking all the energy from the room, everywhere, always. Sqlite somehow has such a strong anti-possibility anti-energy magnet around something so so good: what a shame, it deserves better, & iteration attempts deserve at least some excitement. Progress is possible, can be neat, and judging way too early & reflexively with empty comment is to be condemned, imho.
Comment by rendaw 1 day ago
Reading the repo, I'm not sure what it offers. It's still CGO for Go (edit: it's not, it's purego, but can that be used for SQLite too?), Rust already has `rusqlite`. It's beta, so it doesn't have stability, and 99% of why I and many other people choose SQLite is stability.
But they bluntly say you should use it instead of SQLite: "The next evolution of SQLite" (trademark ok?). This not only implies that SQLite has some significant design issues that merit a new version, but it also implies that they, not the SQLite author, are the ones who are capable of doing this. My guess is this is what's rubbing so many people the wrong way.
It's not being sold on its merits, and I think if they're going to make that sort of statement it's fair to make the standard somewhat high. If it's an AI-oriented database, sell it that way, not as an SQLite replacement.
I don't think uv had a negative reaction, because it had a really compelling case.
Comment by tracker1 1 day ago
One is to be more open to contribution, which is of arguable value for a pretty "complete" project.
Another is to be able to better support a client-server and distribution model for resilience over only in-process options, which is harder. This is while being file compatible with SQLite for the database itself.
Another aspect is multi-threaded support (mutli-read in particular), which is part of the impetus for rewriting in Rust over the fork, for what may well be a dramatic performance improvement.
Cloudflare and Turso as companies are both using SQLite's interfaces and structure at a core piece of their distributed database offerings... There's definitely different characteristics for use/scale if you're going that route. I've also found CockroachDB to be interesting along with the now deprecated RethinkDB's approach. That doesn't even get into the more prominent distributed cloud db options out there.
In the end they're all just different approaches to solving similar issues.
Comment by HelloNurse 1 day ago
In this case, the familiar "rewrite it in Rust" MO has a special angle: the Turso feature list is such a terrifying collection of high-risk, low-performance, inferior, unlikely to be compatible, unproven and unnecessary departures from SQLite that a malicious embrace-and-extend business plan is a reasonable theory and reckless naivety is the best possible case.
Comment by bawolff 1 day ago
If it was actually better you would probably be describing how and why you think its better instead of complaining about "negativity".
Comment by jauntywundrkind 1 day ago
The discussion didn't seem to be about merits. It just simply seemed to be a bunch of pissy empty whining & loser statements that it wasn't even worth beginning to regard it at all, for dumb petulant reasons x y and z. Fuck that. Fine, I'm happy to sing some praises. But IMO there is a war against imagination & this loserly attitude is the omni present all pervading no value woeful forefront. This pox is everywhere, just no regard, no consideration at all, just out of hand disregard for ridiculous inconsiderate Fear Uncertainty and Doubt anti-reason, thought terminating no's.
Murderers of hacker spirit. Sure, come ask for better! Yes!! Please!!! Inquire & challenge. Push for actual meat (both ways). I saw none, I tried to give you some here. These empty vessels have just vapors of fear, boogiemen to conjure & scare with. No actual content or assessment. So weird to rally so hard against open source, just because it doesn't also hail from 2.5 decades ago. We need more than reflexivism. Or we are shite non hacker people of a low culture.
I complain about negativity because this is rotten & a stink. It's everywhere & so rarely is it of substance, talks to anything. I've tried to add some weight here, and most of what I've said feels basic but this gets bold: I think the weight of anti-possibility weighs heavier & has a bigger mantle to bear in its naysaying than speaking for. We should attune ourselves to consideration. The hacker spirit should favor the idea of possibility above rejection & discarding of potential.
Comment by bawolff 1 day ago
Lol, is that a joke.
Seesh.
[To be clear, i think sqlite is the hands down winner on this front, no contest. Does the Turso test suite qualify it to be used in safety critical applications? I don't think so].
To your other points - look if it works for you i'm not here to tell you you can't use it. However these features sound more trendy than useful. To me these sound like negatives. A bunch of extra features not related to being a relational database suggests they aren't concentrating on the core product. I dont know enough about their model for async & concurrent writes to really evaluate the cost/benefit, but both those features sound potentially really scary and of questionable value.
At the end of the day its just not a compelling pitch. It seems like trading reliability and stability for a bunch of meaningless bling.
Best of luck to them, but at this point yeah, sqlite sounds like a much better option to me.
Comment by tracker1 1 day ago
Comment by bawolff 17 hours ago
I care that sqlite is being tested against it, because i care that sqlite is well tested. i'm not super concerned that part of the test suite is closed source as i dont need to directly use it.
Comment by jauntywundrkind 1 day ago
'i don't know what it is but I'm not interested and it's probably scarey' is not, imo, befitting the cultures I personally want to see. There's times and places for extreme conservatism, but generally I am far more here for progress, for trying for aspiring to better, and I thought that was so clearly what the hacker spirit was about.
Comment by HelloNurse 1 day ago
That would be a valid experiment and, if it goes well, a contribution, while hoping that someone bases anything important on Turso looks like grabbing captive users.
Comment by dgroshev 1 day ago
https://github.com/tursodatabase/turso/pull/4824/files "some performance improvements", no new tests
https://github.com/tursodatabase/turso/pull/4820/ "fix wal checkpoint", one basic test
https://github.com/tursodatabase/turso/pull/4815/ "Optimizer: fix bugs, improve cost model", a lot of nontrivial logic, no new tests
https://github.com/tursodatabase/turso/pull/4814 "WAL auto truncation: increase epoch to prevent stale pages reuse", there's a new test with a comment "It is slightly fragile and can be removed if it will be unclear how to maintain it"
https://github.com/tursodatabase/turso/pull/4806/ "Busy snapshot bugfix" with two new tests with the same comments as 4814 (I guess they didn't fix the bug in one go?)
https://github.com/tursodatabase/turso/pull/4802/ "fix/translate: revert change that allowed index cursor with stale position to be read", fixes a data-corrupting bug, there's a regression test, good (although the original bug sounds like it should've been caught by a suite like the one SQLite has)
That's just a couple days worth of PRs.
This style of development does not inspire confidence. They develop features, sure. But I want my database to be rock-solid and completely covered by tests, not just move fast and break things. It's not FUD to just look at how they approach PRs.
Comment by aranw 1 day ago
Edit: Looking at the go mod file I noticed github.com/mattn/go-sqlite3 which I think is a C wrapper library so I'm assuming you rely on CGO for compiling
Comment by ncruces 1 day ago
Comment by cmrdporcupine 1 day ago
How can we make sure that fundamental pieces of open source software that power the Internet can have funding, and that the people who write them can have comfortable lives working on the piece of software they love that so many people use?
I think you've described a real problem. But people turn to VC because there are few other ways to make funding happen.
Comment by deaux 1 day ago
Comment by cortesoft 1 day ago
Comment by memothon 1 day ago
It feels like it has a lot of the same downsides of hosted databases so I'm not sure what the specific value is.
From their site they really emphasize local first syncing (so mobile apps and electron/tauri apps) and multi tenancy (hard database boundaries)
Comment by TheCapeGreek 1 day ago
I get it, Turso wants to actually make some money, but I just don't get it.
Comment by oofbey 1 day ago
Comment by sudhirb 1 day ago
Comment by deaux 1 day ago
Comment by loloquwowndueo 2 days ago
Turns out this is covered in the readme: libsqlite is a fork (so, presumably C) while turso database is a rust rewrite.
Good luck to the friends at Turso!
Comment by redwood 1 day ago
Comment by graerg 1 day ago
Comment by gpm 1 day ago
Certainly some of the newer succesful database companies are written in more modern languages (for example go with cockroachdb, go originally and now rust with influxdb) but it's wrong to call these (or really any language) faster than C/C++ just more productive languages to develop reliable software in...
Comment by redwood 1 day ago
Comment by gpm 1 day ago
Comment by thayne 1 day ago
Granted, scylla used to be open source. And turso is VC funded and potentially vulnerable to a license change in the future.
Comment by kleton 1 day ago
Comment by sealeck 1 day ago
Would be great if one of the Turso developers can clarify :)
Comment by bawolff 1 day ago
Comment by sealeck 23 hours ago
Comment by miohtama 1 day ago
Comment by heyts 1 day ago
Comment by thayne 1 day ago
- sqlite can't do concurrent writes, which is a performance bottleneck for certain workflows
- sqlite is synchronous, which isn't ideal in applications that are async
- while sqlite itself is open source, the test suite is proprietary, which means forking it and adding your own features or bug fixes isn't really practical. Of course, that is also a significant barrier to turso having sqlite compatibility.
Does turso really solve those problems? IDK. Does it introduce new problems? Almost certainly. But those are real problems that people have.
Comment by gritspants 1 day ago
Comment by thayne 1 day ago
Comment by Sytten 1 day ago
Comment by rpcope1 1 day ago
Comment by blibble 2 days ago
D. Richard Hipp has done a universal good for the world by releasing sqlite into the public domain and maintaining it for 25 years
I bet this VC funded knockoff won't see 5
Comment by gpm 2 days ago
That marketing is really the one thing that keeps me from considering this as a serious option.
To callback to an article a few days ago, it's a signal of dishonest intent [1], and why in the world would I use the alternative built by apparently dishonest people when sqlite is right there and has one of the best track records in the industry.
[1] https://zanlib.dev/blog/reliable-signals-of-honest-intent/
Comment by egorfine 1 day ago
Pure stolen valor.
Disgusting.
Comment by renewiltord 1 day ago
Comment by anitil 1 day ago
> May you do good and not evil.
> May you find forgiveness for yourself and forgive others.
> May you share freely, never taking more than you give.
Comment by krior 1 day ago
The tenants my comment-neighbour quoted are a much better example.
Comment by gjvc 1 day ago
Comment by beyondCritics 1 day ago
Comment by renewiltord 1 day ago
Comment by elemdos 1 day ago
Comment by IshKebab 1 day ago
Comment by tonyhart7 1 day ago
Comment by doodlesdev 1 day ago
Comment by feverzsj 1 day ago
Comment by XorNot 2 days ago
Being written in Rust it's not even a good libc-less drop in choice for a language like Go?
Comment by mattrighetti 2 days ago
[0]: https://turso.tech/blog/beyond-the-single-writer-limitation-...
Comment by ZeroCool2u 2 days ago
Comment by zdragnar 2 days ago
Comment by ZeroCool2u 1 day ago
Comment by ncruces 1 day ago
The reason SQLite's BEGIN CONCURRENT does not greatly increase concurrency (unless you're very careful with your schema and queries) is as much due to page level conflict detection as it is because it enforces serializable isolation.
Comment by tonymet 2 days ago
Comment by gpm 2 days ago
Comment by tonymet 2 days ago
Comment by netghost 1 day ago
Comment by loktarogar 2 days ago
Comment by everfrustrated 1 day ago
Comment by kobieps 1 day ago
Comment by pdyc 1 day ago
Comment by rednafi 2 days ago
Comment by MobiusHorizons 2 days ago
Comment by heliumtera 2 days ago
Comment by menaerus 1 day ago
Comment by heliumtera 1 day ago
Comment by menaerus 1 day ago
Comment by gritspants 2 days ago
Claude is that's for sure
Comment by leosanchez 1 day ago
Comment by mergisi 5 days ago
Comment by doanbactam 1 day ago
Comment by eddythompson80 1 day ago
Comment by killingtime74 1 day ago
Comment by oofbey 1 day ago
Comment by tracker1 1 day ago
You CAN use a single database instance or file for everything, you can also use multiples to scale without falling strictly into a heavy vertical or horizontally scaleable database system. Especially if those db instances are distributed over a network channel to different physical servers on the back-end (as is with Turso).
I've worked on a lot of systems where I had advocated the use of separate DBs either on a oer-client or per-project basis... Even from a single management server, you can do a lot... from a small cluster operating against SQLite databases you can do more. With Turso's efforts to improve concurrency, it can go further still.
I'm not an employee, related to, or even an active customer right now... but I do understand the model and how it can work in a lot of use cases.
Comment by oofbey 1 day ago
Sounds like these are different ways of manually sharding the database?