Skip to content

Commit 7751ccd

Browse files
committed
removed progress bar reporting
1 parent e6b0ee7 commit 7751ccd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

engine/base_client/search.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,10 @@ def cycling_query_generator(queries, total_count):
156156
total_query_count = len(used_queries)
157157

158158
if parallel == 1:
159-
# Create a progress bar with the correct total
160-
pbar = tqdm.tqdm(total=total_query_count, desc="Processing queries", unit="queries")
161-
162159
# Single-threaded execution
163160
start = time.perf_counter()
164161

165-
# Process queries with progress updates
162+
# Process queries
166163
results = []
167164
total_insert_count = 0
168165
total_search_count = 0
@@ -180,10 +177,7 @@ def cycling_query_generator(queries, total_count):
180177
total_search_count += 1
181178
all_search_latencies.append(latency)
182179
results.append(('search', precision, latency))
183-
pbar.update(1)
184180

185-
# Close the progress bar
186-
pbar.close()
187181
total_time = time.perf_counter() - start
188182
else:
189183
# Dynamically calculate chunk size based on total_query_count

0 commit comments

Comments
 (0)