hyperactiveresource
hyperactiveresource copied to clipboard
ActiveRecord like query cache
Hey,
i wandered if you already have a solution for this that you use internaly. If you have an association like self.city and you need to call this method often from many objects but the city in question is always the same it would be nice when the find method is cached somewhere to that at least for this request the resource is only fetched once.
How do you got around this problem? Regards
There isn't query cacheing in HyRes yet (sorry), but there is simple associations-caching - so if you reuse the same object-instance it'll be cached on the object... I realise this may not be as useful...