Try our conversational search powered by Generative AI!

Check the ContentType of a ContentReference without loading the object

Vote:
 

It would be helpful with a function to see which ContentType a ContentReference points to without actually having to load the entire data object.

We have two different ContentTypes: CategoryNode and BrandNode that both are linked to entries with NodeRelations. Our customer updates the relations through an integration and at that time we need to load the existing relations and determine which one(s) points to a BrandNode. Today we have no better solution than to load all nodes from the database and check the ContentType afterwards. The most annoying part is that we get over thousands of database calls to get assets through ecf_CatalogNode_Asset, which isn't needed at all to update relations. undecided

#192417
May 16, 2018 14:49
Vote:
 

Sounds like something that should be supported at CMS core level first. Well you can always have some SP to query data if you want to :) - or if you want to use APIs - the ICatalogSystem has something that might interest you.

#192430
May 16, 2018 17:07
Vote:
 

Something is up https://world.episerver.com/blogs/Quan-Mai/Dates/2018/6/a-new-open-source-project-catalogcontenttyperesolver-/

#194060
Edited, Jun 12, 2018 13:28
This thread is locked and should be used for reference only.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.