aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/migrate.py
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-21 19:44:24 -0700
committerAdam Soltys <[email protected]>2026-09-21 19:44:24 -0700
commit6186159954646b92f1efdbb5c8f0ffa26e29e0ab (patch)
tree6d78cfb13bdafb079c8bac80710fbd7536e2d7a6 /scripts/migrate.py
parent23c8b11bd3c1dee56781cc83e65e077409c0858e (diff)
downloadcoinos-server-6186159954646b92f1efdbb5c8f0ffa26e29e0ab.tar.gz
coinos-server-6186159954646b92f1efdbb5c8f0ffa26e29e0ab.zip
parse: cache node aliases as a small map with a working timestamp
The alias cache stored the full listnodes output as an array and hung its `last` stamp on that array, which JSON.stringify drops, and the refresh condition was inverted besides. Net effect: every lightning send page view refetched all ~16k nodes and rewrote ~10MB to the db. Keep only the id→alias map with a real timestamp and refresh it hourly. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Diffstat (limited to 'scripts/migrate.py')
0 files changed, 0 insertions, 0 deletions