Skip to content

fix mem leak and significant speeds up metadata update during live sync

Marcin requested to merge mi_jitt_off_when_update_metadata into develop

We discovered that during live sync updating metada caused a memory leak. We found that Postgres has a bug with JIT inlining like here https://www.postgresql.org/message-id/18074-9f187d80c23e0fd9@postgresql.org na reported by many other db users. After research it turned out that disabling jit fo metadata update gives positive effects: memory becomes stable and blocks are processed much faster. On the chain head (78m) updating metadata becomes faster from ~800ms to 1ms. research.ods

Merge request reports