Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Set optional full-scan for deletion #4189

Merged

Conversation

phil-park
Copy link
Contributor

What this PR does / why we need it:

In this link (#3857), I added function to perform a full-scan and delete data to save Redis memory. However, full-scan in Redis does not work beautifully, takes too long at production scale, and often fails in CI that performs feast-apply. So, I think it would be a good idea to add the 'full_scan_for_deletion' option in redis so that the user can select and delete it.

Which issue(s) this PR fixes:

Fixes

Signed-off-by: Jiwon Park <phil.park@sktelecom.com>
@phil-park phil-park requested a review from DvirDukhan as a code owner May 9, 2024 07:48
@tokoko
Copy link
Collaborator

tokoko commented May 9, 2024

I think this might be valuable in the interim, although you might want to chime in the discussion here as well #4133. The implicit consensus from there is to add a feast cleanup command that will delete all redundant keys from online store (keys that belong to deleted tables and also keys containing feature values that have expired according to ttl).


for table in tables_to_delete:
self.delete_table(config, table)
if online_store_config.full_scan_for_deletion:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the old implementation deletes tables by default.
should full_scan_for_deletion's default value be True?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you said, I set default to True for compatibility with older implementations.
If compatibility is not enforced, I think False would be better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@breno-costa Changed to default True to ensure backward compatibility

Signed-off-by: Jiwon Park <phil.park@sktelecom.com>
Copy link
Collaborator

@tokoko tokoko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@franciscojavierarceo franciscojavierarceo merged commit b9cadd5 into feast-dev:master May 27, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants