Git Product home page Git Product logo

Comments (6)

samuel-gauthier avatar samuel-gauthier commented on July 22, 2024 1

The problem is, when you have a hierarchical model as we do here, every subscription is woken up for any change (configuration or state) because all the modules augment the same base module... It becomes unusable very quickly.

from sysrepo.

michalvasko avatar michalvasko commented on July 22, 2024

Yes, this is expected and you had not even needed to provide an example. All the changes of a module are always communicated using a single SHM. So, when an event is generated, all the subscribers are notified because the XPath filtering is performed on the side of the subscribers.

This is a feature and works as intended. However, you are not the first to mind it so I will try to optimize it later, once I finish fixing other current issues.

from sysrepo.

samuel-gauthier avatar samuel-gauthier commented on July 22, 2024

OK, thanks!

from sysrepo.

michalvasko avatar michalvasko commented on July 22, 2024

So I have looked at this more and I am not sure anymore there is anything that could be optimized. The subscribers perform the filtering also because the have a filtered_out counter that can be retrieved and is needed for some statistics. Not generating an event would cause this counters to be inaccurate.

from sysrepo.

michalvasko avatar michalvasko commented on July 22, 2024

Fine, try using the new option SR_SUBSCR_FILTER_ORIG that should do what you need.

from sysrepo.

samuel-gauthier avatar samuel-gauthier commented on July 22, 2024

Works for me! Thanks a lot.

from sysrepo.

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.