feat(backend): API & Database Scaling Part 49 / Advanced Logic Part 39 (#294)#850
Merged
Wilfred007 merged 5 commits intoMay 30, 2026
Merged
Conversation
- GET /api/v1/db-scaling/bgwriter-stats — pg_stat_bgwriter snapshot (checkpoint frequency, buffer write counts, I/O durations) - GET /api/v1/db-scaling/database-stats — pg_stat_database snapshot (txn throughput, cache hit ratio, deadlocks, temp file usage) - Add WebhookService with retry/backoff delivery and delivery log writes - Integration tests for both new db-scaling endpoints - OpenAPI spec updated
Gildado#294) - GET /api/v1/db-scaling/table-io-stats — pg_statio_user_tables snapshot (heap, index, TOAST block reads vs hits; heapCacheHitRatio computed) - GET /api/v1/db-scaling/index-usage-stats — pg_stat_user_indexes snapshot (idx_scan, idx_tup_read, idx_tup_fetch per index; ordered by scan count) - Both endpoints accept ?limit (default 30, max 100) with 400 validation - Integration tests: happy path, invalid-limit 400, service-throws 500
|
@Joeloo1 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! 🚀 |
- Remove unused imports: StellarWalletsKit, MapPin, screen, AxiosError - Remove unused eslint-disable directive in transactionHistoryApi test - Fix catch binding: catch (err) → catch in PayrollScheduleForm - Fix no-misused-promises: wrap async onSubmit in void handler - Fix prefer-const: let current → const in SchedulePreview - Remove unused xdr/nativeToScVal destructuring in useContractMetrics - Fix no-base-to-string: guard String(val) for object types - Remove unused SchedulingWizard import and handleScheduleComplete in PayrollScheduler - Fix JSX parse error: </main> → </div> in Settings - Remove dead useTheme/languageLoading code in Settings - Replace unsafe (error as any) casts with proper instanceof checks
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.
Summary
GET /api/v1/db-scaling/table-io-stats— per-table I/O snapshot frompg_statio_user_tablescovering heap, index, and TOAST block reads vs buffer-cache hits, with a computedheapCacheHitRatioto surface cache-cold tablesGET /api/v1/db-scaling/index-usage-stats— per-index access snapshot frompg_stat_user_indexesshowing scan count, rows read, and rows fetched; ordered by scan frequency to identify hot and unused indexes?limitquery param (default 30, max 100)Acceptance Criteria
limit, 500 vianext(err)on service failureCloses #739