Why is a counter cache harder than a simple after_save hook. Having never
actually attempted to roll my own, I'm curious about what specifically is
difficult.

-- Yehuda

2009/4/5 Jacques Crocker <[email protected]>

>
> If you're in need of counter caches in Datamapper, I found a pretty
> nice plugin that is working great for me so far.
> http://github.com/saimonmoore/dm-counter-cache
>
> Maybe I'm crazy, but can't imagine anyone writing a moderate sized web
> app and not needing counter caches. Any summary list page is going to
> cause an N+1 craziness of count(*) queries. Rolling your own just a
> complete mess (thats what I did before I found this plugin).
>
> We need to get this into dm-more. The plugin is well spec'ed. Maybe we
> should tweak the interface, I'm not sure. Dan, can you take a look and
> see if its to your liking?
>
> This is a followup to the thread:
>
> http://groups.google.com/group/datamapper/browse_thread/thread/95d21ce5a56c493c/c60a2d382dce8817
>
> Thanks
> >
>


-- 
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to