You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
144054: jsonpath: optimize executeAnyItem by iterating over JSON containers r=normanchenn a=normanchenn
This commit replaces the usage of `AllPathsWithDepth` with direct
iteration over JSON arrays and objects in `executeAnyItem`. This avoids
unnecessary JSON decoding of the entire object structure
(`jsonEncoded.decode()`) when only direct children are needed.
Preliminary testing shows this change reduces execution time for queries
with any array/object unwrapping by approximately 50%.
Epic: None
Release note: None
144071: sql: refactor updateRun, upsertRun, and deleteRun r=yuzefovich a=michae2
**sql: bring back resultRowBuffer in updateRun and deleteRun**
For some reason, updateRun and deleteRun differ from insertRun in that
they were creating result slices for RETURNING in processSourceRow,
instead of creating a resultRowBuffer in startExec. This commit does a
small refactor to move allocation of resultRowBuffer to startExec.
This refactor will make it easier for the new UPDATE and DELETE fast
path planNodes to share updateRun and deleteRun with the existing
updateNode and deleteNode.
Epic: None
Release note: None
---
**sql: move processSourceRow to updateRun, upsertRun, and deleteRun**
Refactor processSourceRow so that it's a method of updateRun, upsertRun,
and deleteRun, rather than a method of updateNode, upsertNode, and
deleteNode, respectively. This matches insertRun.
This refactor will make it easier for the new UPDATE and DELETE fast
path planNodes to share updateRun and deleteRun with the existing
updateNode and deleteNode. (There's no new fast path in the works for
UPSERT, at least not yet, but upsertRun is changed for completeness.)
Epic: None
Release note: None
Co-authored-by: Norman Chen <[email protected]>
Co-authored-by: Michael Erickson <[email protected]>
0 commit comments