Giter VIP home page Giter VIP logo

Comments (5)

UnamedRus avatar UnamedRus commented on June 23, 2024 1

I would take 1 point every 1000.

You need to put some constraints on which OFFSETS and STEP values you can have.
Because in general case it does mean random access of rows, and clickhouse as block_compressed dbms with sparse index bad fit for that.

from clickhouse.

tchaton avatar tchaton commented on June 23, 2024

Hey @UnamedRus. For sure. This is only a suggestion on the API side. I am pretty sure Clickhouse can check the OFFSETS and SKIP_ROWS and fail the query if it is out of bound.

For the sparse compressed dbms, for my use case, there is a garuantee the row is only incrementing by 1, so it won't be sparse.

On my side, I am tracking the number of rows as side metadata, so It won't exceed it. But I am thinking to go and build my own storage mechanism right now as Clickhouse isn't fast enough for my use case.

Or I would be happy to consider contributing pieces if I was guided enough.

from clickhouse.

nikitamikhaylov avatar nikitamikhaylov commented on June 23, 2024

From my understanding auto-increment requires the UniqueMergeTree to be implemented #41817 and this one requires a built-in RAFT for maintaining the state.

from clickhouse.

tchaton avatar tchaton commented on June 23, 2024

Hey @nikitamikhaylov. Thanks for sharing about the RFC. From what I can read, I would still need support for a primary key which isn't shown in the proposed designed.

from clickhouse.

tchaton avatar tchaton commented on June 23, 2024

Hey @nikitamikhaylov. Extra information. There is a lot of speed to gain by implementing this natively in Clickhouse and making sampling more flexible, non-deterministic in general.

I have implemented my own storage mechanism and I am getting a 10x speed compared to clickhouse, 1/10 storage space.

Kind regards, T.C

from clickhouse.

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.