Comments (11)
Just discovered this gem pun not intended https://pypi.python.org/pypi/cached-property and @ayuhsya has volunteered to integrate this over the weekend.
from pymediawiki.
Hi all,
I think we can use either redis/mecahce to implement the same. I would like to discuss more about about this
from pymediawiki.
I just had a look at redis python package. It requires a redis server to be running. If we look at the use case of the package, personally I feel the user isn't going to setup a redis server to use the feature. Correct me if I am wrong but isn't redis mostly used on the server side? The one we are looking at is a client side one.
We are looking at just saving a few repetitive requests. Is setting up redis worth it? IMO a naive one would work too. What do you think?
from pymediawiki.
Well, You are right when you say that. I think instead we can have inter-program communication modules set up so that there is some in-memory caching mechanism with fixed "memory-units" (so that it dosent end up eating a lot of system memory) where we can cache and query for the data.
What do you say to that?
from pymediawiki.
That sounds good!
from pymediawiki.
I will start working on something then..
from pymediawiki.
@sandeepkumarpani888 Yes. Go ahead.
from pymediawiki.
@sandeepkumarpani888 What are your thoughts on using a bloom filter for checking if something should be cached?
P.S. See the first example in the 'Examples' section https://en.wikipedia.org/wiki/Bloom_filter
from pymediawiki.
Yeah, I think we can work with this .. but there must be already be a library for the same. :)
from pymediawiki.
There is. pybloom.
from pymediawiki.
Nice !
from pymediawiki.
Related Issues (15)
- Set up tests HOT 1
- Optional parameter to decide whether to include hidden categories HOT 1
- Configure Travis/Jenkins for automated testing HOT 2
- Add method for each API property HOT 7
- make asynchronous GET request to the API HOT 2
- New name for the project HOT 11
- Lazily fetch the list of linkshere HOT 19
- Structure the project
- Specify User-Agent header in all requests. HOT 3
- Set up a virtual environment HOT 19
- Documentation for the project
- Package the code
- Refactor the code to make it easier to extend and add features later HOT 7
- Add more options to represent the page to be queried HOT 1
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 pymediawiki.