Giter VIP home page Giter VIP logo

Comments (4)

fabxc avatar fabxc commented on June 18, 2024

Yes, this should be fixed before the next alpha. A counter within the transaction and a signaling bit for clients to not store the ref beyond the transaction would be one approach.

That means that all clients that want to use AddFast have to maintain two separate caches – for within the current transaction and one for beyond. As it is, after the transaction initially creating a series, the next transaction has to to a regular Add for the same series regardless.
Given that Prometheus itself does not currently append multiple samples for the same series in a transaction, I wonder if it is worth it at this point.

Even easier would be to reserve the 0 or max ID for "not found" and just always return it if a series was newly created.

from tsdb.

brian-brazil avatar brian-brazil commented on June 18, 2024

How bad is it just to do the Add every time?

from tsdb.

fabxc avatar fabxc commented on June 18, 2024

Every time as in never do the AddFast? It's one of the major reason for saving CPU aside from series maintenance. Without it, about 80% of CPU cycles are spent on allocating/GCing byte slices and hashing them.

from tsdb.

gouthamve avatar gouthamve commented on June 18, 2024

This can be closed.

from tsdb.

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.