UBERF-9114: Optimize memory usage (#7643)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2025-01-12 22:54:54 +07:00
committed by GitHub
parent 5263a41cb9
commit 7702c5ef83
7 changed files with 713 additions and 127 deletions
+1 -1
View File
@@ -475,7 +475,7 @@ export function parseDocWithProjection<T extends Doc> (
domain: string,
projection?: Projection<T> | undefined
): T {
const { workspaceId, data, ...rest } = doc
const { workspaceId, data, '%hash%': hash, ...rest } = doc
const schema = getSchema(domain)
for (const key in rest) {
if ((rest as any)[key] === 'NULL' || (rest as any)[key] === null) {