Inconsistent Caching

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DocFalken

    #1

    Inconsistent Caching

    Hello,

    I'm running into some inconsistent query caching. Has anyone run into
    this and has a solution or better place to look?

    All of my queries don't violate the caching terms (no Now() or other
    mysql reserve words), so it is unclear what is happening. Even when I
    do simple lookups, I'll get the query caching after the first lookup,
    but then within the next 2 or 3 minutes, it has to hit the database
    again and the speed benefit is gone.

    Any help here would be great.

    mysql> SHOW STATUS LIKE '%cache%';
    +-------------------------+-----------+
    | Variable_name | Value |
    +-------------------------+-----------+
    | Binlog_cache_di sk_use | 0 |
    | Binlog_cache_us e | 0 |
    | Qcache_free_blo cks | 20 |
    | Qcache_free_mem ory | 522137920 |
    | Qcache_hits | 13994 |
    | Qcache_inserts | 2056 |
    | Qcache_lowmem_p runes | 0 |
    | Qcache_not_cach ed | 27901 |
    | Qcache_queries_ in_cache | 867 |
    | Qcache_total_bl ocks | 2140 |
    | Threads_cached | 6 |
    +-------------------------+-----------+
    11 rows in set (0.00 sec)



    Thanks,

    doc

Working...