Remove old iterator code, leaving a simple all-iterator for the sql backend
This commit is contained in:
parent
425292811b
commit
b754810c6e
4 changed files with 215 additions and 278 deletions
|
|
@ -331,7 +331,7 @@ func materializeIts(its []graph.Iterator) []graph.Iterator {
|
|||
out = append(out, its[0])
|
||||
for _, it := range its[1:] {
|
||||
stats := it.Stats()
|
||||
if false && stats.Size*stats.NextCost < (stats.ContainsCost*(1+(stats.Size/(allStats.Size+1)))) {
|
||||
if stats.Size*stats.NextCost < (stats.ContainsCost * (1 + (stats.Size / (allStats.Size + 1)))) {
|
||||
if graph.Height(it, graph.Materialize) > 10 {
|
||||
out = append(out, NewMaterialize(it))
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue