Users queries can skip the SQL_CALC_FOUND_ROWS queries
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
Research direction
Start by reproducing the query sequence shown in the issue and review the linked wporg-mu-plugins pull request for context. Trace how HyperDB handles SQL_CALC_FOUND_ROWS before SELECT FOUND_ROWS(); done means the sequence no longer raises the reported error and the found-row result is returned.
Written by the indexing model from the issue text.
Description
Running a query such as the following, followed by a SELECT FOUND_ROWS() will result in an error, and the found rows not being returned.
SELECT DISTINCT SQL_CALC_FOUND_ROWS wp_users.ID FROM wp_users WHERE 1....
results in this error:
Attempted SELECT FOUND_ROWS() without prior SQL_CALC_FOUND_ROWS.
For an example of code that can trigger this, see https://github.com/WordPress/wporg-mu-plugins/pull/412
- Dominant language
- PHP
- Stars
- 150
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Automattic/HyperDB
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Automattic/HyperDB#191 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
Automattic/HyperDB#160 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Automattic/HyperDB#142 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 15/100
Automattic/HyperDB#141 · 2 comments · 2 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
Automattic/HyperDB#139 ·
All issues in Automattic/HyperDB
Similar issues
-
sync-en
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
sync-en
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
Перевод устарел
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·