lnd icon indicating copy to clipboard operation
lnd copied to clipboard

graph/db: async graph cache population

Open ellemouton opened this issue 6 months ago • 3 comments

Let the channel graph cache be populated asynchronously on startup. While the cache is being populated, the graph is still available for queries, but all read queries will be served from the database until the cache is fully populated. This new behaviour can be opted out of via the new --db.sync-graph-cache-load option.

Fixes #6187 Replaces #8919 Depends on https://github.com/lightningnetwork/lnd/pull/10068

ellemouton avatar Jul 10 '25 12:07 ellemouton

/gemini review

ellemouton avatar Jul 10 '25 13:07 ellemouton

If there are writes to the underlying graph during cache population are these queued to be written into the cache, or will these entries just experience a cache miss when a read happens later?

djkazic avatar Jul 12 '25 13:07 djkazic

@ellemouton, remember to re-request review from reviewers when ready

lightninglabs-deploy avatar Aug 28 '25 19:08 lightninglabs-deploy