Forums Register Login

Synchronous and Asynchronous Report generation

+Pie Number of slices to send: Send
Hi,

I want to generate a report which can have a million records pulled from the database. I want to display the report in synchronous ( if the user asks for the report, I should show it on the screen) and asynchronous way (we can send an email or any other notification after we generate the report in the background).

My questions are:
1) What is the good strategy to do this task?
2) What considerations I need to make for it in terms of database and other resources.

Any inputs are appreciated.

Thanks and regards,
Karan
+Pie Number of slices to send: Send
Hi Karan,

Well firstly if your report can return up to a million rows, I'd certainly look at making sure that performs well, especially if you are planning on offering the result synchronously!

In order to have the report generated asynchronously and made available to several other requesters you'll want to look at kicking off a separate thread to perform the work and store the result somewhere for later retrieval.
He's giving us the slip! Quick! Grab this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1798 times.
Similar Threads
JMS: Listener to Receive Messages From MQ Server ( Request Queue)
how to maintain reference to the response object
Asynchronous web service client
MDBs are not necessarily asynchronous, are they?
Different Message Exchange Pattern interfaces
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:08:51.