Closed justinj closed 5 years ago
Hey @justinj, this is something that the optimizer can support today using spoolNode
, right?
This shouldn't be a problem with the optimizer, given the limited scope of the problem and the switch over to the optimizer we can safely close this.
When we have a
[...]
mutation, we generally insert aspoolNode
on top of it so that its results are completely consumed regardless of whether all of its results are used. However, we have some logic around eliminating spools we deem unnecessary. There are cases in which this logic erroneously eliminates necessary spools. Consider the following interaction:Since there was no spool on top of the inner
INSERT
, not all of the rows were inserted. Thanks to therun
operator, which performs some batching, this problem generally doesn't manifest for small insertions.