Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

More lightweight software

The other toy I’ve been playing with recently is SQLite. SQLite is an embeddable SQL database engine written in just under 25,000 lines of (heavily commented) C. Don’t let the size fool you—it’s phenomenally powerful and is released under a no-holds-barred public domain license that practically begs you to include it in your applications, commercial or not.

The feature list is pretty awesome—it’s two times faster than both mySQL and Postgres on simple operations, implements an impressive amount of the SQL92 standard (including transaction support) and has bindings for Tcl, PHP, Perl, Python and Java.

That said, the lack of a security model (databases are stored in a single file with no user authentication / permissions system) and the fact that it’s very much meant for embedding rather than featuring a client-server model mean it isn’t really suitable for web applications. Where it would shine (and where the author intended it to be used) is in applications that would benefit from an ultra fast relational database but don’t need the overhead of embedding a large system such as mySQL. The no-strings license makes it a tempting prospect for that kind of work as well.

Definitely one for the tool box.

This is More lightweight software by Simon Willison, posted on 12th March 2003.

Tagged ,

View blog reactions

Next: More nukes

Previous: Blosxom rocks

2 comments

  1. Note: It's one of the available backend stores for Roundup (http://roundup.sf.net/) and is demonstrably twice as fast as the new mysql backend. Note that metakit is also very, very fast (though a little strange to install and use).

    Richard Jones - 13th March 2003 20:52 - #

  2. Oh, and it has built-in locking, so if you _were_ to use it in a web/multi-interface application (as with Roundup) then you won't get data corruption, just the occasional slow access.

    Richard Jones - 13th March 2003 20:53 - #

Comments are closed.

Previously hosted at http://simon.incutio.com/archive/2003/03/12/moreLightweightSoftware

A django site