Poor Performance when using RelationService v7.0.3
I haven't been using Umbraco for long so I may be doing things incorrectly, but I have a website where members can log in and 'like' articles. I am using a relation between an 'article' and a 'member' to represent liked articles.
I am using the code below to retreive all liked articles for a member:
Poor Performance when using RelationService v7.0.3
I haven't been using Umbraco for long so I may be doing things incorrectly, but I have a website where members can log in and 'like' articles. I am using a relation between an 'article' and a 'member' to represent liked articles.
I am using the code below to retreive all liked articles for a member:
However, this code seems to generate many database calls in a loop (see output from umbDebug below).
I have tried splitting the LINQ clause into multiple lines but it still loops through each object in the relation.
Any ideas on how this can be more efficient? Should I not be using relations for my scenario?
Any help would be very much appreciated.
Debug Output:
Hi,
I know this is an old post. But I thought you might be interested in this: https://our.umbraco.org/forum/using-umbraco-and-getting-started//79803-significant-performance-bottleneck-in-relationservice#comment-79803
All the best,
Paul.
is working on a reply...