Git Product home page Git Product logo

Comments (4)

raulcarlomagno avatar raulcarlomagno commented on August 24, 2024

this could be great feature for custom sharding

from qdrant-client.

joein avatar joein commented on August 24, 2024

Hi @raulcarlomagno,

One of our concerns is that if we support providing shard key per point, it will be easier to shoot yourself in the foot in terms of performance.

e.g. if shard_keys=["a", "b", "c", "d", "a", "b", "c", "d"] and batch size = 2, we would need to send 8 requests, 1 per point.

It also makes batching mechanism much more complex, and will probably lead to performance degradation.

from qdrant-client.

joein avatar joein commented on August 24, 2024

just in case: you don't need to construct the final batches, as you've said you only need to split data by shard keys

so it is a call to upload_collection per shard key, the final batching is still handled internally

regarding the situation with ids - it is done this way to preserve api idempotent from the server side

from qdrant-client.

raulcarlomagno avatar raulcarlomagno commented on August 24, 2024

the use case is
i have much data (60 million records of more than 300 dimensions, unordered, not previously sharded)
and i can't split them before, i read them in a mixed shard stream, and maybe when processing one batch, i have 2 vectors for a shard key, and 1500 for another shard key, so i have to perform small quantity batches just for really small shard keys, instead of sending them all to qdrant server, and let qdrant to split them to each shard

from qdrant-client.

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.