Code Monkey home page Code Monkey logo

Comments (11)

abinashmeher999 avatar abinashmeher999 commented on June 24, 2024 2

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.

theskcd avatar theskcd commented on June 24, 2024

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.

abinashmeher999 avatar abinashmeher999 commented on June 24, 2024

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.

theskcd avatar theskcd commented on June 24, 2024

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.

abinashmeher999 avatar abinashmeher999 commented on June 24, 2024

That sounds good! 👍

from pymediawiki.

theskcd avatar theskcd commented on June 24, 2024

I will start working on something then.. 👍 , so should i first fork the repo and make my commits over there?

from pymediawiki.

abinashmeher999 avatar abinashmeher999 commented on June 24, 2024

@sandeepkumarpani888 Yes. Go ahead.

from pymediawiki.

abinashmeher999 avatar abinashmeher999 commented on June 24, 2024

@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.

theskcd avatar theskcd commented on June 24, 2024

Yeah, I think we can work with this .. but there must be already be a library for the same. :)

from pymediawiki.

abinashmeher999 avatar abinashmeher999 commented on June 24, 2024

There is. pybloom.

from pymediawiki.

theskcd avatar theskcd commented on June 24, 2024

Nice !

from pymediawiki.

Related Issues (15)

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.