Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb163b5b

Browse files
committed
Moved code [skip ci]
1 parent6a30c1e commitb163b5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/hnswscan.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ hnswbeginscan(Relation index, int nkeys, int norderbys)
128128
so= (HnswScanOpaque)palloc(sizeof(HnswScanOpaqueData));
129129
so->typeInfo=HnswGetTypeInfo(index);
130130

131+
/* Set support functions */
132+
HnswInitSupport(&so->support,index);
133+
131134
/*
132135
* Use a lower max allocation size than default to allow scanning more
133136
* tuples for iterative search before exceeding work_mem
@@ -136,9 +139,6 @@ hnswbeginscan(Relation index, int nkeys, int norderbys)
136139
"Hnsw scan temporary context",
137140
0,8*1024,512*1024);
138141

139-
/* Set support functions */
140-
HnswInitSupport(&so->support,index);
141-
142142
/* Calculate max memory */
143143
maxMemory= (double)work_mem*hnsw_scan_mem_multiplier*1024.0;
144144
so->maxMemory=Min(maxMemory, (double)SIZE_MAX);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp