Coder Social home page Coder Social logo

Comments (4)

timsuchanek avatar timsuchanek commented on May 20, 2024

@brikou the reason is, that when you want to use the Dataloader with full Cache later, you don't need to change your code. So this basically means, that on each request, a new Client instance is created. It's not used right now, but will later help to enable caching on a request basis.

Does this answer your question?

from prisma-examples.

brikou avatar brikou commented on May 20, 2024

Ok I see but since cache is not used, we should remove it. Then add an example with this cache feature. Thanks for your insight.

from prisma-examples.

abhiaiyer91 avatar abhiaiyer91 commented on May 20, 2024

The intention of this is to establish patterns we think will help for working with Prisma. By attaching the Prisma within context, we establish a pattern for your code that can take advantage of caching once we enable that feature. When we release it people can take advantage of it for free.

By all means though import Prisma in your own files if it makes sense for you

from prisma-examples.

brikou avatar brikou commented on May 20, 2024

Thanks @abhiaiyer91, can't wait to see the cache feature coming

from prisma-examples.

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.