✨ Support API rendering of large collections with MUCH less memory. #822
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Moves SAX-like encoders to from analysis.go to context.go for more general usage.
Using these encoders instead of standard json|yaml encoders for large arrays GREATLY reduce memory footprint.
Add (cursor) Iterator to better support queries using joins instead of pre-loading. The iterator groups rows (by ID) into batches. Joins return a flattened object graph. Each batch is passed to the supplied Builder function to construct the resource.
Note:
In Java, SAX stands for Simple API for XML.
It is a stream-based, event-driven API used for parsing XML documents. Unlike DOM parsers, which load the entire XML document into memory as a tree, SAX parsers read the XML document sequentially and trigger events as elements are encountered, making them faster and more memory-efficient, especially for large XML files.