Hello,
I'm trying to use the progressive loading pattern with the SQL limit query (for Oracle, with sql.oracle.supportsSQLLimit: true), it appears that the next fetchData() is not triggered after the end of the ListGrid is reached.
Here is my ListGrid:
And here are the logs which show that it works well:
Please note that if I disable the SQL limit support for Oracle, the JDBC Scroll is used and the next fetchData() is called (but in my case, I can't use because of an issue with the Oracle driver, and I need to use the rownum trick instead).
I use SmartGWT 4.1-p2014102.
Many thanks for your help!
Cheers,
A.
I'm trying to use the progressive loading pattern with the SQL limit query (for Oracle, with sql.oracle.supportsSQLLimit: true), it appears that the next fetchData() is not triggered after the end of the ListGrid is reached.
Code:
<?xml version="1.0"?> <DataSource ID="hugeTable" dataFormat="iscServer" serverType="sql" tableName="T_HUGE_TABLE" sqlPaging="sqlLimit" skipRowCount="true"> <fields> <field...
Code:
final dataSource = DataSource.get("hugeTable"); final ListGrid listGrid = new ListGrid(); listGrid.setWidth100(); listGrid.setHeight100(); listGrid.setDataSource(dataSource); listGrid.setAutoFetchData(Boolean.TRUE);
Code:
=== 2014-10-02 14:26:22,367 [l0-0] DEBUG SQLDriver - [builtinApplication.hugeTable_fetch] About to execute SQL query in 'DEFAULT' using connection '1406585832' === 2014-10-02 14:26:22,367 [l0-0] INFO SQLDriver - [builtinApplication.hugeTable_fetch] Executing SQL query on 'DEFAULT': SELECT COUNT(*) FROM T_EXANE_EXECUTED_ORDERS WHERE ('1'='1') === 2014-10-02 14:26:22,592 [l0-0] INFO SQLDataSource - [builtinApplication.hugeTable_fetch] Row count query found 1712874 rows, which exceeds the DataSource's progressiveLoadingThreshold of 200000. Switching to progressive loading mode. === 2014-10-02 14:26:22,592 [l0-0] DEBUG SQLDataSource - [builtinApplication.hugeTable_fetch] Using SQL Limit query === 2014-10-02 14:26:22,592 [l0-0] DEBUG SQLDataSource - [builtinApplication.hugeTable_fetch] SQL windowed select rows 0->75, result size 76. Query: SELECT * FROM (SELECT /*+ FIRST_ROWS(76) */ a.*, rownum myrownum FROM (SELECT T_HUGE_TABLE.TITI, T_HUGE_TABLE.TOTO FROM T_HUGE_TABLE WHERE ('1'='1')) a where rownum <=77) WHERE myrownum >= 1 === 2014-10-02 14:26:22,592 [l0-0] DEBUG SQLDataSource - [builtinApplication.hugeTable_fetch] SQL windowed select rows 0->75, result size 76. Query: SELECT * FROM (SELECT /*+ FIRST_ROWS(76) */ a.*, rownum myrownum FROM (SELECT T_HUGE_TABLE.TITI, T_HUGE_TABLE.TOTO FROM T_HUGE_TABLE WHERE ('1'='1')) a where rownum <=77) WHERE myrownum >= 1 === 2014-10-02 14:26:22,646 [l0-0] DEBUG SQLDriver - Freeing SQLDriver dbConnection 1406585832 === 2014-10-02 14:26:22,646 [l0-0] DEBUG SQLConnectionManager - About to close ISCPoolableConnection with hashcode "1406585832" === 2014-10-02 14:26:22,646 [l0-0] DEBUG PoolableSQLConnectionFactory - Executing pingTest 'select 1 from dual' on connection 1406585832
I use SmartGWT 4.1-p2014102.
Many thanks for your help!
Cheers,
A.
Comment