Why mysql remove query cache in 8.0 version?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
1
down vote

favorite












Why mysql remove query cache in 8.0 version ?










share|improve this question





























    up vote
    1
    down vote

    favorite












    Why mysql remove query cache in 8.0 version ?










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Why mysql remove query cache in 8.0 version ?










      share|improve this question















      Why mysql remove query cache in 8.0 version ?







      mysql query-cache mysql-8.0






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 3 hours ago









      RolandoMySQLDBA

      137k24215365




      137k24215365










      asked 3 hours ago









      shaoyihe

      1112




      1112




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote













          Good riddance !!!



          It is a challenge for most database developers to correctly estimate the size the most common result sets in their applications. Having a large query cache was just a big bandage for that.



          There is a bigger reason that foreshadowed the demise of the query cache. Four years ago, I answered the post Why query_cache_type is disabled by default start from MySQL 5.6?. Is short, the query cache was always inspecting the InnoDB Buffer Pool for changes. You can find this on Pages 209-215 of High Performance MySQL (2nd Edition).



          I mentioned this over the years:




          • Sep 05, 2012 : Is the overhead of frequent query cache invalidation ever worth it?


          • Sep 25, 2013 : invalidating query cache entries(key)


          • Sep 26, 2013 : query cache hit value is not changing in my database


          • Dec 23, 2013 : MySQL with high CPU and memory usage

          RIP Query Cache !!!






          share|improve this answer



























            up vote
            1
            down vote













            There is a detailed blog from the MySQL server team about this, where Matt Lord says:




            The query cache has been disabled-by-default since MySQL 5.6 (2013) as it is known to not scale with high-throughput workloads on multi-core machines.



            We considered what improvements we could make to query cache versus optimizations that we could make which provide improvements to all workloads.



            While these choices themselves are orthogonal, engineering resources are finite. That is to say that we are shifting strategy to invest in improvements that are more generally applicable to all workloads.







            share|improve this answer






















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "182"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f217577%2fwhy-mysql-remove-query-cache-in-8-0-version%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              2
              down vote













              Good riddance !!!



              It is a challenge for most database developers to correctly estimate the size the most common result sets in their applications. Having a large query cache was just a big bandage for that.



              There is a bigger reason that foreshadowed the demise of the query cache. Four years ago, I answered the post Why query_cache_type is disabled by default start from MySQL 5.6?. Is short, the query cache was always inspecting the InnoDB Buffer Pool for changes. You can find this on Pages 209-215 of High Performance MySQL (2nd Edition).



              I mentioned this over the years:




              • Sep 05, 2012 : Is the overhead of frequent query cache invalidation ever worth it?


              • Sep 25, 2013 : invalidating query cache entries(key)


              • Sep 26, 2013 : query cache hit value is not changing in my database


              • Dec 23, 2013 : MySQL with high CPU and memory usage

              RIP Query Cache !!!






              share|improve this answer
























                up vote
                2
                down vote













                Good riddance !!!



                It is a challenge for most database developers to correctly estimate the size the most common result sets in their applications. Having a large query cache was just a big bandage for that.



                There is a bigger reason that foreshadowed the demise of the query cache. Four years ago, I answered the post Why query_cache_type is disabled by default start from MySQL 5.6?. Is short, the query cache was always inspecting the InnoDB Buffer Pool for changes. You can find this on Pages 209-215 of High Performance MySQL (2nd Edition).



                I mentioned this over the years:




                • Sep 05, 2012 : Is the overhead of frequent query cache invalidation ever worth it?


                • Sep 25, 2013 : invalidating query cache entries(key)


                • Sep 26, 2013 : query cache hit value is not changing in my database


                • Dec 23, 2013 : MySQL with high CPU and memory usage

                RIP Query Cache !!!






                share|improve this answer






















                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  Good riddance !!!



                  It is a challenge for most database developers to correctly estimate the size the most common result sets in their applications. Having a large query cache was just a big bandage for that.



                  There is a bigger reason that foreshadowed the demise of the query cache. Four years ago, I answered the post Why query_cache_type is disabled by default start from MySQL 5.6?. Is short, the query cache was always inspecting the InnoDB Buffer Pool for changes. You can find this on Pages 209-215 of High Performance MySQL (2nd Edition).



                  I mentioned this over the years:




                  • Sep 05, 2012 : Is the overhead of frequent query cache invalidation ever worth it?


                  • Sep 25, 2013 : invalidating query cache entries(key)


                  • Sep 26, 2013 : query cache hit value is not changing in my database


                  • Dec 23, 2013 : MySQL with high CPU and memory usage

                  RIP Query Cache !!!






                  share|improve this answer












                  Good riddance !!!



                  It is a challenge for most database developers to correctly estimate the size the most common result sets in their applications. Having a large query cache was just a big bandage for that.



                  There is a bigger reason that foreshadowed the demise of the query cache. Four years ago, I answered the post Why query_cache_type is disabled by default start from MySQL 5.6?. Is short, the query cache was always inspecting the InnoDB Buffer Pool for changes. You can find this on Pages 209-215 of High Performance MySQL (2nd Edition).



                  I mentioned this over the years:




                  • Sep 05, 2012 : Is the overhead of frequent query cache invalidation ever worth it?


                  • Sep 25, 2013 : invalidating query cache entries(key)


                  • Sep 26, 2013 : query cache hit value is not changing in my database


                  • Dec 23, 2013 : MySQL with high CPU and memory usage

                  RIP Query Cache !!!







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 3 hours ago









                  RolandoMySQLDBA

                  137k24215365




                  137k24215365






















                      up vote
                      1
                      down vote













                      There is a detailed blog from the MySQL server team about this, where Matt Lord says:




                      The query cache has been disabled-by-default since MySQL 5.6 (2013) as it is known to not scale with high-throughput workloads on multi-core machines.



                      We considered what improvements we could make to query cache versus optimizations that we could make which provide improvements to all workloads.



                      While these choices themselves are orthogonal, engineering resources are finite. That is to say that we are shifting strategy to invest in improvements that are more generally applicable to all workloads.







                      share|improve this answer


























                        up vote
                        1
                        down vote













                        There is a detailed blog from the MySQL server team about this, where Matt Lord says:




                        The query cache has been disabled-by-default since MySQL 5.6 (2013) as it is known to not scale with high-throughput workloads on multi-core machines.



                        We considered what improvements we could make to query cache versus optimizations that we could make which provide improvements to all workloads.



                        While these choices themselves are orthogonal, engineering resources are finite. That is to say that we are shifting strategy to invest in improvements that are more generally applicable to all workloads.







                        share|improve this answer
























                          up vote
                          1
                          down vote










                          up vote
                          1
                          down vote









                          There is a detailed blog from the MySQL server team about this, where Matt Lord says:




                          The query cache has been disabled-by-default since MySQL 5.6 (2013) as it is known to not scale with high-throughput workloads on multi-core machines.



                          We considered what improvements we could make to query cache versus optimizations that we could make which provide improvements to all workloads.



                          While these choices themselves are orthogonal, engineering resources are finite. That is to say that we are shifting strategy to invest in improvements that are more generally applicable to all workloads.







                          share|improve this answer














                          There is a detailed blog from the MySQL server team about this, where Matt Lord says:




                          The query cache has been disabled-by-default since MySQL 5.6 (2013) as it is known to not scale with high-throughput workloads on multi-core machines.



                          We considered what improvements we could make to query cache versus optimizations that we could make which provide improvements to all workloads.



                          While these choices themselves are orthogonal, engineering resources are finite. That is to say that we are shifting strategy to invest in improvements that are more generally applicable to all workloads.








                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited 1 hour ago









                          Paul White♦

                          46.6k14251399




                          46.6k14251399










                          answered 3 hours ago









                          danblack

                          4387




                          4387



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f217577%2fwhy-mysql-remove-query-cache-in-8-0-version%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Comments

                              Popular posts from this blog

                              Long meetings (6-7 hours a day): Being “babysat” by supervisor

                              Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                              Confectionery