20 ms·
Why SQLite succeeded as a database (2016)
- AdmiralAsshat 7y agoThe interview transcript is much appreciated! I hate it when random two-hour podcast has a 15 minute interview I want to listen to, and have to go hunting for it.
- rtkwe 7y agoWhich is a shame because most podcast apps have chaptering systems where particular interviews and segments can be easily bookmarked. Even without that feature show notes can include links and timestamps to particular segments too but many shows don't bother because it's extra work.
- jbob2000 7y agoTL;DR because it's simple.
- umvi 7y agoIs it simple, though? I mean, reading about how they test it[1] leads me to believe it is not simple. Maybe it's simple compared to Oracle, and maybe using it is simple, but the actual implementation is definitely not simple. [1] https://www.sqlite.org/testing.html https://www.sqlite.org/testing.html
- jbob2000 7y agoI don't care about the implementation and I congratulate the developers on abstracting all of that complexity away from me. That's what good software does.
- umvi 7y agoI misinterpreted your comment. I thought you were saying SQLite was successful because SQlite itself (i.e. the implementation) was simple, not because it was simple to use.
- wpietri 7y agoFor what it's worth, I use "simple" for talking about the complexity of the thing, and "easy" for the user experience. Quite frequently easy things have to be complex because the cognitive load gets shifted into the machinery. E.g., compared with a Model T, modern cars are much easier but much more complex because the car itself understands things like adjusting the ignition timing and safely getting the motor turning, things that a Model T user had to understand if they wanted to avoid getting a broken arm before they got out of the driveway: https://www.fordmodelt.net/how-to-drive-ford-model-t.htm https://www.fordmodelt.net/how-to-drive-ford-model-t.htm
- solarkraft 7y agoIt's simple to use.
- umvi 7y agoMost of the time, yes, if SQLite supports the filesystem you are using. If the filesystem doesn't have a particular feature SQLite needs, it can be difficult to get working the way you want it to.
- danso 7y agoWhat scenarios/filesystems lead to these kinds of conflicts?
- franga2000 7y agoNot exactly a filesystem, but it doesn't work on SMB shares, which is an enormous pain in the ass. And I'm not even talking about concurrent access - just one user. I get that SMB file locking is a mess, but making it a hard fail by default was a big mistake IMO as most develoers using the library don't make special cases to allow this.
- nomel 7y agoThe documentation is very clear than SQLite over a network isn't a good use case, for reasonably sized data. Item 1 from "Checklist for choosing the right database engine" [1] > 1. Is the data separated from the application by a network? → choose client/server > Relational database engines act as bandwidth-reducing data filters. So it is best to keep the database engine and the data on the same physical device so that the high-bandwidth engine-to-disk link does not have to traverse the network, only the lower-bandwidth application-to-engine link. > But SQLite is built into the application. So if the data is on a separate device from the application, it is required that the higher bandwidth engine-to-disk link be across the network. This works, but it is suboptimal. Hence, it is usually better to select a client/server database engine when the data is on a separate device from the application. 1. https://www.sqlite.org/whentouse.html https://www.sqlite.org/whentouse.html
- scottlamb 7y ago> I mean, reading about how they test it[1] leads me to believe it is not simple. They are unusually thorough in their testing. I see that as a good thing, not a sign it isn't (relatively) simple. In fact, I don't think any other database engine is tested as thoroughly. I can't even imagine how much effort it'd take to do so for Oracle or even PostgreSQL, except that it'd be prohibitive.
- gwd 7y agoI'd say there are a load of reasons, all of which combine together to make it unbeatable: * Simple to embed into you application (no setting up a separate database, &c). * Fantastically backwards compatible * Public domain (so easy to comply with the license) * High quality: Reasonably fast, reasonably efficient, reasonable feature support. The lack of any of these would add significant drag. It's difficult to imagine any other project catching up and displacing it at this point.
- bob1029 7y agoI personally cannot see any near term replacement for what SQLite offers. In my world, SQLite became the way in which I now manipulate a scope of structured data on a single logical disk. I mostly view it as a very reliable and friendly layer on top of basic file IO which also happens to be compatible with virtually every computer on earth. I can copy a SQLite database out of an embedded microcontroller environment and directly open it on my x86_64 workstation, edit some values, and then copy it back down without any fears of compatibility issues.
- thrower123 7y agoI do wonder how much of the time that SQLite is used, that it wouldn't be even simpler to just dump things to an XML file.
- lurker458 7y agoHere are some considerations why: https://danluu.com/file-consistency/ https://danluu.com/file-consistency/
- xolox 7y agoThanks for sharing that link, it's on the most valuable things in this thread for me! (I loved SQLite already and one HN thread more or less isn't going to change that)
- danso 7y agoI remember listening to this when it was recorded and I still remember details from it years later – probably my favorite Changelog podcast ever. It's obviously very foolish to make software choices based on how much you like its creator as a person. But Richard Hipp comes off as a guy so likable that goshdarnit, I hope his little project succeeds. Jokes aside, though, I don't think it's entirely coincidence that SQLite, something that is so good and reliable, was made by someone who seems so conscientious and thoughtful. Though I have to admit, I was and am still disappointed to learn that the official way to pronounce SQLite is "S-Q-L-ite", i.e. "like a mineral".
- scohesc 7y agoI thought it was always pronounced "sequel-ite" personally
- cheez 7y agoAnd I thought it was S-Q-lite. S-Q-L-ite makes sense though. Most consistent.
- larrydag 7y agoMySQL is the same way. A lot of people say My-sequel but I think its supposed to be my-ess-que-ell
- zitterbewegung 7y ago
- cjfd 7y agoSure, it is simple and that is why people use it. But I have also run into hard problems using it. Deleting and renaming columns is not supported natively. On the internet one can find procedures to do that but they generally do not take foreign key references into account. Getting this right is a hard problem. In the end we had a function that could be used to rename or delete a column even without switching off foreign key checking but it was not simple and it was not the first iteration of said function and earlier iterations caused lots of subtle problems, like a column having a default value or not depending on whether the database was a new database or was created using schema updates. Use at your own peril.
- acdanger 7y agoI've never had an issue altering or deleting columns in SQLite. Grant it, I've used both Sequelize and SQLAlchemy as ORMs. But if you're using SQLite for simplicity there's a good chance you're not interested writing raw SQL statements either.
- The_Colonel 7y agoYeah, I'm using SQLite for simplicity and exactly because of that I want raw SQL instead of some leaky complex ORM abstractions.
- yread 7y agoI use EF core and instrument all my queries - if I see a slow one I hand optimize it. Best of both worlds I think - and I say that as someone who loves to fiddle with SQL.
- The_Colonel 7y agoAlso worst of both worlds - you need to know very well both the underlying database (SQL) and also the complex leaky abstraction (EF Core) and how are those abstraction translated into the SQL. I'm no ORM hater (use Hibernate daily) but claiming that using ORM will simplify working with the database is at least misleading.
- janvdberg 7y agoMeta: this podcast's RSS feed only goes back so far (2018). So I have no way to add/listen to this episode in my podcast app?
- jerodsanto 7y agoWe used paged feeds[1] for our RSS, but not all podcast clients support it. I might end up going back to a full feed, but remove the show notes, etc from older episodes to keep the file size smaller... [1]: https://podlove.org/paged-feeds/ https://podlove.org/paged-feeds/
- janvdberg 7y agoOk that makes sense. But I use Overcast, so how can I listen to it?
- salutis 7y agoI had the same problem and ended up uploading it via http://overcast.fm http://overcast.fm.
- dueyfinster 7y agoI use Huffduffer[1] either by searching for someone who has added it already[2] or adding it directly with details and a link to the mp3 myself. Then add your huffduff feed to Overcast (can add based on tags also). [1]: https://huffduffer.com/ https://huffduffer.com/ [2]: https://huffduffer.com/neaj/543363 https://huffduffer.com/neaj/543363
- me551ah 7y agoSQLite is a brilliant lightweight database which is available everywhere. All mobile OSs support it and it's a breeze to run on even embedded Linux. I just wish web browsers would also support it and make webSQL a standard, it would make programming for the web so much easier.
- 3fe9a03ccd14ca5 7y agoOnce I discovered SQLite, I never went back. It’s so easy. I’m still shocked when I see docker compose files that spin up entire MySQL dbs when a simple SQLite connector would be so much easier!
- williamdclt 7y agoWhether it is in staging, in dev or in tests, use the same DB engine as in prod. It will save your butt sometimes. Also, my docker-compose for a Postgres container is literally: services: db: image: postgres:10 ports: - "5432:5432" "so much easier" seems very hyperbolic. Not denying that SQLite is an amazing piece of software though!
- jopsen 7y agoHow do you ensure persistence in production? With postgres I just buy a managed setup from heroku, GCP or AWS. Backup is automatic, and there is a follower to takeover if the leader does/crashes. It's easy to backup an sqlite snapshot, but you can't do that after every operation. Curious, how do people solve this?
- hasperdi 7y agoActually, it was about to become standards. Some browsers implemented it, but then they decided not to go ahead as all browsers will have the same SQLite implementation.
- atishay811 7y agoIt is weird in the hindsight as with just Webkit(which is most of blink still) and Gecko, there are just two engines left. And when Gecko goes down (which is losing market share), this would seem even more stupid. SQL is a standard. They could have standardized on it rather than an implementation.
- joshdance 7y agoWe used SQLite at my company to allow users to write SQL queries against their db. When we hit the limit of it, we had to switch to Postgres. That migration is quite difficult and I wish we had used Postgres from the start. 20/20 hindsight but that was my first thought.
- kmfrk 7y agoDo you have any good articles or posts you can think of for managing the migration, in case there're some lifesavers out there.
- rocmcd 7y agoNot an article, but I've used pgloader for this purpose in the past: https://pgloader.readthedocs.io/en/latest/ https://pgloader.readthedocs.io/en/latest/ Great tool, I can't recommend it enough.
- throwaway55554 7y agoWere you using an ORM? I ask because most people use database switching as a selling point for using an ORM. I'm rather indifferent on the matter, but I'm curious.
- kirstenbirgit 7y agoYou still have to migrate the data. I faced the same kind of dilemma, but with MySQL, and kind of noped out when I got to stuff like [0]. [0] https://stackoverflow.com/a/87531/1210797 https://stackoverflow.com/a/87531/1210797
- jtdev 7y agoHa! This selling point is just one in a miserable litany of poor reasons to use an ORM - you absolutely cannot simply switch between databases without doing some work to ensure that the data is migrated correctly and the SQL statements translate properly.
- 7y ago
- rhombocombus 7y agoI came to SQLite recently having used big iron enterprise tools for my analytical work previously (namely Oracle), and wow, what a lovely elegant tool. It isn't just super useful for web and embedded applications, it is quite a powerful and convenient analytical tool for quickly ingesting huge flat files and querying them.
- Animats 7y agoBecause they took reliability seriously. If the people who did the original Macintosh "resource fork" updater had been serious about maintaining consistency of the data structure, that approach would have lasted longer. That was a really good idea, badly implemented because they had to cram it into 128KB and use a floppy. Unfortunately, it wasn't rewritten when the Mac line got more memory and hard disks. Somebody had to get the open source world past using text files for everything.
- bob1029 7y agoSQLite is a wonderful database. We use it in production many times over for all of our clients. Not having to worry about whatever arbitrary SQL Server installation is available in a particular environment has saved us so much time and frustration. Combine SQLite with .NET Self-Contained Deployments means that we (our automated tools) now copy our software distribution zip to target, extract to path, run executable as administrator and walk away. Without SQLite we could not do this. Migrations are also hilariously easy with SQLite if you use the user_version pragma. We have a monotonically-incrementing number to indicate each version. Our migrator first queries this upon startup and runs all the migrations that exist between current user_version and whatever our highest sequence # is (defined as a constant in code). Some might argue that you should just use EF (or whatever language-specific ORM), but I prefer the level of control and the substantial performance boost you get with raw SQL and a simple migrator approach. I cannot speak for EF Core, but EF6 performance was absolutely abysmal in some more complex cases. I would also say that performance might surprise you if you turn on WAL. I have saturated NVMe disks inserting lots of data into SQLite. The trick is to use a single connection and let SQLite handle the serialization for you, rather than try to manage multiple connections to the same file in code (i.e. one connection per logical operation sucks for SQLite).
- api 7y agoI came here to say this. It succeeded because it's an extraordinarily high quality piece of code! The 'lite' is even a bit of a misnomer. Properly tuned I've seen 1TB+ SQLite databases work just fine. It doesn't scale horizontally with CPU cores as well as a "real" database but it can perform very well with large data sets if there's only one or two writers.
- StreamBright 7y agoWhat is the underlying storage structure that scales to TB+?
- pjscott 7y agoJust regular B-trees for row and index storage. There's a reason why it's such a popular data structure! https://www.sqlite.org/arch.html https://www.sqlite.org/arch.html
- hharnisch 7y agoFor all the great things about SQLite there are some concerning things around the project. First off, even though the source code is public domain, you can't contribute since it is closed source: https://sqlite.org/copyright.html https://sqlite.org/copyright.html There are 3 developers who maintain the project https://www.sqlite.org/crew.html https://www.sqlite.org/crew.html and operate under a "code of ethics" that used to be called their "code of conduct" https://sqlite.org/codeofconduct.html https://sqlite.org/codeofconduct.html While it succeeded in getting widely adopted I have trouble believing that this is sustainable.
- dekhn 7y agothey have contracts to support the US military for many decades into the future. Hard to be more sustainable than that.
- hharnisch 7y agoThere are 3 people on the planet who can make changes to it and one person who can work on their custom made source control system. Single points of failure are not sustainable.
- Carpetsmoker 7y agoWell, it's been popular for 20 years, so that sounds fairly sustainable to me. A lot of projects with many more contributors have come and gone in that time period. Either way, that doesn't make it "closed source" like you said in the other comment.
- tzs 7y ago> There are 3 people on the planet who can make changes to it Anyone on the planet can make changes to it and distribute those changes. The only thing those 3 can do that the rest of us cannot is get their changes into the copies distributed at sqlite.org.
- SQLite 7y agoJust to be clear: We do not have any support contracts with the US military, nor any other US government agency, nor any other government entity, either inside or outside the US. Not that we would turn down such work if it were available, it is just that is has never come up.
- outworlder 7y agoOne thing that I wish more people realized, especially ones developing native apps, is this: unless you really need an specific file format for your application, don't design your own. Just use SQLite. You get so much out of it (including features like undo), as well as a huge toolkit.
- combatentropy 7y ago"SQLite does not compete with client/server databases. SQLite competes with fopen()." --- https://www.sqlite.org/whentouse.html https://www.sqlite.org/whentouse.html
- jimis 7y ago> (including features like undo) Can you please elaborate on this?
- g82918 7y agoTransaction rollback is probably what he meant. If that is a familiar topic to you the relation to undo should make sense and his point should be clear. If that doesn't make sense, look up ACID, Transactions, and Migrations in the context of a database.
- deleted 7y ago[deleted]
- hinkley 7y agoI had a different interpretation. It's not uncommon in commercial code to use a sort of copy-on-write behavior where every edit creates a new row and marks the other one as dead (for instance, filling in or blanking out a column to mark it defunct). You leave an audit trail behind. Which, with a little bit of work, can be used to revert to earlier versions.
- kalleboo 7y agoEven Apple, home of not-invented-here, built their "Core Data" object storage API (which is extremely prevalent throughout iOS and macOS apps) using SQLite as a backing store.
- crmrc114 7y agoSerious question, how in the heck did the podcasters get their transcript? Did they pay someone to edit a machine translation? That is one of the coolest things I have never seen for any podcast!
- shadowgovt 7y agoI don't know how they seeded the transcript set (looks like this one landed in 2017), but nowadays, transcripts are accepted via GitHub. https://github.com/thechangelog/transcripts https://github.com/thechangelog/transcripts
- cxr 7y agoAsked and answered here: https://news.ycombinator.com/item?id=15251977 https://news.ycombinator.com/item?id=15251977
- jerodsanto 7y agoYeah except that is a different podcast...
- cxr 7y ago... except it's the same answer, only their response is more detailed.
- jerodsanto 7y agoYes, we pay a human to transcribe each episode and then we open source the markdown on GitHub for community collaboration/improvement.
- everybodyknows 7y ago>... they realized that if this is a critical part of their infrastructure, they needed to make sure my business was sustainable. >So companies which are typically large companies that really depend on SQLite as part of their product, they just pay us an annual fee. >... we are a 100% engineering shop. An intriguing option for anyone sitting on an original infrastructure solution, and looking to turn it into a livelihood, with quality of life as first priority.
- GnarfGnarf 7y agoMy app had been running on CodeBase (dBase clone from Sequiter) for twenty-five years. When we converted to macOS, CodeBase wouldn't compile for 64-bit. Panicked, I turned to SQLite. Miraculously, we were able to switch in a couple of weeks. It is indeed a pleasure to work with. Especially with tools like DB Browser to poke around with.
- vbezhenar 7y agoWhile everyone's praising SQLite, I want to note that SQLite type system is absolutely horrible. When you can store string in the integer column, you don't have a type system. And it's absolutely not intuitive for people having experience with other databases.
- zachwill 7y agoI actually prefer SQLite's take on type affinity: https://www.sqlite.org/datatype3.html https://www.sqlite.org/datatype3.html
- senderista 7y agoI agree, if you want dynamically typed columns then just define a separate Any or Variant type. I don’t see the point of schema if it’s not enforced.
- v64 7y agoHipp talks about that in the interview a little bit: > SQLite really started life as a Tcl extension, Tcl being the programming language, the Tcl/Tk. The project I was working was working on was written in Tcl/Tk and so SQLite began as a Tcl extension and as a scripting language, like Perl or Python, where you can put any type of value you want in a variable. So a variable might hold a string, a number, a byte array or whatever. So I made SQLite the same way, where just because you’ve declared a column of a table to be text doesn’t mean you can’t put integer in there, or just because you declared a column in the table to be a short int, why not put a 2-megabyte blob there? So what? It’ll do that. > Or if you have a column that’s declared integer and you try to put text in it, it looks like an integer and it can be converted without loss. It will convert and store it as an integer. But if you try and put a blob into a short int or something, there’s no way to convert that, so it just stores the original and it gives flexibility there. And this is useful in a lot of cases, because sometimes you just have a miscellaneous column in a table that you might need to store lots of different things in. And in traditional database systems you actually have to have multiple columns, one for each possible data type, whereas in SQLite you put it all in one column. So it works well. > And for that matter, with SQLite you don’t have to give the column a type at all. You can just say, CreateTable T1 (a,b,c) and then you’ve got a table with three columns named a, b and c and you put whatever you want there. > Well, it flows directly out of the scripting language traditions. You don’t declare types for variables in Tcl; you didn’t used to do it in Python, I guess you can do it some, now. You don’t do it in JavaScript… You just say it’s a var.
- mrzacsmith 7y agoI found this fascinating, as a student we are taught to use SQLite and then told to use PostgreSQL for production. I am told that a large amount of mobile native apps use SQLite. Does anyone have any stats on this? Seems like a nice choice, but the searches I have done are all over the place.
- jokoon 7y agoDon't forget about SpatiaLite! Having a GIS-capable lightweight database, without relying on a typical DB system is pretty nice too.
- JTbane 7y agoIt does one thing and does it well.
- bgdkbtv 7y agoAFAIK nomadlist.com by @levelsio is using SQLite in production. He has a bunch of data, plenty of users and his site is very fast. Proof that you can use SQLite in production on a successful project.
- jjice 7y agoI've worked on a few internal tools for the company I intern at and I've always been told to use Postgres. Don't get me wrong, I love Postgres, but for an internal application that won't get any significant concurrent interaction, Sqlite is the way to go in my opinion. Maybe I'll try to mention it at the next meeting.
- mekster 7y agoAnd you'll be told their production is using PostgreSQL. Having identical environment makes life easier. I never run anything on my Mac despite many Unix daemons being available but either run it remotely on Linux or locally via Linux VM with same distro.
- miguelmota 7y agoSomething I see some developers do which I don't recommend is using SQLite for testing environments when they're using PostgreSQL in production. SQLite3 doesn't support a lot of types that PostgreSQL does and it doesn't support things like full outer joins. Save the headaches of debugging in production and spin up a docker PostgreSQL instance since testing environments should emulate production environments as much as possible.
- ebg13 7y ago> and it doesn't support things like full outer joins This at least is possible to fake. But in the era of premade docker packages for postgres, I do wonder why the practice you describe persists.
- miguelmota 7y agoI know some people with a certain generation of Macbook or macOS version have had bad luck running docker which causes their fan to go nuts and resources get drained so they prefer to avoid docker if possible.
- to11mtm 7y agoDepends. The Micro-Orm I use in C# manages to work around this well enough; the only thing SQLite is really hard to work with is Time since there's no real structure defined for it.
- oftenwrong 7y agoYes, I often see Java developers using an embedded H2 database [1] for development and test, and a "real" database in production, and there are always unexpected issues of false-positive tests and functionality due to this. Terrible anti-pattern. I am glad "Dev/prod parity" is recognised in The Twelve-Factor App manifesto [2]. I do what you suggest: run dev/test against a real PostgreSQL (of the same version) running in a container. In fact, I take this further and run builds against an actual PostgreSQL, since I like to generate code based on the DB schema using jOOQ [3]. The build proceeds like so: 1. Spin up a fresh PostgreSQL container 2. Run my schema migrations against it 3. Run the jOOQ code generator against it 4. Compile code This provides some additional guarantees, including: 1. My queries are fully type-safe from my code down to the database schema level 2. My schema migrations can be run against an empty database [1] https://www.h2database.com/html/main.html https://www.h2database.com/html/main.html [2] https://12factor.net/dev-prod-parity https://12factor.net/dev-prod-parity [3] https://www.jooq.org/doc/3.13/manual/code-generation/ https://www.jooq.org/doc/3.13/manual/code-generation/
- rogerthis 7y agoBenedict rule.
- ksharifbd 7y agoI use SQLite for demo projects and it is very cool!
- manigandham 7y agoI also recommend this great video walkthrough of SQLite from Richard Hipp: https://www.youtube.com/watch?v=Jib2AmRb_rk https://www.youtube.com/watch?v=Jib2AmRb_rk
- manigandham 7y agoHere's the MP3 file for those who can't stand 1x playback speed: https://cdn.changelog.com/uploads/podcast/201/the-changelog-201.mp3 https://cdn.changelog.com/uploads/podcast/201/the-changelog-...
- rurban 7y agoI find it remarkable that it succeeded, despite its complete and utter lack of security. It's trivial to overwrite its metatables to create rop chains via select, it's default fts hook is insecure. It's basically a hack. https://research.checkpoint.com/2019/select-code_execution-from-using-sqlite/ https://research.checkpoint.com/2019/select-code_execution-f...
- sriku 7y agoWhile on SQLite, Hipp's fossil-scm is also another great piece of work. My personal favourite to start projects since I can keep code, docs and issues all in a single .. SQLite file! fossil is also just a single executable with no other dependencies and comes with a built-in web server complete with user management if you want to expose to a small group. The main and real reason I love fossil is that I'm always at peace knowing that I can't accidentally bungle up the history. I'm always nervous about that when I use git .. still.
- tomaskafka 7y ago> knowing that I can't accidentally bungle up the history. I'm always nervous about that when I use git I just read a great insight yesterday: > Understanding there’s no harm to be done eases things a lot. It encourages experimenting, which is one of the most effective ways to learn new things and to get familiar with them. Imagine this: you start rebase, mess things up, hit Ctrl+Z several times and try again. Good news is, we can implement Undo/Redo given just ordinary Git implementation. Git already stores all the possible states our repo was in. All Undo/Redo will have to do is to shuffle some branch pointers here and there. https://tonsky.me/blog/reinventing-git-interface/ https://tonsky.me/blog/reinventing-git-interface/
- int_19h 7y agoYou can still bungle history with badly authored commits, though. This is exactly why I like Git - no need to think about how messy the history is while working on something, I can create lots of small commits tweaking things as I go, and then clean it all up into larger commits representing logical groups of changes, with proper description etc.
- sriku 7y agoI'm fine with my commit flow and commenting, which perhaps helps. I do use orphaned dirty branches. It helps that fossil's tags are reusable, unlike git's. For me, there've been cases where I've worked on an angle, only to discard it for another approach .. and much later wanting to revisit that angle because it was a good idea. If I discard history to "clean it up", such a resurrection becomes impossible.
- zubspace 7y agoI'm glad something like SQLite exists. It's awesome if you want to store data in your applications without falling back to a full SQL database. I am also thankful for those client applications like "DB Browser for SQLite" [1]. It nearly provides the same functionality like SQL Management Studio, which is quite an achievement. The only gripe I have with SQLite is with full text search FTS5. The last time I tried to store and retrieve text with associated metadata from another table was really confusing. It kinda worked in the end, but then I also realized that you can't do a contains-query on your text, just starts-with and ends-with [2]. This is a major flaw in my book. So many times I just want to dump tons of text into a table and want to query single words naturally, but I can't do that without resorting to hacks or unoptimized LIKE queries. And if I need to take into account typos or similarity, I'd have no idea how to do that with SQLite. Does someone have experience regarding this? [1] https://sqlitebrowser.org/ https://sqlitebrowser.org/ [2] https://stackoverflow.com/a/24670334/998987 https://stackoverflow.com/a/24670334/998987
- bump64 7y agoWe are currently working on IoT solution where we deploy many distributed computing units with leaf devices and SQLite works flawlessly to keep local state on the remote devices. There may be other solutions but this was a no-brainer for us and so far we haven't had any major issues with it.
- SigmundA 7y agoIs there really any other file based SQL alternative anymore? Back in the day on Windows you would use the Jet (MSAccess) db for this purpose or maybe dBase before that in DOS. Many apps that need to store data would use them as it did not need a server process just a library. I guess you have some NoSql options like LevelDB, but its really nice to have a full ACID SQL engine running in process. I always thought it would be great if PostgreSQL could separate into a library for the DB with a server that uses the lib or you could use the lib directly in your process but I would imagine the process model is baked heavily into the DB engine.
- imtringued 7y agoh2db for java
- djhworld 7y agoIs there a database file format that supports columnar storage query able via SQL? For OLAP style queries. I've tried SQLite for this usecase but the query falls down when querying millions of rows. I know there is parquet file format but I'm wondering if there is like a SQL engine that can sit on top of something like that similar to SQLite
- qwerty456127 7y agoObviously because it's awesome in so many ways. The only thing I miss when using SQLite are implementations in high-level programming languages. In many cases (e.g. with .Net WinForms) using a native library is a pain while the speed native code provides is not always necessary.