- 3,714,738 Users
- 2,242,615 Discussions
- 7,845,038 Comments
Forum Stats
Discussions
Categories
- Industry Applications
- 3.2K Intelligent Advisor
- Insurance
- 1K On-Premises Infrastructure
- 362 Analytics Software
- 32 Application Development Software
- 1.7K Cloud Platform
- 700.5K Database Software
- 17.4K Enterprise Manager
- 7 Hardware
- 166 Infrastructure Software
- 89 Integration
- 52 Security Software
having a mismatch between querying data and MV refresh

Hi, Having a question.
We have a question about a Materialized View request.
We have a MV, and the query defining it is complex.
But when i run the query it takes seconds to give me all the rows, when i use the query to fill a "normal" table it take about twice the amount of time. But when i do a refresh of the MV it takes almost 10 minutes. (being hours on production with full data set)
Our database version is 12.1
The insert of the refresh holds the following hint:
/*+ BYPASS_RECURSIVE_CHECK APPEND */
TIA for any idea that might help to solve this problem,
HansL
Answers
-
Can you paste the sQL query to use the materialzed view and the table definitions that the query references ? Have you profiled the MV query ?
-
a) No i can not give the definitions (sorry company policy)
b) Have to check profile.
-
How many rows are returned by the MV (use count (*))
-
3112 rows
-
are you able to profile the MV query ?