Regarding the timeout, you should use WOLongResponsePage, which is multi-threaded and allows you to do processing while updating the page (for a progress bar, etc).

On Nov 5, 2008, at 4:56 AM, Yung-Luen Lan wrote:

Hi,

There is a task has be done in my wo app: creating thousands of (about
200,000) EOs and generating a csv file containing the information for
download.

When I create only 1000 EOs, it's fine. But if I create over 20,000
EOs, my page was kill due to no response after 30 secs. So there are
EOs created but no csv to download.

I checked the code, EO generating is fast. The problem is CSV
component. It's just a WORepetition with some WOString that reads the
EO's property directly.
I have no idea why it take so long to handle 200,000 EOs. (The result
file may exceed 5MB, however that's small in 21 century.)

How could I improve the performance? Or at least let my page won't be
killed after 30 secs.
(so I could wait for the csv to be generate.)

Regards,
yllan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to