Files
probo/contrib/claude
Sacha Al Himdani 9ab8ea2085 Refacto load all functions
Unbounded LoadAll* loaders materialised an entire result set in one
query with no ceiling. A table that is small in development can grow
without bound in production, so these loaders were a latent memory
and query-time hazard.

Remove the LoadAll* methods from pkg/coredata and walk the cursor-
paginated LoadBy* siblings instead through a shared page.LoadAll
helper. The helper advances a MaxCursorSize forward cursor until the
result set is exhausted and concatenates the pages. It caps a single
call at MaxLoadAllPages (20) batches of 500 rows and errors past that
rather than materialising an unbounded set, so a runaway caller fails
loudly instead of exhausting memory.

Callers that genuinely need every row now express that explicitly,
and the coredata load-naming rule and docs are updated to discourage
new unbounded loaders.

Signed-off-by: Sacha Al Himdani <sacha@probo.com>
2026-06-16 14:35:16 +02:00
..
2026-05-26 16:08:10 -07:00
2026-04-19 11:49:55 +02:00
2026-04-19 11:42:50 +02:00
2026-04-21 18:51:34 +02:00
2026-06-16 14:35:16 +02:00
2026-05-13 21:21:39 +02:00
2026-04-19 11:42:50 +02:00
2026-04-19 11:42:50 +02:00
2026-04-13 12:25:42 +02:00
2026-05-13 21:21:39 +02:00
2026-04-20 12:11:17 +02:00
2026-04-19 11:59:22 +02:00
2026-05-25 15:01:35 -07:00
2026-05-23 13:31:34 -07:00
2026-04-19 11:42:50 +02:00
2026-05-13 21:21:39 +02:00
2026-05-13 21:21:39 +02:00