Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6056863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:25:29+00:00 2026-05-23T08:25:29+00:00

I want to cache data on MySQL SET GLOBAL query_cache_size = SOME_SIZE; Is it

  • 0

I want to cache data on MySQL

SET GLOBAL query_cache_size = SOME_SIZE;

Is it all the thing required for caching data [efficiently] in MySQL ?

Do I need to add something extra to use the cache efficiently ?

I don’t have good knowledge on data caching but still need to use for performance issue, so if I’ve missed to give some vital info, answer this question assuming the system is in default state.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:25:29+00:00Added an answer on May 23, 2026 at 8:25 am

    I don’t usually recommend using the MySQL query cache. It sounds great in theory, but unfortunately isn’t a great win for caching efficiently, because access to it from queries is governed by a mutex. That means many concurrent queries queue up to get access to the query cache, and this harms more than it helps if you have a lot of concurrent clients.

    It even harms INSERT/UPDATE/DELETE, even though these queries don’t have result sets, because they purge query results from the query cache if they update the same table(s). And this purging is subject to the same queueing on the mutex.

    A better strategy is to use memcached for scalable caching of specific query results, but this requires you to think about what you want to cache and to write application code to access memcached and fail back to MySQL if the data isn’t present in the cache. That’s more work, but if you do it right it gives better results.

    See TANSTAAFL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I want to cache some data in mysql and some in memcached. at
I want to cache custom data in an ASP.NET application. I am putting lots
I want to permanently add an item to the cache. I am using the
I want to cache my loaded data so that I can reduce my application
In my application, I want to cache the displayed data in tableview so that
I am newer for php. I want make php page cache, query data from
I want to cache data on the client. What is the best algorithm/data structure
I want to cache data for a user session in a web application built
In my application I want to cache data loaded with NHibernate. I don't want
I'm using a mysql memory table as a way to cache data rows which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.