Skip to content

Commit ec8613e

Browse files
committed
feat: Add support for compacting database indexes.
1 parent 64f2913 commit ec8613e

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

tests/index/test_index.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -227,19 +227,10 @@ def test_index_compact(client):
227227
index = client.index(common.INDEX_UID)
228228
# Get stats before compaction
229229
stats_before = index.get_stats()
230-
print(
231-
"Before compaction:",
232-
f"number_of_documents={stats_before.number_of_documents}, "
233-
f"is_indexing={stats_before.is_indexing}"
234-
)
235230

236231
task_info = index.compact()
237232
client.wait_for_task(task_info.task_uid)
238233
stats_after = index.get_stats()
239-
print(
240-
"After compaction:",
241-
f"number_of_documents={stats_after.number_of_documents}, "
242-
f"is_indexing={stats_after.is_indexing}"
243-
)
234+
244235
assert stats_before.number_of_documents == stats_after.number_of_documents
245236
assert stats_after.is_indexing is False

0 commit comments

Comments
 (0)