You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
canoncial_header() function introduced in #11 can find the canonical header based on the weight in the database, but it is a iterative function that is prohibitively expensive for serving request on-the-fly for headers that are far removed from the current head.
We need to create a trigger function that watches for inserts at the head (n) and uses canoncial_header() to derive and caches the canonical header (or rather a reference to it) for block n - x, where x can be adjusted (start with a default of 2048).
The text was updated successfully, but these errors were encountered:
canoncial_header()
function introduced in #11 can find the canonical header based on the weight in the database, but it is a iterative function that is prohibitively expensive for serving request on-the-fly for headers that are far removed from the current head.We need to create a trigger function that watches for inserts at the head (
n
) and usescanoncial_header()
to derive and caches the canonical header (or rather a reference to it) for blockn - x
, wherex
can be adjusted (start with a default of 2048).The text was updated successfully, but these errors were encountered: