From 3413e79b0fa75657a990b98a188287459913542d Mon Sep 17 00:00:00 2001 From: Ayush Chaurasia Date: Sat, 9 Dec 2023 00:30:51 +0530 Subject: [PATCH] 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 --- python/lancedb/table.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/lancedb/table.py b/python/lancedb/table.py index e21b3330..ee0b3335 100644 --- a/python/lancedb/table.py +++ b/python/lancedb/table.py @@ -899,6 +899,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):