473,405 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Caching mysql queries

Beginners question:

I'm a little confused about the working of the mysql-cache. I don't
understand the mechanism. What is it exactly you cash ? The result of a
query ? And what if there are certain records addes or removed ?

Please explain this because I need this knowledge to support a customer
of mine who wants to know this technique in detail.

Thnx,

Peter

Aug 28 '06 #1
2 2730
Peppi wrote:
I'm a little confused about the working of the mysql-cache. I don't
understand the mechanism. What is it exactly you cash ? The result of a
query ? And what if there are certain records addes or removed ?
Right, the results of a query are cached, if possible. They are
associated with the exact query that generated the results.

If any records are added or removed or updated in the underlying table,
the cached result set is invalidated and discarded. The next execution
of that query must be run against the current state of the table. The
results will be cached again, and that cached copy can be reused while
the table is unchanged.
Please explain this because I need this knowledge to support a customer
of mine who wants to know this technique in detail.
Why don't you read the chapter in the documentation and then come back
if you have more specific questions. Your questions are probably
answered there.

http://dev.mysql.com/doc/refman/5.0/en/query-cache.html

Regards,
Bill K.
Aug 28 '06 #2

As you said, more answers were found in the documentation.

Thanks Bill !

Peter.

Bill Karwin schreef:
Peppi wrote:
I'm a little confused about the working of the mysql-cache. I don't
understand the mechanism. What is it exactly you cash ? The result of a
query ? And what if there are certain records addes or removed ?

Right, the results of a query are cached, if possible. They are
associated with the exact query that generated the results.

If any records are added or removed or updated in the underlying table,
the cached result set is invalidated and discarded. The next execution
of that query must be run against the current state of the table. The
results will be cached again, and that cached copy can be reused while
the table is unchanged.
Please explain this because I need this knowledge to support a customer
of mine who wants to know this technique in detail.

Why don't you read the chapter in the documentation and then come back
if you have more specific questions. Your questions are probably
answered there.

http://dev.mysql.com/doc/refman/5.0/en/query-cache.html

Regards,
Bill K.
Aug 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Matthew Bates | last post by:
Hi, I've been using PHP for a while now and I'm beginning to migrate to PHP5. So far, I'm impressed. I need to develop an admin application to enable users to update a website that is built...
0
by: Luca Calderano | last post by:
The Only way is using Com S.G.A S.p.A. Nucleo Sistemi Informativi Luca Calderano -----Messaggio originale----- Da: python-list-admin@python.org Per conto di JZ
0
by: Luca Calderano | last post by:
I MEAN YOU CAN ACCESS ADO TROUGHT COM AS EXPLAINED HERE: import win32com.client import locale from os import sys adCmdStoredProc = 4 # Evaluates CommandText as a stored procedure...
0
by: Plymouth Acclaim | last post by:
Hi guys, We have a problem with Dual AMD64 Opteron/MySQL 4.0.18/Mandrake 10 for a very high volume site. We are evaluating the performance on our new server AMD64 and it seems it's slow compared...
11
by: DJJ | last post by:
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL tables to a Microsoft Access 2003 database. I am finding that the data from the MySQL tables takes a hell of a long time...
0
by: DocFalken | last post by:
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...
0
by: SC | last post by:
I'm developing a site that may eventually have a very large database of users (hopefully, but who knows). Often there will be queries with multiple joins and sometimes may include a few fulltext...
1
by: SC | last post by:
I'm developing a site that may eventually have a very large database of users (hopefully, but who knows). It will be a community website where users can search each other (think Friendster,...
6
by: onnodb | last post by:
Hi all, While working on an Access UI to a MySQL database (which should be a reasonable, low-cost, flexible interface to the DB, better than web-based, much less costly than a full-fledged .NET...
4
by: Hermann | last post by:
My site is a bit slow showing the main page so I thought caching query result in PHP will improve performace. Then I read MySQL documentation and saw that MySQL does have a caching feature. So......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.