hyperactiveresource icon indicating copy to clipboard operation
hyperactiveresource copied to clipboard

ActiveRecord like query cache

Open dp20100223 opened this issue 15 years ago • 1 comments

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

dp20100223 avatar Mar 05 '10 16:03 dp20100223

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...

taryneast avatar Mar 12 '10 12:03 taryneast