Hi,
I have a b4A Client application that uses JRDC2 to fetch data from an RDBMS Backend and places the output in a xCustomListView.
I would like to do the following:
i) Assuming that all SQL Queries fired are 'Select queries', some sql queries would take longer time to complete processing and show the result in the xCustomListView control and some queries would display the result faster.
ii) In the b4A Front-end , I would like to set a 'threshold time in seconds' and if the data populating has 'not commenced populating' in the xCustomListView (meaning query is not completed) within that threshold time , the application should show an 'asynchronous wait message like 'Ps. wait..Query processing is on'... for say 3 seconds (by ascnchronous I mean whatever processing goes to complete the query and fetch the records should not be halted for displaying this wait message.
iii) Taking ii) a little further, I would like to show this wait message not for just 3 seconds but TILL the xCustomListView 'commences'(not completes) population of the result of the query / query returns no records (as the case may be)...
How can this be done ?
iv) Any help on pulling out the approximate completion time of an RDBMS query BEFORE its actual execution (in particular Oracle, which is my RDBMS in the present case) will also be very useful
Please help.
Thanks..
I have a b4A Client application that uses JRDC2 to fetch data from an RDBMS Backend and places the output in a xCustomListView.
I would like to do the following:
i) Assuming that all SQL Queries fired are 'Select queries', some sql queries would take longer time to complete processing and show the result in the xCustomListView control and some queries would display the result faster.
ii) In the b4A Front-end , I would like to set a 'threshold time in seconds' and if the data populating has 'not commenced populating' in the xCustomListView (meaning query is not completed) within that threshold time , the application should show an 'asynchronous wait message like 'Ps. wait..Query processing is on'... for say 3 seconds (by ascnchronous I mean whatever processing goes to complete the query and fetch the records should not be halted for displaying this wait message.
iii) Taking ii) a little further, I would like to show this wait message not for just 3 seconds but TILL the xCustomListView 'commences'(not completes) population of the result of the query / query returns no records (as the case may be)...
How can this be done ?
iv) Any help on pulling out the approximate completion time of an RDBMS query BEFORE its actual execution (in particular Oracle, which is my RDBMS in the present case) will also be very useful
Please help.
Thanks..
Last edited: