Giter Site home page Giter Site logo

Comments (2)

olofhagsand avatar olofhagsand commented on August 29, 2024

Jan,
The datastore client is a direct low-level interface to the datastore. It is intended as a debug tool. However, if used without caching it should work as you describe (I haven't verified your example in detail though).
But the datastore client has a per-process write-through cache CLICON_XMLDB_CACHE which is true by default.
This means that if you write in the datastore with the low-level datastore client, the cache in the backend/cli will not be invalidated and the cli will read stale data.
At least this is what I guess is happening. I could look at it in more detail at a later time.
I am curious on your use-case. Usually, the datastore client is not used except for debugging. Editing directly in the files are also possible.
The usual usecase is that you access the datastore via the backend and the cli/restconf/netconf clients.
There may also be some older documentation that gives another view on this, if so, please point me to it , and I can update it.
Thanks for using clixon!

from clixon.

victor74 avatar victor74 commented on August 29, 2024

Olof,
I want to use clixon to configure a system that I am trying to build. The main datastore is going to be a relational database, and was considering how to synchronise the backend and the database. As it usually happens, after I sent the email to you I got the idea to use netconf/restconf as an interface between those two data sources. Which makes a perfect sense and keeps everything coherent. And now you validated that assumption, thanks for that.

Again, I really appreciate the effort you put in this project, it is a great stuff

Jan

from clixon.

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.