feat(storage): SQLite PRAGMA tuning + Prometheus metrics - #49
Merged
Conversation
- applyPragmas(): synchronous=NORMAL, wal_autocheckpoint=1000, temp_store=MEMORY, mmap_size=256MB, page_size=4096, cache_size=32MB, recursive_triggers=ON, foreign_keys=ON, optimize - Integrity check on open (PRAGMA integrity_check) - Metrics: yaad_nodes_total, yaad_recall_duration_seconds, yaad_vector_search_duration_seconds, yaad_db_size_bytes, yaad_wal_size_bytes, yaad_lock_wait_seconds, yaad_schema_version, yaad_write_duration_seconds, yaad_migration_duration_seconds - RecordMetrics() for periodic gauge updates
…fixes CI triage on PR #49. lock.go carries the error-handling fix from the process-lock branch ahead of merge.
…72,6089,6090,6091,6218})
…theus - metrics.go/migrate.go: defer Close/Rollback, check PRAGMA Scan errors - cmd/yaad-tui: go.sum entries for new prometheus dependency CI triage on PR #49.
lock_unix.go/lock_windows.go carried over from the process-lock PR. CI triage on PR #49.
# Conflicts: # go.sum
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.
Phase 1 SQLite hardening (3/5). Merges after #48.
applyPragmas: synchronous=NORMAL, wal_autocheckpoint=1000, temp_store=MEMORY, mmap_size=256MiB, page_size=4096, cache_size=-32768, recursive_triggers=ON, foreign_keys=ON, periodicPRAGMA optimizestorage/metrics.gowith promauto Prometheus counters/histograms for storage operationsMerge order: after migrations (#48).