Skip to content

Commit

Permalink
Try split queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Webreaper committed Jul 2, 2024
1 parent 42ef216 commit 85b66e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Damselfly.Core/Services/ImageCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ private async Task<List<Image>> EnrichAndCache(List<int> imageIds)
.ThenInclude(x => x.Tag)
.Include(x => x.ImageObjects.Where(y => imageIds.Contains(y.ImageId)))
.ThenInclude(x => x.Person)
.AsSplitQuery()
.ToListAsync();

foreach ( var enrichedImage in images ) _memoryCache.Set(enrichedImage.ImageId, enrichedImage, _cacheOptions);
Expand Down
2 changes: 1 addition & 1 deletion Damselfly.Web.Client/wwwroot/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const CACHE_VERSION='4.1.3-20240523214158'
const CACHE_VERSION='4.1.3-20240702084419'

0 comments on commit 85b66e5

Please sign in to comment.