Git Product home page Git Product logo

Comments (4)

RiC0MD avatar RiC0MD commented on September 12, 2024 5

I can confirm, trying this library today, in my first test case .Cachable(TimeSpan.FromMinutes(120)).ToListAsync() and the second run of always hit this exception. What I noticed is if I stepped through it slowly it worked, but if I left my breaks out, I'd hit the above every time, which made it seem to me almost like a race condition was occurring, where cache wasn't populated prior to second run.

from entityframeworkcore.cacheable.

coolqingcheng avatar coolqingcheng commented on September 12, 2024

My environment is asp.net core 2.2. I ran your unit test, no problem.But in the ASP.net core environment, inexplicable error.
I tried to track the source code, but when cacheResult returned, I reported that the pointer was abnormal.
It took four or five hours and hopefully it will solve the problem. It is a pity that I have not been able to solve this problem successfully, but I can only mention issue. I hope you can take the time to solve this problem.

Simple query, basically will not get an error. If the group by and then select such an operation is involved, it is easy to get an error.
The driver I use for EFCore is Promelo.EntityFrameworkCore.MySql this library. I don't know if this will have an impact, I'm not familiar with the Expression of Linq. The part that involves CustonQuery, a lot of it can not be read.
I'm in Tim issue through the Bing dictionary, and I hope you can read it.
Thank you

from entityframeworkcore.cacheable.

coolqingcheng avatar coolqingcheng commented on September 12, 2024

I wrote a demo that recreated the error.
url: https://share.weiyun.com/5Q84ftF (pass:Y9ST)
I uploaded it to the net disk, and this address and password can be downloaded.

from entityframeworkcore.cacheable.

grinay avatar grinay commented on September 12, 2024

Same issue. Working only with ToList sync version.

from entityframeworkcore.cacheable.

Related Issues (16)

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.