From: Jeremy Kemper Date: 2005-07-05T11:52:05+09:00 Subject: Re: ANN: ContextualService 0.1.0 On Jul 4, 2005, at 4:35 PM, sera@fhwang.net wrote: > So, where in AR you might write: > > next_angle = Company.find_first "name = 'Next Angle'" The dynamic finder methods are more easily mockable. E.g. Company.find_by_name 'Next Angle' I run my unit tests against an in-memory SQLite database rather than mock everything; I wish that could be improved. Tests run in under 10 sec, but that's still too long. > 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? Best, jeremy