Cato and Claude
b46062cd37
fix(market-data): keep EDGAR snapshots in memory only when the database write fails ( #415 )
...
writeSnapshot put every fundamentals and holders snapshot into a
module-level Map before writing it to research_market_snapshots, and
never dropped it. Every company the nightly /api/cron/prices facts
run refreshed stayed in the app heap until the next restart: about
0.1 MB a company, measured against live SEC data, across 506 tracked
SEC filers. The app unit is throttled at MemoryHigh=768M (killed at
1G), and the substrata crons have failed starting with the 22:07 UTC
prices run on 2026-11-20 and 2026-11-21.
The module's own comment says the in-process copy stands in where
there is no database. It now does only that: set when the row cannot
be written, dropped when it is.
Co-authored-by: Claude <noreply@anthropic.com >
2026-11-28 21:31:52 +01:00
..
2026-10-27 21:44:15 +01:00
2026-10-29 11:57:03 +01:00
2026-10-24 11:04:03 +02:00
2026-10-23 13:00:25 +02:00
2026-10-02 10:16:53 -07:00
2026-10-23 13:43:18 +02:00
2026-10-27 10:36:52 +01:00
2026-10-27 10:36:52 +01:00
2026-10-02 06:09:29 -07:00
2026-10-24 18:49:23 +02:00
2026-10-27 21:44:15 +01:00
2026-10-24 18:49:23 +02:00
2026-10-22 20:47:56 +02:00
2026-10-24 10:36:20 +02:00
2026-10-09 07:32:12 -07:00
2026-10-23 13:00:25 +02:00
2026-09-25 02:13:44 -07:00
2026-11-12 05:55:48 +01:00
2026-09-24 02:17:26 -07:00
2026-10-07 09:08:05 -07:00
2026-09-25 23:10:52 -07:00
2026-09-24 14:10:02 -07:00
2026-09-15 04:13:32 -07:00
2026-10-24 10:24:53 +02:00
2026-11-05 20:51:47 +01:00
2026-10-12 04:09:08 -07:00
2026-10-12 06:34:47 -07:00
2026-10-12 05:11:11 -07:00
2026-10-12 03:31:04 -07:00
2026-10-24 18:49:23 +02:00
2026-09-24 11:22:12 -07:00
2026-09-21 00:08:47 -07:00
2026-10-24 18:49:23 +02:00
2026-10-27 12:35:27 +01:00
2026-10-27 21:44:15 +01:00
2026-10-24 18:49:23 +02:00
2026-10-25 12:23:32 +01:00
2026-10-27 21:44:15 +01:00
2026-10-27 15:37:22 +01:00
2026-10-27 15:51:29 +01:00
2026-09-24 02:05:07 -07:00
2026-10-25 12:54:53 +01:00
2026-10-27 08:56:43 +01:00
2026-09-15 02:41:54 -07:00
2026-10-12 10:18:54 -07:00
2026-10-24 09:33:33 +02:00
2026-10-24 09:26:12 +02:00
2026-10-24 09:26:12 +02:00
2026-10-29 11:57:03 +01:00
2026-11-12 08:16:31 +01:00
2026-09-18 08:10:31 -07:00
2026-11-12 05:19:53 +01:00
2026-09-24 16:02:40 -07:00
2026-10-12 10:18:54 -07:00
2026-10-24 11:49:38 +02:00
2026-09-17 06:57:53 -07:00
2026-10-24 10:51:06 +02:00
2026-10-24 08:29:39 +02:00
2026-09-24 13:47:14 -07:00
2026-10-01 08:34:52 -07:00
2026-09-25 08:39:07 -07:00
2026-09-25 08:39:07 -07:00
2026-11-05 19:44:23 +01:00
2026-10-17 03:27:27 -07:00
2026-09-25 05:22:39 -07:00
2026-09-25 01:44:30 -07:00
2026-09-24 02:28:15 -07:00
2026-10-25 12:23:32 +01:00
2026-11-12 08:16:31 +01:00
2026-10-27 21:07:46 +01:00
2026-09-25 05:40:44 -07:00
2026-09-30 10:06:24 -07:00
2026-10-30 23:35:59 +01:00
2026-10-24 08:43:42 +02:00
2026-11-12 07:57:25 +01:00
2026-09-17 06:07:52 -07:00
2026-10-23 13:47:27 +02:00
2026-10-23 13:47:27 +02:00
2026-10-24 10:03:52 +02:00
2026-10-24 11:49:38 +02:00
2026-09-17 06:57:53 -07:00
2026-10-24 10:51:06 +02:00
2026-09-25 23:02:57 -07:00
2026-10-06 03:45:31 -07:00
2026-10-23 13:03:36 +02:00
2026-09-26 00:23:09 -07:00
2026-10-23 13:03:36 +02:00
2026-09-25 08:39:07 -07:00
2026-10-27 08:47:33 +01:00
2026-11-28 20:26:37 +01:00
2026-10-27 08:47:33 +01:00
2026-10-27 15:50:37 +01:00
2026-11-20 04:07:14 +01:00
2026-11-12 07:32:53 +01:00
2026-09-24 22:33:46 -07:00
2026-10-01 05:07:00 -07:00
2026-11-12 10:55:43 +01:00
2026-10-27 08:47:33 +01:00
2026-10-23 13:03:36 +02:00
2026-10-30 23:35:59 +01:00
2026-09-26 11:58:05 -07:00
2026-10-24 10:51:06 +02:00
2026-09-15 01:19:10 -07:00
2026-10-26 04:11:20 +01:00
2026-11-28 18:29:28 +01:00
2026-11-12 08:50:40 +01:00
2026-11-12 08:59:17 +01:00
2026-11-05 20:32:39 +01:00
2026-09-17 09:39:08 -07:00
2026-11-12 05:48:20 +01:00
2026-10-28 08:18:46 +01:00
2026-09-17 06:07:52 -07:00
2026-10-25 12:59:15 +01:00
2026-10-25 12:59:15 +01:00
2026-10-29 11:57:03 +01:00
2026-09-25 05:52:42 -07:00
2026-09-25 05:31:49 -07:00
2026-10-23 13:03:36 +02:00
2026-11-12 09:18:02 +01:00
2026-10-24 11:53:32 +02:00
2026-09-24 14:12:25 -07:00
2026-11-05 20:06:13 +01:00
2026-11-12 08:16:31 +01:00
2026-10-24 19:08:06 +02:00
2026-10-24 10:51:06 +02:00
2026-09-25 08:39:07 -07:00
2026-10-27 15:34:09 +01:00
2026-09-16 06:19:07 -07:00
2026-09-24 16:02:40 -07:00
2026-10-23 10:48:04 +02:00
2026-08-31 13:34:02 +02:00
2026-11-28 21:31:52 +01:00
2026-11-05 20:06:58 +01:00
2026-10-24 10:51:06 +02:00
2026-10-24 08:37:08 +02:00
2026-10-24 08:37:08 +02:00
2026-10-23 11:14:36 +02:00
2026-10-24 11:00:09 +02:00
2026-11-10 01:47:57 +01:00
2026-10-24 09:18:21 +02:00
2026-10-07 08:56:18 -07:00
2026-11-10 10:45:49 +01:00
2026-10-07 04:11:48 -07:00
2026-10-24 18:49:23 +02:00
2026-11-12 08:26:30 +01:00
2026-10-27 15:57:03 +01:00
2026-10-25 12:54:53 +01:00
2026-10-27 19:39:10 +01:00
2026-10-27 15:50:37 +01:00
2026-11-05 21:02:53 +01:00
2026-11-12 06:15:56 +01:00
2026-11-12 10:07:33 +01:00
2026-10-07 08:48:39 -07:00
2026-10-27 21:07:46 +01:00
2026-10-30 10:00:49 +01:00
2026-09-26 00:40:42 -07:00