VahidN / EFSecondLevelCache.Core

Entity Framework Core Second Level Caching Library
Apache License 2.0
326 stars 51 forks source link

Update EFCacheKeyProvider.cs #27

Closed SteffenMangold closed 5 years ago

SteffenMangold commented 5 years ago

I think using query.Expression.ToString() is way faster than query.ToSql. Especial when it comes to high rate of using the cache. All my tests showing the same result and working perfecly.

SteffenMangold commented 5 years ago

On my service using cache with ToSql based hash is x5 fast then uncached querying and using Expression based hash x95 times faster. That's really a big difference.

VahidN commented 5 years ago

Great. Thanks.

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related problems.