We are on a 8.5 platform with DXA 2.0. Due to the client requirements, we are not using the default navigation for creating menus/footers, instead we have a custom schema for both these which are fairly complex. In these components we are adding the required components as internal links at 3rd level of the menu schema. When we are fetching the data from model service, it is returning almost the complete website data with every request.
It is basically getting all the directly linked or indirectly components along with every detail of each, whereas we just need the link ("url") for those linked components.
Since these are in menu and footer, this huge information is flowing with every request and slowing down our servers and websites. Even the though the 2nd request should have been faster (assuming the 1st time, it gets cached), it doesn't seem to be happening
Question: Is this an expected behavior or are we missing some obvious configuration? If yes, shouldn't the 2nd request be faster? We have verified our caching settings which has been set to 1hr.