|
|||||||||||||
|
|||||||||||||
Improve PHP Performance by Caching Database Results "Caching the results of database queries can dramatically improve script execution time and minimize the load on the database server", Yuli Vasiliev writes. According to Yuli, this technique is effective if the data you are dealing with is static. This is because many data requests to a remote database may be eventually satisfied from the local cache, thus avoiding the need to make a connection to the database, execute the query, and fetch the results.
"If your PHP application interacts with Oracle Database 10g Release 2, you can use the Database Change Notification feature that allows your application to receive notifications in response to DML changes on the objects associated with the queries issued," Yuli writes. Given this feature, you don’t necessarily need to update the cache in your application in a specific period of time. Instead, it can be done if the result set of a registered query has changed. More Info « Back |