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 reduce processing time and the number of database calls.
For example, if a document called sample.stm were scheduled to run once every hour, here is what happens:
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.
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.
Copyright © 2001 Sybase, Inc. All rights reserved. |