Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi guys,
Does the Relationship API hit the DB each time or are they cached with everything else?
Cheers
Phil
Hi,
I was going to say the answer was yes - at the database level, but checking the code for the Relations repository, it doesn't appear that they are 😕
Most other things are cached at the DB level. - but not relations, not sure of the reasoning why. but in short no.
Thanks Kevin.
Yeah I didn't think they were cached. Not to worry, I'll just have to monitor the performance, hopefully it won't be too much of a hit.
For anyone else that is interested, the docs actually mention that you should wrap relations in a custom caching layer.
Relation Service Docs
Caching in Umbraco
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Are Relations cached?
Hi guys,
Does the Relationship API hit the DB each time or are they cached with everything else?
Cheers
Phil
Hi,
I was going to say the answer was yes - at the database level, but checking the code for the Relations repository, it doesn't appear that they are 😕
Most other things are cached at the DB level. - but not relations, not sure of the reasoning why. but in short no.
Thanks Kevin.
Yeah I didn't think they were cached. Not to worry, I'll just have to monitor the performance, hopefully it won't be too much of a hit.
Cheers
Phil
For anyone else that is interested, the docs actually mention that you should wrap relations in a custom caching layer.
Relation Service Docs
Caching in Umbraco
is working on a reply...