Open RaymondFallon opened 3 years ago
To add to this issue, I think the refresh_materialized_view
method in this adapter is wrong.
I think the correct way to refresh a MV in Oracle is something like so:
BEGIN
DBMS_SNAPSHOT.REFRESH('MVIEW_NAME');
END;
Maybe this should be a separate issue as it is not directly related to the fact that there's no ability to create a refresh schedule on create.
I made a new issue for my comment above:
https://github.com/PMACS/scenic_oracle_enhanced_adapter/issues/22
When using
pmacs-rails_sql_views
, we were able to pass arefresh_schedule
option to thecreate_materialized_view
method. This was a convenient way to tell your MVs, at creation time, when to refresh themselves. This is no long available withscenic
, but it would be a nice option to build in.Considerations
options
parameter that we pass raw SQL into.refresh_schedule
to a general view method likecreate_view
.