Giter Site home page Giter Site logo

Comments (3)

jkedgar avatar jkedgar commented on June 16, 2024

I believe the issue is that each row is being updated over and over again (from id 1 to 101 to 201 to 301, etc.). In a previous database the solution was implemented in the SQL layer - if a key was being updated we did not allow that key to be used to find the rows to update - i.e. the optimizer was not allowed to select that path. Since MySQLonRocksDB can only access rows by their keys, maybe we need to have a flag that can indicate that a row has already been updated and as we come to each row to see if we should update it, skip those with the flag set.

from mysql-5.6.

spetrunia avatar spetrunia commented on June 16, 2024

Yes the cause is rows being updated over and over.

I don't think a flag would be needed - MyRocks is not the first MySQL storage engine to have this property. It just fails to inform the SQL layer that full table scan is actually scanning primary key.

I already have a patch, I'll commit it shortly.

from mysql-5.6.

spetrunia avatar spetrunia commented on June 16, 2024

https://reviews.facebook.net/D45519

from mysql-5.6.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.