Comments (4)
I did see it, and it does look great. My plugin integrates with a larger framework that already has a memcached wrapper, so it was easy to write my own adapter.
from flintstone.
Great question! Reading from memory is always going to be faster than reading from disk. I haven't benchmarked it to that scale but I would say choosing something like memcached/redis is a better option if you are having hundreds of reads per page. However it is a trade off - using something like memcached comes with more maintenance from a devops point of view. It's also not a permanent memory store so you would need a fallback like a database if the data does not exist. Totally depends on your use case and how willing you are to optimise your site for speed. I hope that helps :)
from flintstone.
I do have a database table, which contains additional information about each route. I needed a fast way to rewrite all inline URLs on the page without having to query the database to get the target path.
I have integrated memcached today and left flintstone in as a fallback for servers that are not memcached. There was a considerable improvement in speed.
from flintstone.
Great. There is a nice package written by @adammbalogh which allows you switch out flintstone for memcached/redis without any code changes, would recommend you take a look: https://github.com/adammbalogh/key-value-store
from flintstone.
Related Issues (20)
- changing the replace method visibility HOT 2
- JSON Format HOT 1
- Object Storage HOT 7
- Cannot add key/value to same ID HOT 1
- Update only one name in database HOT 1
- flintstone Injections HOT 3
- Registration form and checking email and login HOT 6
- Where is the Distribution version? HOT 1
- set returns void instead of bool HOT 1
- Unserialize Notice HOT 2
- Use magic methods HOT 2
- location of database? HOT 1
- package releases as phar
- Flinstone out of composer
- Without Composer HOT 3
- Add contains/has_key method to support boolean type data
- why you use flush not truncate/clearAll to clear the database? HOT 1
- Sometimes gets "stuck" setting a key/value HOT 1
- Idea: support CSV files 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 flintstone.