Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiplying calls to _api/site?$select=IsHubSite,HubSiteId,Id #3999

Open
tom-daly opened this issue Sep 20, 2024 · 2 comments
Open

Multiplying calls to _api/site?$select=IsHubSite,HubSiteId,Id #3999

tom-daly opened this issue Sep 20, 2024 · 2 comments
Labels
Needs: Triage Needs investigation and repro

Comments

@tom-daly
Copy link

Version used
Ex: 4.13.1.0

Describe the bug
The more verticals and more results on the page the webparts multiplies the number of calls to _api/site?$select=IsHubSite,HubSiteId,Id

This is resulting in very long search times for highly customized pages.

To Reproduce
1 Search Box & 1 Results = 1 call
image

1 Search Box, 1 Search Vertical [All] & 1 Results [Configured to all Vertical] = 4 calls
image

1 Search Box, 7 Search Verticals & 7 Results [1 per vertical] = 37 calls
image

I've tried default webparts with no special queries and its the same the number of calls seems to multiply but the number of items.

switch vertical - it makes 16 more requests
2024-09-20_13-04-45

Expected behavior
when the webpart is loaded grab this value ahead of time or cache it.

Screenshots
see above

Desktop (please complete the following information):

  • Browser Chrome

Additional context

@kasperbolarsen
Copy link
Collaborator

@patrikhellgren just a guess without any proof: Could this be a side effect of the audience targeting in the verticals?

@patrikhellgren
Copy link
Contributor

@kasperbolarsen After checking the code it doesn't seem to have anything to do with that. I can reproduce the issue but not all the time so I will have a look at what could be causing this and post back here.

@wobba wobba added the Needs: Triage Needs investigation and repro label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage Needs investigation and repro
Projects
None yet
Development

No branches or pull requests

4 participants