Comments (6)
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.
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.
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.
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
Line 59 in f1d8e0d
from lodata.
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.
Oops, I've seemed to misread it, my bad! null does work indeed, thank you!
from lodata.
Related Issues (20)
- `.idea` (personal) project files not all ignored HOT 1
- Tests broken on Windows HOT 2
- Defining operations without reflection HOT 6
- Dropping support for EOL PHP versions HOT 4
- Problem with any request inside filter
- Is it possible to consume output from this library with openui5? HOT 2
- Parsing $batch POST body fails when connecting via openui5 app HOT 3
- $batch failed - Error: Expected 'OData-Version' header with value '4.0' but received value 'null' in response HOT 3
- Argument #1 ($property) must be of type string, int given HOT 1
- $filter not working when calling from openui5 app HOT 1
- $patch throwing an unknown error on Syncfusion Integration HOT 2
- Add filters in code (SQLEntitySet) HOT 2
- $batch URL is set to http:// instead of the original https:// HOT 2
- Testing with passport HOT 1
- appends in a model are ignored
- Is it possible to return EntitySet from Operation? HOT 4
- Laravel 11 support HOT 1
- Enhance Error Reporting HOT 4
- TINYINT in Model is wrongly converted to EDM.Boolean? HOT 2
- [Laravel 11.x] Unknown database type enum requested, Doctrine\DBAL\Platforms\MySQL80Platform may not support it. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lodata.