store: Create contract_address index before call cache eviction
Add catalog::table_has_index() to check for index existence, and use it in clear_stale_call_cache to ensure a btree index on contract_address exists before running deletion queries. The index is created concurrently if missing, avoiding sequential scans on large call_cache tables.
D
David Lutterkort committed
a2fe8870beb9317518e1b5ed244c4be4950bb9b1
Parent: 2e46573