Best way to search?
# help-with-umbraco
p
Hey all, i'm currently wondering what the best possible way is to search for something. I want to display a list (Geschäftsbereiche) inside the Team Page. Now im wondering what the best way is to get to this data. In the past we've worked alot with examine and queries but now we're also working alot with the Modelsbuilder. And i was wondering if there is any good approach to get to this data as simple and performat as possible. In the image you can see my list Geschäftsbereiche and the Page "Team" where i want to display it.
j
Assuming this is Umbraco 8+ there is no definite answer to whether Examine or IPublishedContent with fx LINQ is more performant, will depend on the usecase each time. In your case I'd say unless you have thousands of complex nodes under Geschäftsbereiche I'd go with IPublishedContent in this case. If the folder has a specific type you can get it as a sibling, otherwise you could add a contentpicker on the team page that picks the Geschäftsbereiche folder and then loop through its children fx?
p
Thanks @Jemayn for your answer! I've now used the sibling approach. Just because im wondering, what would you use if you would have thousands of complex nodes?
j
Then probably examine as it will probably perform better, but could do both approaches and do a test to see. As long as it loads fast either way it shouldn't really matter, and getting the data as IPublishedContent is usually a lot easier to work with
a
Examine would probably be the fastest when you have lots of nodes, as it creates a nice little index so it can quickly query for the correct information. If you have only a limited amount of nodes, or they are in a clear structure, i'd go for Linq queries
p
Thanks everyone!