Francis Hwang
7/5/2005 12:25:00 PM
Jeremy Kemper wrote:
> On Jul 4, 2005, at 4:35 PM, sera@fhwang.net wrote:
> > Query inference has a few other cool applications. For one thing,
> > Lafcadio caches those query results in memory, and can do some simple
> > calculations to see if one query is a subset of a previous one. So, if
> > you run these three queries:
>
> Cool! This assumes transactions are serialized (no dirty reads); can
> you detect whether caching is safe?
No, Lafcadio doesn't support transactions, since I haven't worked on
any app where I feel it's necessary. (I would not currently recommend
that you use Lafcadio to handle, say, financial trading or medical
records.) Its understanding of caching and transactions is fairly
simple-minded, and I don't imagine it's thread-safe, either. (I don't
use concurrency, either.)
It seems there are some regular Lafcadio users besides myself, but I
still largely see it as a project driven by my own ORM needs. In
particular, I'm reluctant to introduce features that I myself never
use, because I can't then guarantee if that feature is any good.
However, I'm open to adding features such as transaction support or
Postgres support if I can be assured that somebody is going to be
testing it out on real code.
f.