Skip to content

Commit

Permalink
Bugfix: Dragnet selection NOPARALLEL
Browse files Browse the repository at this point in the history
  • Loading branch information
rammpeter committed Sep 16, 2023
1 parent c930390 commit 064bdea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/dragnet/problems_with_parallel_query_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def problems_with_parallel_query
:desc => t(:dragnet_helper_81_desc, :default=>'Stored functions not for parallel execution per pragma PARALLEL_ENABLE lead to serial processing if statements that should be executed in parallel.
Listed functions should be checked if they can be expanded by pragma PARALLEL_ENABLE.'),
:sql=> "WITH /* DB-Tools Ramm Serialisierung in PQ durch Stored Functions */
Arguments AS (SELECT /*+ NO_MERGE MATERIALIZE */ * FROM DBA_Arguments WHERE Position = 0), /* Filter package function names from DBA_Procedures */
Arguments AS (SELECT /*+ NO_MERGE MATERIALIZE */ Owner, Package_Name, Object_Name FROM DBA_Arguments WHERE Position = 0), /* Filter package function names from DBA_Procedures */
ProcLines AS (
SELECT /*+ NO_MERGE MATERIALIZE */ *
FROM (
Expand All @@ -170,7 +170,7 @@ def problems_with_parallel_query
WHERE Owner NOT IN (#{system_schema_subselect})
AND Parallel = 'NO'
)
SELECT /*+ ORDERED */
SELECT /*+ ORDERED NOPARALLEL */
s.FullText, s.SQL_ID, p.Owner, p.Object_Name, p.Procedure_Name, p.Object_Type, ROUND(s.Elapsed_Secs), s.Fundort
FROM (
SELECT /*+ NO_MERGE */ *
Expand Down

0 comments on commit 064bdea

Please sign in to comment.