v0.1.0-pre.060
This commit is contained in:
25
kb-store/maintenance/reset_derived_store_keep_raw.sql
Normal file
25
kb-store/maintenance/reset_derived_store_keep_raw.sql
Normal file
@@ -0,0 +1,25 @@
|
||||
-- file: kb-store/maintenance/reset_derived_store_keep_raw.sql
|
||||
-- version: 1
|
||||
|
||||
-- Reset every derived Solana table while preserving canonical raw acquisition data.
|
||||
-- Intended for controlled local/research rebuilds only.
|
||||
-- Preserved tables:
|
||||
-- - kb_sol_raw_transactions
|
||||
-- - kb_sol_obs_transaction_observations
|
||||
-- No CASCADE is used: unexpected dependencies fail loudly.
|
||||
|
||||
BEGIN;
|
||||
|
||||
DROP TABLE IF EXISTS kb_sol_mat_events;
|
||||
DROP TABLE IF EXISTS kb_sol_decode_coverage_observations;
|
||||
DROP TABLE IF EXISTS kb_sol_decode_coverage_declarations;
|
||||
DROP TABLE IF EXISTS kb_sol_decode_events;
|
||||
DROP TABLE IF EXISTS kb_sol_ops_processing_ledger;
|
||||
DROP TABLE IF EXISTS kb_sol_core_balance_changes;
|
||||
DROP TABLE IF EXISTS kb_sol_core_logs;
|
||||
DROP TABLE IF EXISTS kb_sol_core_inner_instructions;
|
||||
DROP TABLE IF EXISTS kb_sol_core_instructions;
|
||||
DROP TABLE IF EXISTS kb_sol_core_account_keys;
|
||||
DROP TABLE IF EXISTS kb_sol_core_transactions;
|
||||
|
||||
COMMIT;
|
||||
@@ -1,10 +1,10 @@
|
||||
// file: kb-store/src/postgres/replay_candidates.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
//! Read-only replay candidate filters and PostgreSQL result rows.
|
||||
|
||||
/// Maximum number of rows returned by one replay candidate query.
|
||||
pub const MAX_REPLAY_CANDIDATE_ROWS: u32 = 5_000;
|
||||
pub const MAX_REPLAY_CANDIDATE_ROWS: u32 = 100_000;
|
||||
|
||||
/// Program occurrence scope used while filtering replay candidates.
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
|
||||
Reference in New Issue
Block a user