Chapter 10 Achieving Optimum Performance with PowerDynamo
PowerDynamo allows you to schedule documents to be executed hourly, daily, weekly, monthly or yearly. Once a scheduled document executes, subsequent requests of that document can receive the output without requiring processing time or User connections. Scheduling documents can significantly cut processing time and the number of database calls.
If a document called sample.stm were scheduled to run once every hour, here's what would happen:
For data that does not need to be updated more than once an hour, scheduling documents for slow times or at regular intervals can greatly increase the performance of a Web site.
To schedule a document:
For more information about scheduling documents, see "Scheduling actions".
Documents that take parameters
Do not schedule or assign a cacheOutputTimeOut
value to documents that require users to enter parameters. This
kind of document depends on the parameters provided by the users;
therefore, you cannot cache output.
For information on writing cacheable documents, see "Writing cacheable documents".
For documents that would benefit from being scheduled but require user input you might want to separate the script into multiple documents. Create one main document with as many side documents as required to meet the main document's requirements. For example, if a main document allowed the user the option of choosing between A, B, C, or D, you might create four separate documents for each one. If the user chose option A, the applicable document would be called (docA.stm) from the main document. Because the content of docA.stm does not require user input, you can schedule it or assign a cachedOutputTimeOut value so data is already available for users that select A from the main document.
For more information, see "Writing cacheable documents".
Copyright © 1999 Sybase, Inc. All rights reserved. |