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

Allow reading from a materialized view (storage table) when view is stale (not fresh) #10606

Open
duoluodexiaokeke opened this issue Jan 14, 2022 · 2 comments

Comments

@duoluodexiaokeke
Copy link
Contributor

  1. When does the materialized view support Scheduled refresh and automatic refresh?
  2. if the materialized view table update, we select from tje view, we will select from the table, not used materialized view data. Can we add a configuration to determine whether we need to get the latest data ?
@findepi
Copy link
Member

findepi commented Aug 3, 2022

  • When does the materialized view support Scheduled refresh and automatic refresh?

we don't have such concepts in Trino.

we believe that scheduling of stuff doesn't actually belong to Trino, and some external scheduling system would be recommended.

if the materialized view table update, we select from tje view, we will select from the table, not used materialized view data. Can we add a configuration to determine whether we need to get the latest data ?

yes, we should do that

let me rephrase the issue to focus on this aspect

@findepi findepi changed the title fresh materialized view Allow reading from a materialized view (storage table) when view is not fresh Aug 3, 2022
@findepi findepi self-assigned this Aug 3, 2022
@findepi
Copy link
Member

findepi commented Aug 3, 2022

Here is my attempt at fixing this: #13484

@findepi findepi changed the title Allow reading from a materialized view (storage table) when view is not fresh Allow reading from a materialized view (storage table) when view is stale (not fresh) Aug 3, 2022
@findepi findepi removed their assignment Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants