Author Topic: CMOD 8.4.1 Query Caching  (Read 2478 times)

Trambak

  • Guest
CMOD 8.4.1 Query Caching
« on: December 23, 2010, 10:57:40 AM »
I am using CMOD MP 8.4.1 on a DB2 9.5. I want to know if there is any kind of in-build caching mechanism present for the recent queries in CMOD. Suppose I query and accountid and date for a particular application group. If I perform the same query again will it be faster the second time. If yes, I would like to know how the caching works. What is the limit and refresh rate of this caching.

Regards
Trambak

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2230
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: CMOD 8.4.1 Query Caching
« Reply #1 on: December 26, 2010, 07:08:37 AM »
Hi Trambak.

The whole idea of Query Caching depends on your database engine.  CMOD has no built-in functionality for that.

There are a few ways that data can be cached that aren't specific to CMOD though.

Inside DB2, there is a 'Query Optimizer' that spends CPU cycles trying to find the fastest way to service the query you're executing.  The result of this optimization is cached.  Therefore, if you run the same query again (even with different criteria) you'll get the quickest 'path' to the data, but without burning the CPU to determine that optimal path.

Also, if the 'second query' happens closely enough to the first, the database pages for the index and table might still be in memory, making it faster the second time, since the database wouldn't have to pull the pages from disk.

And finally, the operating system or disk storage subsystem may have additional caching that keeps recently accessed data in memory.  This may also make a second query faster than the first.

However, with all of that being said, ALL queries should be coming back in a 0.1 seconds, or preferably less.  If you aren't seeing this level of performance, you need to (in order of difficulty)... change your indexing parameters, tune your database, improve your I/O, or upgrade to new hardware.

Hope that helps!

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR