You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Iterating over the URIs in a json database is currently extremely slow. The following quick benchmark illustrates the problem when iterating over the included test dataset which consists of only 39 objects.
importaerovaldbimporttimewithaerovaldb.open("json_files:./tests/test-db/json") asdb:
start_time=time.perf_counter()
count=len(list(db.list_all()))
end_time=time.perf_counter()
print(f"json_files: {count} items in {end_time-start_time:.3f} seconds")
withaerovaldb.open("sqlitedb:./tests/test-db/sqlite/test.sqlite") asdb:
start_time=time.perf_counter()
count=len(list(db.list_all()))
end_time=time.perf_counter()
print(f"sqlite: {count} items in {end_time-start_time:.3f} seconds")
# Output# json_files: 39 items in 0.197 seconds# sqlite: 39 items in 0.001 seconds
The text was updated successfully, but these errors were encountered:
Iterating over the URIs in a json database is currently extremely slow. The following quick benchmark illustrates the problem when iterating over the included test dataset which consists of only 39 objects.
The text was updated successfully, but these errors were encountered: