Skip to content

Commit edd4986

Browse files
committed
Improved limit for HNSW scan memory
1 parent 4112911 commit edd4986

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hnswscan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ hnswbeginscan(Relation index, int nkeys, int norderbys)
151151
/* Calculate max memory */
152152
/* Add 256 extra bytes to fill last block when close */
153153
maxMemory = (double) work_mem * hnsw_scan_mem_multiplier * 1024.0 + 256;
154-
so->maxMemory = Min(maxMemory, (double) SIZE_MAX);
154+
so->maxMemory = Min(maxMemory, (double) SIZE_MAX / 2);
155155

156156
scan->opaque = so;
157157

0 commit comments

Comments
 (0)