کتابخانه EntityFrameworkCore.Cacheable
نویسنده: محمد جواد ابراهیمی
تاریخ: ۱۳۹۷/۱۱/۰۵ ۱۳:۵۰
آدرس: www.dntips.ir
| مطالب | ۳۶۹۴ |
| نویسندگان | ۲۷۶ |
| گروههای مطالب | ۱۰۲۴ |
| نقشههای راه | ۱۱۹ |
| دورهها | ۱۴ |
| اشتراکها | ۱۷۹۱۴ |
A high-performance second-level query cache for EF Core. Nuget Package
Using Example
dbContext.Books .Include(d => d.Pages).ThenInclude(d => d.Lines).Where(d => d.ID == 200) .Cacheable(TimeSpan.FromSeconds(60))
Performance Test
Cacheable vs DataBase
Average database query duration [+00:00:00.0026076]. Average cache query duration [+00:00:00.0000411]. Cached queries are x63 times faster.
Cacheable vs In-MemoryAverage database query duration [+00:00:00.1698972]. Average cache query duration [+00:00:00.0000650]. Cached queries are x2,611 times faster.