chore(python): Reduce posthog event count (#661)

- Register open_table as event 
- Because we're dropping 'seach' event currently, changed the name to
'search_table' and introduced throttling
- Throttled events will be counted once per time batch so that the user
is registered but event count doesn't go up by a lot
This commit is contained in:
Ayush Chaurasia
2023-12-09 00:30:51 +05:30
committed by GitHub
parent dca4533dbe
commit 693091db29
2 changed files with 22 additions and 15 deletions

View File

@@ -785,7 +785,7 @@ class LanceTable(Table):
and also the "_distance" column which is the distance between the query
vector and the returned vector.
"""
register_event("search")
register_event("search_table")
return LanceQueryBuilder.create(
self, query, query_type, vector_column_name=vector_column_name
)
@@ -906,6 +906,8 @@ class LanceTable(Table):
f"Table {name} does not exist."
f"Please first call db.create_table({name}, data)"
)
register_event("open_table")
return tbl
def delete(self, where: str):