Subject | RE: [firebird-support] Re: Output on long running queries? |
---|---|
Author | Paul |
Post date | 2009-03-18T10:02:20Z |
As far as I know the only way of communicating progress inside a long
running query/process is to use a generator (which are outside transaction
control). Ok for long running batch processes which happen one at a time on
a database but messy if multiple occurrences.
We use it for a once a month batch process which takes up to 20hrs. One
generator is set to the total process count and another is incremented every
so many records. The app can then read these 2 generators and show a
progress bar.
Regards
Paul
delivered without raising an exception.
not a good answer. I will just have to use my pulse component to let the
user know that the application has not flat-lined. I don't know if that
will work for you.
Jack
------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Visit http://www.firebirdsql.org and click the Resources item
on the main (top) menu. Try Knowledgebase and FAQ links !
Also search the knowledgebases at http://www.ibphoenix.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yahoo! Groups Links
running query/process is to use a generator (which are outside transaction
control). Ok for long running batch processes which happen one at a time on
a database but messy if multiple occurrences.
We use it for a once a month batch process which takes up to 20hrs. One
generator is set to the total process count and another is incremented every
so many records. The app can then read these 2 generators and show a
progress bar.
Regards
Paul
>ammounts of data.
> Hello, and thank you for reading this message.
>
> I have a question about firebird v2.0 long running queries.
> Lets say i have to import and manipulate from another database large
> Importing and manipulating the records according to my database bussinesrules is not an issue, but it does take a lot of time to process it.
>just like MSSQL has RAISERROR() function that allows a message to be
> Is there any way to output status messages back to the user/app? I mean
delivered without raising an exception.
>So, Luis. I guess the reason that you got no responses is that there was
> Is there any similar functionality is FB?
>
> Thank you for your time!
> Luis Semedo Duarte
>
not a good answer. I will just have to use my pulse component to let the
user know that the application has not flat-lined. I don't know if that
will work for you.
Jack
------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Visit http://www.firebirdsql.org and click the Resources item
on the main (top) menu. Try Knowledgebase and FAQ links !
Also search the knowledgebases at http://www.ibphoenix.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yahoo! Groups Links