Changes between Initial Version and Version 1 of Ticket #47280, comment 8
- Timestamp:
- 11/25/2020 08:25:09 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #47280, comment 8
initial v1 3 3 The usage in `class-wp-query.php` as some interesting implications. There is a filter on the posts query allowing for a completely arbitrary query to be run. Options that come to mind are to try to parse that query to replace the fields with `COUNT(*)` or simply wrap the query (e.g., `SELECT COUNT(*) from ($query) p`). For safety, I plan to do the latter, but I have no idea how that will play with the query optimizer. 4 4 5 I'm open to other ideas.5 Edit: Realizing the above won't work. At a minimum I need to strip any LIMIT clauses off the original query.