mysql spatial slowed after upgrade to 8 The Next CEO of Stack Overflow

Why didn't Khan get resurrected in the Genesis Explosion?

Would a completely good Muggle be able to use a wand?

Writing differences on a blackboard

How to place nodes around a circle from some initial angle?

Can we say or write : "No, it'sn't"?

Why isn't the Mueller report being released completely and unredacted?

Reference request: Grassmannian and Plucker coordinates in type B, C, D

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

Is it okay to majorly distort historical facts while writing a fiction story?

Running a General Election and the European Elections together

If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?

Why do remote US companies require working in the US?

Why this way of making earth uninhabitable in Interstellar?

A Man With a Stainless Steel Endoskeleton (like The Terminator) Fighting Cloaked Aliens Only He Can See

Break Away Valves for Launch

Why isn't acceleration always zero whenever velocity is zero, such as the moment a ball bounces off a wall?

Does soap repel water?

0 rank tensor vs 1D vector

Should I tutor a student who I know has cheated on their homework?

is it ok to reduce charging current for li ion 18650 battery?

Why do airplanes bank sharply to the right after air-to-air refueling?

Chain wire methods together in Lightning Web Components

Why is quantifier elimination desirable for a given theory?

Won the lottery - how do I keep the money?



mysql spatial slowed after upgrade to 8



The Next CEO of Stack Overflow












0















After I updated MySQL from 5.7 to 8, spatial functions have become very slow. Specifically, this query:



SELECT DISTINCT points3_.track_id AS track_id
FROM waypoint points3_
WHERE ST_CONTAINS(ST_POLYFROMTEXT('POLYGON ((34.82041 32.041814, 34.82041 32.158149, 35.47959 32.158149, 35.47959 32.041814, 34.82041 32.041814))'), points3_.point)


now uses a full index scan and takes 6 seconds on 100,000 records, while before it took milliseconds.









share







New contributor




f.khantsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    After I updated MySQL from 5.7 to 8, spatial functions have become very slow. Specifically, this query:



    SELECT DISTINCT points3_.track_id AS track_id
    FROM waypoint points3_
    WHERE ST_CONTAINS(ST_POLYFROMTEXT('POLYGON ((34.82041 32.041814, 34.82041 32.158149, 35.47959 32.158149, 35.47959 32.041814, 34.82041 32.041814))'), points3_.point)


    now uses a full index scan and takes 6 seconds on 100,000 records, while before it took milliseconds.









    share







    New contributor




    f.khantsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      After I updated MySQL from 5.7 to 8, spatial functions have become very slow. Specifically, this query:



      SELECT DISTINCT points3_.track_id AS track_id
      FROM waypoint points3_
      WHERE ST_CONTAINS(ST_POLYFROMTEXT('POLYGON ((34.82041 32.041814, 34.82041 32.158149, 35.47959 32.158149, 35.47959 32.041814, 34.82041 32.041814))'), points3_.point)


      now uses a full index scan and takes 6 seconds on 100,000 records, while before it took milliseconds.









      share







      New contributor




      f.khantsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      After I updated MySQL from 5.7 to 8, spatial functions have become very slow. Specifically, this query:



      SELECT DISTINCT points3_.track_id AS track_id
      FROM waypoint points3_
      WHERE ST_CONTAINS(ST_POLYFROMTEXT('POLYGON ((34.82041 32.041814, 34.82041 32.158149, 35.47959 32.158149, 35.47959 32.041814, 34.82041 32.041814))'), points3_.point)


      now uses a full index scan and takes 6 seconds on 100,000 records, while before it took milliseconds.







      mysql mysql-spatial





      share







      New contributor




      f.khantsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      f.khantsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      f.khantsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 mins ago









      f.khantsisf.khantsis

      1012




      1012




      New contributor




      f.khantsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      f.khantsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      f.khantsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "79"
          };
          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          f.khantsis is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317253%2fmysql-spatial-slowed-after-upgrade-to-8%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          f.khantsis is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          f.khantsis is a new contributor. Be nice, and check out our Code of Conduct.













          f.khantsis is a new contributor. Be nice, and check out our Code of Conduct.












          f.khantsis is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317253%2fmysql-spatial-slowed-after-upgrade-to-8%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Щит и меч (фильм) Содержание Названия серий | Сюжет |...

          is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

          Meter-Bus Содержание Параметры шины | Стандартизация |...