Repository navigation
feat(scripts): add index verification for new time-series tables in verify_indexes - #64
Open
guptakumarranjeet150 wants to merge 1 commit into
Conversation
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 #50
Description
Extends
scripts/verify_indexes.shandscripts/verify_indexes.ps1to verify index existence and query planner usage for the new time-series tables added in migrations #45-#47 (network_daily_metrics,soroban_daily_metrics,wallet_balance_snapshots, anddaily_stat_snapshots).Changes
network_daily_metrics: checksidx_network_daily_metrics_datesoroban_daily_metrics: checksidx_soroban_daily_metrics_dateandidx_soroban_daily_metrics_contractwallet_balance_snapshots: checksidx_wallet_balance_snapshots_uniqueandidx_wallet_balance_snapshots_address_timedaily_stat_snapshots: checksidx_daily_stat_snapshots_dateEXPLAIN QUERY PLANchecks on real query patterns for network metrics (Add /api/v1/network/daily-active-accounts time-series endpoint #15-Add /api/v1/network/fee-trends endpoint #19), Soroban rollup queries (Add /api/v1/soroban/active-contracts endpoint #21-Add /api/v1/soroban/top-contracts and /new-deployments endpoints #24), wallet balance history (Add /api/v1/wallets/{address}/balance-history endpoint #26), and daily stat snapshots (Add vs-yesterday delta calculation via previous-day snapshot storage #3).SEARCH ... USING INDEXwith zero full-table scans.verify_indexes.sh) and PowerShell (verify_indexes.ps1) implementations strictly in sync.