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

Correct refresh_materialized_view #22

Open
riyengar8 opened this issue Aug 17, 2023 · 1 comment
Open

Correct refresh_materialized_view #22

riyengar8 opened this issue Aug 17, 2023 · 1 comment

Comments

@riyengar8
Copy link

I think the refresh_materialized_view method in this adapter is wrong.

UserCourse.refresh

I think the correct way to refresh a MV in Oracle is something like so:

BEGIN
DBMS_SNAPSHOT.REFRESH('MVIEW_NAME');
END;

@emolayi
Copy link

emolayi commented Aug 18, 2023

Looks like the regular oracle adapter uses the correct code: https://github.com/cdinger/scenic-oracle_adapter/blob/main/lib/scenic/adapters/oracle.rb#L50

Actually, it's different....the internet seems to prever dbms_mview.

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

No branches or pull requests

2 participants