Git Product home page Git Product logo

Comments (6)

27pchrisl avatar 27pchrisl commented on May 18, 2024 1

Hi, a null value should store forever (same as rememberForever). My aim for lodata is to make it as developer friendly out of the box as possible, which is why the default value is 0 to prevent caching while you're playing around with discovery!

from lodata.

27pchrisl avatar 27pchrisl commented on May 18, 2024

Wow, I did predict this functionality would eventually be needed but 8s is extreme! I'll work out a developer-friendly way of managing this.

from lodata.

ianket avatar ianket commented on May 18, 2024

Alright Thanks! Most of the time goes to each INFORMATION_SCHEMA.KEY_COLUMN_USAGE query fetching the keys from each and every table every request, which takes about ~0.5s per query on our production server. I expect that smaller servers tend to have quite a bit faster responsetime.

If you need any details, feel free to let me know!

from lodata.

27pchrisl avatar 27pchrisl commented on May 18, 2024

Hi, this functionality introduced in https://github.com/flat3/lodata/releases/tag/v5.0.1 - let me know if the new config options work for your use case

'discovery' => [

from lodata.

ianket avatar ianket commented on May 18, 2024

It does seem to work yes, only i noticed that having the ttl at 0 does mean it won't be stored at all. I guess it should be ->rememberForever(...) when ttl is 0. But after setting it to something above 0 it does seem to work.

Thanks that you use the Laravel Cache functionality, I also have the ability to create my own functionality that has the ability to check for database changes in the background, and if so deletes the cache key and re-do the discovery without it having to influence the end-user.

Thanks!

from lodata.

ianket avatar ianket commented on May 18, 2024

Oops, I've seemed to misread it, my bad! null does work indeed, thank you!

from lodata.

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.