Skip to content

Do not slow query by sotring, when counting#4481

Closed
guss77 wants to merge 2 commits intoWordPress:trunkfrom
guss77:guss77-slow-comment-counts
Closed

Do not slow query by sotring, when counting#4481
guss77 wants to merge 2 commits intoWordPress:trunkfrom
guss77:guss77-slow-comment-counts

Conversation

@guss77
Copy link
Copy Markdown

@guss77 guss77 commented May 21, 2023

If the caller wants a count, sorting just slows down the database (sometimes massively) without providing any more information.

Trac ticket: guss77#1

EDIT by @audrasjb: Trac ticket: https://core.trac.wordpress.org/ticket/58368

guss77 and others added 2 commits May 21, 2023 18:10
If the caller wants a count, sorting just slows down the database (sometimes massively) without providing any more information.
@audrasjb
Copy link
Copy Markdown
Contributor

Thanks for the PR, I added the Trac ticket number in the description to make sure the PR appears in the related Trac ticket. Also, I added one commit to fix some WordPress Coding Standards issues.

@spacedmonkey
Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants