phpBB SEO Framework Lite 1.1.3
Critical Performance Fix
- Resolved Unpredictable MySQL Query Plan on
prev_postsCOUNT Query:- Fixed a critical performance regression in v1.1.2 where the historical
prev_postsCOUNT query inSlugRepository::countPrecedingPostscould trigger an unpredictable and slow MySQLindex_merge (intersect: topic_id, post_visibility)execution plan on production-scale databases (~0.28s per query, adding ~0.86s+ per page). - Rewrote the compound
ORpredicate(post_time < ? OR (post_time = ? AND post_id <= ?))by splitting it into two mutually disjoint, unambiguous indexed range queries:- Strictly earlier posts:
WHERE topic_id = ? AND post_visibility = 1 AND post_time < ?(unambiguous range scan using composite indextid_post_time). - Shared timestamp tiebreaker:
WHERE topic_id = ? AND post_visibility = 1 AND post_time = ? AND post_id <= ?(instant point lookup usingtid_post_time).
- Strictly earlier posts:
- Benchmarked across production-scale datasets (15,000+ post topics) and edge cases (shared timestamps, unapproved posts) confirming consistent sub-millisecond to low-single-digit millisecond execution times (0.1ms to 10ms maximum) in all cases with 100% mathematical accuracy.
- Fixed a critical performance regression in v1.1.2 where the historical
Upgrade Recommendation
All boards running v1.1.2 are strongly recommended to upgrade to v1.1.3 immediately, especially if unexpected page load slowdowns were observed after updating to v1.1.2.
Details & Links
- Release Tag: v1.1.3
- Repository: phpbb-seo/seo-framework
- Full Changelog: CHANGELOG.md