PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: David C Worenklein <dcw at gcm dot com>
Subject: Re: Temporary Response
Date: Jan 14 1999 8:40PM

If there are a limited number of queries, do this:

1. Get the query.
2. Has that query already been asked?
2a. Yes: Show the answer.  Exit.
3. Is someone else running that query? (ie Is there some kind of semaphore?)
3a. No: Create the semaphore and run the query (in another process).
4. Say "Please hold on", with the following header:
		print $cgi->header(-refresh => "1; URL=" . $cgi->self_url);


If there are not a limited number of queries, assign it some id
number, and in the refresh, have it give you back the id as a
parameter.