GithubHelp home page GithubHelp logo

Comments (5)

rayokota avatar rayokota commented on May 29, 2024

Yes, it is possible to get hotspots when using vertex indices with many vertices with the same label. Currently the vertex index is not hashed/salted in order to support range queries and pagination on vertex indices. It would be possible in the future to add an option to create vertex indices that do not support range queries and pagination, so that they can be salted.

from hgraphdb.

youzp avatar youzp commented on May 29, 2024

@rayokota thanks for your help. I do not need range queries and pagination, is there any simple way to solve this problem now? I used a different label but it didn't work, because rowkey of vertex index table always has a fixed prefix of "4", very strange!

from hgraphdb.

rayokota avatar rayokota commented on May 29, 2024

I've modified the vertex index format so that the combination of label and property key is salted. This will still mean hotspots if you use the same label and property key, but should otherwise distribute vertex indices among region servers. You will need to drop any existing vertex indices while on 1.x and recreate them after upgrading to 2.x.

from hgraphdb.

teenyboy avatar teenyboy commented on May 29, 2024

but how can i design the label when I presplit the hbase table by HexStringSplit style ? the system don't need the range query and pagination .
Thank you for taking the time to answer me!

from hgraphdb.

rayokota avatar rayokota commented on May 29, 2024

@teenyboy , unfortunately, if you frequently use the same label and property key for a vertex index, you may encounter hotspots.

from hgraphdb.

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.