SPUG: cgi help

Alex Kotov alex at linuxconsulting.org
Fri Apr 6 14:53:23 CDT 2001

>>>      I am writing a cgi script that is using oraperl to query the
>>>  database and post the results.  My queries are somewhat on the hefty
>>>  and my browser keeps timing out.  Is there any way that I can keep
>>this from
>>>  happening?  thanks....

Depending on your situation, there may be other acceptable solutions.

1. Try to reduce the time that the queries take. Talk to a DBA. With
some careful planning and indexing, we were able to reduce running
time for some of our queries by an order of magnitude. Oracle can do
amazing things if you tweak it just right.

2. If the queries need to run that long, maybe the browser is not a
good interface for them. You can make them run via cron, or send
the results to the users by email. You can also want to cache the
results and show "your last 20 queries" page to the users.

Best regards,

mailto:alex at linuxconsulting.org
ICQ: 13064434
AIM: linuxcons

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/

More information about the spug-list mailing list