Internal performance fix: sidebar loads faster with fewer database queries.
Each page load was triggering multiple unnecessary database round-trips when rendering the navigation sidebar. Premium feature badges were each issuing their own database query instead of sharing a single batch load. The fix pre-loads all feature tier information once per request and shares it across all sidebar items, reducing redundant database operations on every page view.
Fixes and Improvements¶
- Eliminated N+1 database queries in sidebar premium badge rendering
- Feature tier data is now batch-loaded once per request via the context processor
- Premium badge and upgrade prompt tags now read from pre-loaded context instead of querying the database per item