Commit 1226b70
committed
perf(knn): reduce memory for batch flat vector search
Avoid retaining whole scan RecordBatches (and vectors) in batch flat KNN heaps when the final projection does not include the vector column. When vectors are requested, retain only a per-row copy.1 parent 1f7a3eb commit 1226b70
2 files changed
Lines changed: 410 additions & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4424 | 4424 | | |
4425 | 4425 | | |
4426 | 4426 | | |
| 4427 | + | |
| 4428 | + | |
| 4429 | + | |
| 4430 | + | |
| 4431 | + | |
| 4432 | + | |
| 4433 | + | |
| 4434 | + | |
4427 | 4435 | | |
4428 | 4436 | | |
4429 | 4437 | | |
| |||
4435 | 4443 | | |
4436 | 4444 | | |
4437 | 4445 | | |
| 4446 | + | |
4438 | 4447 | | |
4439 | 4448 | | |
4440 | 4449 | | |
| |||
5975 | 5984 | | |
5976 | 5985 | | |
5977 | 5986 | | |
| 5987 | + | |
| 5988 | + | |
| 5989 | + | |
| 5990 | + | |
| 5991 | + | |
| 5992 | + | |
| 5993 | + | |
| 5994 | + | |
| 5995 | + | |
| 5996 | + | |
| 5997 | + | |
| 5998 | + | |
| 5999 | + | |
| 6000 | + | |
| 6001 | + | |
| 6002 | + | |
| 6003 | + | |
| 6004 | + | |
| 6005 | + | |
5978 | 6006 | | |
5979 | 6007 | | |
5980 | 6008 | | |
| |||
0 commit comments