Skip to content

chore(release): staging to production - 2026.03.16 - #1026

Merged
maxtechera merged 2 commits into
productionfrom
staging
Mar 16, 2026
Merged

chore(release): staging to production - 2026.03.16#1026
maxtechera merged 2 commits into
productionfrom
staging

Conversation

@github-actions

Copy link
Copy Markdown

🚀 Release: Staging to Production

Release Date: 2026-03-16

Changes in this release

  • feat(AAIDomains): streaming save pipeline — process and save per page, never accumulate all chunks in memory (d21bca0)

This PR is automatically created/updated when commits are pushed to staging.
Merging this PR will trigger the release workflow to create a new GitHub release.

…, never accumulate all chunks in memory

_saveChunksToStorage now detects loadStream() on the loader node and uses
a streaming path: each page of domains is fetched, split, and saved to the
DB immediately before the next page is fetched.

Peak memory drops from ALL chunks at once (95k chunks = ~287MB for All
Companies) to one page worth of chunks at a time (~950 chunks max).

- Extract _createSupabaseClient() and _executeLoad() from AAIDomainsLoader.load()
  so load() and loadStream() share identical pagination/filter/split logic
- Add AAIDomainsLoader.loadStream(onBatch) — calls _executeLoad with a
  per-page callback instead of accumulating into allDocs[]
- Add AAIDomains_DocumentLoaders.loadStream(nodeData, _, options, onBatch) —
  INode entry point mirrors init() param parsing, applies metadata per batch
- _saveChunksToStorage: duck-type check for loadStream; streaming path saves
  inline per page with a global chunkOffset counter; falls back to existing
  docNodeInstance.init() + batch save for loaders without loadStream
feat(AAIDomains): streaming save pipeline — process and save per page, never buffer all chunks
@vercel

vercel Bot commented Mar 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
answerai-docs Building Building Preview Mar 16, 2026 9:48pm
the-answerai Building Building Preview Mar 16, 2026 9:48pm

Request Review

@maxtechera
maxtechera merged commit 352b0d7 into production Mar 16, 2026
5 of 7 checks passed
@maxtechera
maxtechera temporarily deployed to staging - aai-unified2-flowise-moonstruck March 16, 2026 21:49 — with Render Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant