Skip to content

Get only latest data from online store features #5160

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

Open
VidhyaPandi opened this issue Mar 17, 2025 · 2 comments
Open

Get only latest data from online store features #5160

VidhyaPandi opened this issue Mar 17, 2025 · 2 comments

Comments

@VidhyaPandi
Copy link

Expected Behavior

I think serving features via online store makes sense if we serve the recent or latest data for any given entity. Suppose I have my patient data from Jan-Mar 2025 in offline store. Then I run materialization command to push the latest changes eg. March data to the online store.
My question is whether the old data in the online store will retain, or it will be overridden by the new data of March month.

Current Behavior

I know we can get online features based on the entities. Wondering am I missing something which already exists in other terms like ttl or any other ways we can achieve so that to get the online features in an incremental way instead of depending on materialization.

Steps to reproduce

Specifications

  • Version:
  • Platform:
  • Subsystem:

Possible Solution

@AndrewSH23
Copy link
Collaborator

You're correct — the online store in Feast is meant to serve the latest data for a given entity. When you materialize data (e.g., from your offline store containing Jan–Mar 2025 data), only the most recent row per entity (based on event timestamp) will be pushed to the online store. The online store retains just the latest value for each entity-feature combination by default — older data gets overwritten, not retained.

For example, if an entity has values for January and February, and you later materialize March data, the March value will overwrite the earlier values in the online store.

@VidhyaPandi
Copy link
Author

VidhyaPandi commented Mar 29, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants