Hi,
I'm using smartgwt-power-3.0p.2012-07-17, oracle-11g and several sql datasources that are used to fetch data with pagination.
The generated query looks like here:
While analyzing the performance of one such query our DBA figured out that the FIRST_ROWS hint causes performance problems because of the Oracle bug (Bad cardinality in FIRST_K rows mode [ID 13594712.8]).
How can I switch off the generation of the FIRST_ROWS hint in an SQLDataSource?
Regards,
Mihnea
I'm using smartgwt-power-3.0p.2012-07-17, oracle-11g and several sql datasources that are used to fetch data with pagination.
The generated query looks like here:
Code:
SELECT * FROM (SELECT /*+ FIRST_ROWS(75) */ a.*, rownum myrownum FROM ( SELECT COLUMN1,COLUMN2 FROM TABLE1 WHERE COLUMN1='value' ORDER BY COLUMN1 DESC ) a where rownum <=76) WHERE myrownum >= 1
How can I switch off the generation of the FIRST_ROWS hint in an SQLDataSource?
Regards,
Mihnea
Comment