mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-05 19:32:56 +00:00
[Python] Do not return Table count for every add operation (#328)
`Table::count()` will be linearly slower with more fragments ingested.
This commit is contained in:
@@ -139,8 +139,8 @@ def _add(table, schema):
|
||||
# table = LanceTable(db, "test")
|
||||
assert len(table) == 2
|
||||
|
||||
count = table.add([{"vector": [6.3, 100.5], "item": "new", "price": 30.0}])
|
||||
assert count == 3
|
||||
table.add([{"vector": [6.3, 100.5], "item": "new", "price": 30.0}])
|
||||
assert len(table) == 3
|
||||
|
||||
expected = pa.Table.from_arrays(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user