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
We currently hold on to the memo for the duration of a query. The memo could use a lot of memory, e.g. due to join reordering.
I believe that holding on to the memo is only necessary when extracting diagnostics (and for EXPLAIN (OPT,ENV)); even in those cases, we could clear the interner to release expressions that are not part of the final plan.
The text was updated successfully, but these errors were encountered:
RaduBerinde
added
the
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
label
Jan 15, 2021
We save a reference to the Memo, which is useful for explaining plans.
However, this means that we're holding on to the memory used by the
entire explored memo during execution of the query. This change makes
it so that we only save it only if we're building an explain plan.
Fixescockroachdb#59065.
Release note: None
61863: sql: don't save memo unnecessarily r=RaduBerinde a=RaduBerinde
We save a reference to the Memo, which is useful for explaining plans.
However, this means that we're holding on to the memory used by the
entire explored memo during execution of the query. This change makes
it so that we only save it only if we're building an explain plan.
Fixes#59065.
Release note: None
Co-authored-by: Radu Berinde <[email protected]>
We save a reference to the Memo, which is useful for explaining plans.
However, this means that we're holding on to the memory used by the
entire explored memo during execution of the query. This change makes
it so that we only save it only if we're building an explain plan.
Fixescockroachdb#59065.
Release note: None
We currently hold on to the memo for the duration of a query. The memo could use a lot of memory, e.g. due to join reordering.
I believe that holding on to the memo is only necessary when extracting diagnostics (and for
EXPLAIN (OPT,ENV)
); even in those cases, we could clear the interner to release expressions that are not part of the final plan.The text was updated successfully, but these errors were encountered: