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

Cannot create successive materialized views #229

Open
lewismc opened this issue Apr 14, 2023 · 2 comments
Open

Cannot create successive materialized views #229

lewismc opened this issue Apr 14, 2023 · 2 comments
Labels
storage Anything tagbase-server storage/persistence related.

Comments

@lewismc
Copy link
Member

lewismc commented Apr 14, 2023

After we ingest files, we can only execute the tagbase_materialized_views.sql one time. This is a bug. We should be able to execute it multiple times. This should also be a stored procedure such that a DB admin can execute it via pgAdmin.

@lewismc lewismc added the storage Anything tagbase-server storage/persistence related. label Apr 14, 2023
@renato2099
Copy link
Collaborator

I am not quite following the problem here @lewismc . The SQL file tagbase_materialized_views.sql contains the definition of the materialized files. This definition is expected to be executed once. Then users can query (i.e., execute SELECT statements) on them.

@lewismc
Copy link
Member Author

lewismc commented Apr 16, 2023

Today we determine that the empty materialized views should be created upon DB initialization. Any data movement is then merely an update of one or more of the views. This could be implemented as a REST API as well as a stored procedures.
Any subsequent updates need to REFRESH MATERIALIZED VIEW.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
storage Anything tagbase-server storage/persistence related.
Projects
No open projects
Development

No branches or pull requests

2 participants