Search / My Jetpack: Function get_raw_post_type_breakdown can render back end inaccessible #38130
Labels
[Feature] Search
For all things related to Search
[Focus] Performance
[Package] My Jetpack
[Plugin] Backup
A plugin that allows users to save every change and get back online quickly with one-click restores.
[Pri] High
[Status] Priority Review Triggered
The guild in charge of triage has been notified of this issue in Slack
Triaged
[Type] Bug
When a feature is broken and / or not performing as intended
Impacted plugin
Backup
Quick summary
I have a very large site with millions of records in the
_posts
table. The admin area (admin.php) is now inaccessible due to this query: "SELECT post_type, post_status, COUNT( * ) AS num_posts FROM ***_posts WHERE post_password = '' GROUP BY post_type, post_status"I traced this back to plugins\jetpack-backup\jetpack_vendor\automattic\jetpack-my-jetpack\src\products\class-search-stats.php,
Line 140
The function get_raw_post_type_breakdown() is the culprit.
Steps to reproduce
A clear and concise description of what you expected to happen.
Back end should load without much delay.
What actually happened
The back end timed out.
Impact
All
Available workarounds?
No but the platform is still usable
Platform (Simple and/or Atomic)
Self-hosted
Logs or notes
Jetpack Backup 2.6
The text was updated successfully, but these errors were encountered: