-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Abysmal response time when fetching pages to be listed in page attributes. 2nd try #13618
Comments
This is issue could be considered a duplicate of #7384 as we need a paginated select component to solve it. An quick win could be to increase the maximum number of items fetched per page to reduce the number of the requests being performed. |
That won't really reduce the amount of time wasted in the server. Each page will still be expanded to return the content and excerpt. For my CPT called |
That's also a good thing to consider |
Thanks for the |
Hi, I'm using Gutenberg 7.1.0 now and I still have a problem with the solution. The popup list for Parent Page: often appears with duplicate entries. Chrome inspector: HTML for the Chrome inspector: Network requests. |
OK. So no progress is being made on this or #9441, which is approaching a year since I documented my findings. I was unable to test #16666. @adamsilverstein what do you suggest? Is there a fork I can easily access to try it? |
I don't know how many other defects are associated with this issue but we suffered it again today in a site which only had just over 140 pages, but where each page contained a number of shortcodes ( from tablepress ) that were being unnecessarily expanded. We also noted another issue where the page list that was returned was almost empty. We didn't complete the investigation of the root cause but had a hunch it was due to all pages having a menu order of 0. Changing the menu order for a couple of pages appeared to resolve the issue. In my opinion this is not an enhancement - it's a bug. |
It seems this particular call should not have |
I believe |
OK, so as you can see from the above, I've finally developed a fix. Added one line of code! |
Apparently it's been tried and deemed no good. Back to the drawing board? |
…ulate the Parent page select list (#23637) Co-authored-by: Riad Benguella <[email protected]>
Describe the bug
The time to populate the Parent Page: pull down in the Page Attributes settings box is still abysmal.
I'm raising this since #5376 was closed without being fixed.
I re-discovered the problem while attempting to resolve a similar problem to that reported in #9441.
To Reproduce
Expected behavior
Page parent to be populated as quickly or faster than in the Classic Editor.
Observed behaviour
Multiple REST requests of the form
https://s.b/oikcom/wp-json/wp/v2/pages?per_page=100&exclude=7413&parent_exclude=7413&orderby=menu_order&order=asc&context=edit&_locale=user
with the second and subsequent requests including &page=n
the_content
andget_the_excerpt
.I notice that that requests do not include the
_fields=id,title,parent
parameter that was suggested would help with the performance.When I add this parameter manually the performance is significantly better.
https://s.b/oikcom/wp-json/wp/v2/pages?per_page=100&exclude=7413&parent_exclude=7413&orderby=menu_order&order=asc&_locale=user&_fields=id,parent,title
Server execution reduced from 4.3 secs to 0.9
Note: Tested in browser with
&context=edit removed
.Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: