Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Omarov
Contributor II
Contributor II

Sql hint

Hi
I have a SQL script that runs in 15 minutes in PL/SQL Developer, but in Qlik Sense, it takes almost 1 hour to execute.

in PL/SQL Developer:
WITH A AS (
SELECT /*+ PARALLEL(16) */
DISTINCT TR.TRN_DT, 

in the Qlik Sense load editor:

tablle1:
NoConcatenate
LOAD *,
date(floor(TRN_DT)) as trn_date;

SQL WITH A AS (
SELECT /*+ PARALLEL(16) */
DISTINCT TR.TRN_DT,

I think it is because of the hint.
Can anyone help me.

Labels (2)
1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

By default your "/*+ hint */" is stripped from the SQL before being sent to the DB server. You will need to 

set StripComments=0;

Alternatively use the -- SQL comment syntax.

See https://community.qlik.com/t5/QlikView-App-Dev/Oracle-SQL-Select-Statement-with-quot-Hint-quot/td-p/...

-Rob

View solution in original post

3 Replies
marcus_sommer

Qlik doesn't execute any sql else transfers the statement and received the result data-set. Therefore the cause is the network, the driver, any queuing/locking or similar stuff.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

By default your "/*+ hint */" is stripped from the SQL before being sent to the DB server. You will need to 

set StripComments=0;

Alternatively use the -- SQL comment syntax.

See https://community.qlik.com/t5/QlikView-App-Dev/Oracle-SQL-Select-Statement-with-quot-Hint-quot/td-p/...

-Rob

Omarov
Contributor II
Contributor II
Author

Thanks a lot Rob
--+  worked