Drop overly optimistic index
authorMatt Corallo <git@bluematt.me>
Sun, 16 Jul 2023 17:20:56 +0000 (17:20 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 16 Jul 2023 17:20:56 +0000 (17:20 +0000)
commit40b0a7585a79e14de8e650188bca84be70aed3e5
tree527351f49405fa2ec8e93f85c56858608bebb95e
parentfee45d58d49ae14299c849abe0a3eb1b5f9de060
Drop overly optimistic index

The `channel_updates_id_with_scid_dir_blob` index allows the
intermediate-row-fetching logic to be index-only, but there's very
little reason to do so - we now use subqueries to build the exact
set of rows we want, by id, and then fetch various colums. Having
an index that lets us look up those columns without hitting the
regular table is fine, but there's not a ton of cost to hitting the
table by primary key and maintaining yet another index isn't free.
src/config.rs