Adding comment to explain new function.

This commit is contained in:
mike12345567 2024-09-27 12:24:40 +01:00
parent c41c25a603
commit aa4cc2079f
1 changed files with 6 additions and 0 deletions

View File

@ -292,6 +292,12 @@ export async function outputProcessing<T extends Row[] | Row>(
return (wasArray ? enriched : enriched[0]) as T
}
/**
* This function is similar to the outputProcessing function above, it makes sure that all the provided
* rows are ready for output, but does not have enrichment for squash capabilities which can cause performance issues.
* outputProcessing should be used when responding from the API, while this should be used when internally processing
* rows for any reason (like part of view operations).
*/
export async function coreOutputProcessing(
table: Table,
rows: Row[],