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

Materialized Views #8

Open
Victorcorcos opened this issue Jun 21, 2019 · 1 comment
Open

Materialized Views #8

Victorcorcos opened this issue Jun 21, 2019 · 1 comment

Comments

@Victorcorcos
Copy link

Victorcorcos commented Jun 21, 2019

Hello guys

Do you have plans on creating Materialized Views for this MySQL gem?
Maybe using an approach to deal with it? Since the MySQL doesn't have it naturally

Thanks

@cainlevy
Copy link
Contributor

We could probably get close! MySQL supports CREATE TABLE ... SELECT. We could do refreshes with TRUNCATE; INSERT INTO ... SELECT and updates with maybe handle updates by creating a new table and swapping it for the old one (to minimize the time when the table is gone).

The trick would be allowing a dev to define one single SELECT definition that can be used for all strategies.

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