Skip to content

Commit

Permalink
Remove unnecessary lock
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Coetzee <[email protected]>
  • Loading branch information
Pipboyguy committed May 13, 2024
1 parent 20e5b31 commit fc9c00b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def spotify_shows(

@dlt.destination(batch_size=250, name="lancedb")
def lancedb_destination(items: TDataItems, table: TTableSchema) -> None:
db = lancedb.connect(db_path, read_consistency_interval=datetime.timedelta(0))
db = lancedb.connect(db_path)
try:
tbl = db.open_table(table["name"])
except FileNotFoundError:
Expand All @@ -124,7 +124,7 @@ def lancedb_destination(items: TDataItems, table: TTableSchema) -> None:


if __name__ == "__main__":
db = lancedb.connect(db_path, read_consistency_interval=datetime.timedelta(0))
db = lancedb.connect(db_path)

for show in fields(Shows):
db.drop_table(show.name, ignore_missing=True)
Expand Down

0 comments on commit fc9c00b

Please sign in to comment.