- 🐛 Fixed superfluous DB queries on Collection save - Fabien "egg" O'Carroll
View the changelog for full details: v5.57.1...v5.57.2
🌐 Help us translate Ghost + Portal: https://forum.ghost.org/t/help-translate-ghost-beta/37461
Tag Name: v5.57.2
Release Date: 8/2/2023
GhostOpen-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.
This minor patch release focuses on performance improvements for Ghost's Collections feature, addressing database query issues that were impacting larger sites. The update also enhances theme error handling for page features, improving the developer experience when working with custom themes.
No migration steps are required for this update. The changes are applied automatically when upgrading to v5.57.2.
This update is recommended for all Ghost users, particularly those with larger sites who may be experiencing performance issues when working with Collections.
The patch contains important performance optimizations and bug fixes that improve the overall stability of Ghost, with no breaking changes or migration steps required.
To upgrade:
ghost updateThis release addresses a critical performance issue related to Collections. Previously, when saving a Collection, the bookshelf-relations plugin would trigger a global hook that updated the sort_order for all related items in pivot tables. For sites with many posts, this resulted in numerous database queries (at least one per post), which could severely impact database performance.
The fix disables these automatic updates for all Collections, as they're only necessary for Collections with a "manual" type. This change significantly reduces database load, especially for larger Ghost sites.
The release also includes an update to how theme errors are handled and displayed for page features:
No new features were introduced in this patch release.
No security fixes were included in this release.
This release delivers a significant performance improvement by eliminating unnecessary database queries when saving Collections:
sort_order for all related items in pivot tablesGhost v5.57.2 delivers important performance optimizations for the Collections feature, addressing a database query issue that could significantly impact larger sites. By eliminating unnecessary database operations when saving Collections, this update reduces server load and improves overall system performance.
The release also enhances theme development with improved error handling for page features, providing more targeted error displays in the sidebar. This change makes it easier for theme developers to identify and fix issues in their custom themes.
While the Collections feature is not yet fully released, these optimizations lay important groundwork for its stable implementation, particularly for sites with large numbers of posts. The changes are non-breaking and require no migration steps, making this a straightforward but valuable update for all Ghost installations.
View the changelog for full details: v5.57.1...v5.57.2
🌐 Help us translate Ghost + Portal: https://forum.ghost.org/t/help-translate-ghost-beta/37461