You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wp_edit_posts_query() has an unbounded query that triggers when viewing a hierarchical post type; specifically, this code sets posts_per_page to be unlimited and overrides the order, but only when no orderby is set.
This means page loads can take vast amounts of time, but if you click on the Date column to "reorder" the page, it's suddenly fast, even though it renders the same page.
I've checked and VIP is overriding this when the page is loaded so clearly they've hit this issue previously too - we should apply a similar workaround to ensure the query is not unbounded.
Steps to reproduce:
Create 100k+ pages or other hierarchical post type
Load the list table for the post type
Observe unbounded query in Query Monitor for the post
Acceptance criteria:
...
The text was updated successfully, but these errors were encountered:
rmccue
added
the
bug
Existing functionality isn't behaving as expected
label
Dec 8, 2023
wp_edit_posts_query()
has an unbounded query that triggers when viewing a hierarchical post type; specifically, this code setsposts_per_page
to be unlimited and overrides the order, but only when no orderby is set.This means page loads can take vast amounts of time, but if you click on the Date column to "reorder" the page, it's suddenly fast, even though it renders the same page.
I've checked and VIP is overriding this when the page is loaded so clearly they've hit this issue previously too - we should apply a similar workaround to ensure the query is not unbounded.
Steps to reproduce:
Acceptance criteria:
The text was updated successfully, but these errors were encountered: