[DataMapper] Re: Datamapper Counter Caches - Solved

2009-04-06 Thread Yehuda Katz
It might be interesting to use Merb's run_later facilities to asynchronously update the counter cache on a periodic basis (or only if something was added to a queue). However, it feels like the BEST option would be to add a standard database trigger and let the database handle it without the

[DataMapper] Re: datamapper and rails

2009-04-06 Thread Michael Klishin
2009/4/6 kristian meier.krist...@gmail.com: there is a restful adapter in datamapper4rails. when I last look at the dm-more/adapter is was not in working state. then I had the choice between active_resource and datamapper. since datamapper opened the possibilty to reuse the model classes for

[DataMapper] Postgres prepared transactions rocked my world

2009-04-06 Thread Chris Van Pelt
I just had a blast investigating some troublesome DB behavior and wanted to get it down in writing. This also may affect the way DataMapper handles transactions, or atleast the way I'm using them. Yesterday I noticed certain update queries were hanging indefinitely. Doing a SELECT * FROM