Git Product home page Git Product logo

Comments (4)

karimra avatar karimra commented on August 16, 2024

If I understand what you are trying to achieve correctly, I would say you don't really need delete events.
All you need is knowing that a certain row in your table does not exist anymore after a certain timestamp.
That way you can show the same table at different points (intervals?) in time highlighting the diffs.

Deletes are more for a system that ingests events and reacts to a change (e.g: trigger an alarm)
Keep in mind that gNMI sample subscriptions do not include delete notifications.

Postgres will be config heavy, you need to create a schema and explicitly map each received path to a key/field.

from gnmic.

kaage avatar kaage commented on August 16, 2024

I think I forgot to add one detail. In my solution data collection is based on stream mode on-change rather than sample. So we don't get full table data every interval. Those tables in network devices are changing relativety rarely. It doesn't make sense to subscribe interval based.

So in order to tell rows in the table at given point in time, I need to:

  1. Take latest entries of each row within time range starting from when the subsribtion has started (or restarted) as every time it starts full table is sent. (Or maybe I use heartbeat-interval of 1h to make it easier)
  2. Remove rows where last event was delete

Or is there way to solve the issue without delete events?

from gnmic.

karimra avatar karimra commented on August 16, 2024

I see your point, an additional tag that says delete=true can be added when a delete is received.

from gnmic.

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.