Skip to content

Commit ddc7e7c

Browse files
Merge pull request #78 from TileDB-Inc/npapa/fix_ingestion
Call load() for tdbColMajorMatrix in ingestion
2 parents 434f732 + faa9b06 commit ddc7e7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/include/detail/ivf/index.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ int ivf_index(
6666
nthreads = std::thread::hardware_concurrency();
6767
}
6868
auto centroids = tdbColMajorMatrix<centroids_type>(ctx, centroids_uri);
69+
centroids.load();
6970
auto parts = detail::flat::qv_partition(centroids, db, nthreads);
7071
debug_matrix(parts, "parts");
7172
{
@@ -169,6 +170,7 @@ int ivf_index(
169170
size_t end_pos,
170171
size_t nthreads) {
171172
auto db = tdbColMajorMatrix<T>(ctx, db_uri, 0, 0, start_pos, end_pos);
173+
db.load();
172174
return ivf_index<T, ids_type, centroids_type>(
173175
ctx,
174176
db,

0 commit comments

Comments
 (0)