feat: PgBouncer pooling, cache warming, search autocomplete, API deprecation - #986
Merged
nanaf6203-bit merged 1 commit intoJul 26, 2026
Conversation
…ecation headers - MettaChain#951: Add PgBouncer service to docker-compose.yml with transaction-level pooling, configure PrismaService for pgbouncer=true, expose pool metrics to Prometheus, and add PGBOUNCER_POOL_SIZE env var - MettaChain#952: Expand CacheWarmingService with @Cron periodic refresh (30 min), predictive warming from access patterns, startup warming via OnModuleInit, and hit-rate monitoring before/after each warming cycle - MettaChain#953: Rewrite SearchAutocompleteService to query Prisma SearchHistory and PopularSearch models, add personalised ranking (user's own searches boosted), deduplicated grouped suggestions by type (property/location/ feature/recent/popular), and wire userId from the authenticated request - MettaChain#954: Expand DeprecationWarningInterceptor with RFC 8594 Sunset header, RFC 7234 Warning header, minimum 90-day deprecation notice enforcement, automatic sunset transition when the sunset date passes, and central DEPRECATION_POLICY config in api-version.constants.ts Closes MettaChain#951 MettaChain#952 MettaChain#953 MettaChain#954
|
@demilade18-git Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #951, Closes #952, Closes #953, Closes #954
Changes
#954 - API Version Deprecation Headers
#953 - Property Search Autocomplete
#952 - Redis Cache Warming
#951 - PgBouncer Connection Pooling