GithubHelp home page GithubHelp logo

Reloading data from MDB? about bento-meta HOT 3 CLOSED

cbiit avatar cbiit commented on June 7, 2024
Reloading data from MDB?

from bento-meta.

Comments (3)

bensonml avatar bensonml commented on June 7, 2024

If the lines in between print "---A---\n"; and print "---D---\n"; are removed, then it works fine. I've attempted various ways to reload the data, but I can't figure out how to get it to work

from bento-meta.

majensen avatar majensen commented on June 7, 2024

@bensonml - ok, I'm going to spend some time on this. There is a bug, almost certainly. Also, I think I can improve the response by more lazily loading. The machinery is there for it, but to load a model Meta still goes out an pulls all nodes, edges and properties - can probably do less, but need to think about it.

I think that kind of polling isn't necessary in the first instance if we think of model changes as release-driven, rather than transactional. However, there is probably a clever way with direct queries to the db to check if there have been updates that is a lot faster than pulling the model again and comparing. That another feature to think about.

from bento-meta.

majensen avatar majensen commented on June 7, 2024

@bensonml - ok, there is a cache (%Bento::Meta::Model::ObjectMap::Cache) that, if you clear it (set it to () ), the second load will run. This needs to be automatic, clearly.

from bento-meta.

Related Issues (12)

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.