File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
sdk/python/feast/infra/online_stores Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,9 @@ class RedisOnlineStoreConfig(FeastConfigBaseModel):
7777 key_ttl_seconds : Optional [int ] = None
7878 """(Optional) redis key bin ttl (in seconds) for expiring entities"""
7979
80+ full_scan_for_deletion : Optional [bool ] = True
81+ """(Optional) whether to scan for deletion of features"""
82+
8083
8184class RedisOnlineStore (OnlineStore ):
8285 """
@@ -162,9 +165,13 @@ def update(
162165 entities_to_keep: Entities to keep
163166 partial: Whether to do a partial update
164167 """
168+ online_store_config = config .online_store
169+
170+ assert isinstance (online_store_config , RedisOnlineStoreConfig )
165171
166- for table in tables_to_delete :
167- self .delete_table (config , table )
172+ if online_store_config .full_scan_for_deletion :
173+ for table in tables_to_delete :
174+ self .delete_table (config , table )
168175
169176 def teardown (
170177 self ,
You can’t perform that action at this time.
0 commit comments