Added indexes to Series table for searching. Removed byte[] from SearchResultDTO. Added response caching for all APIs. Responses are cached for 10 seconds.

This commit is contained in:
Joseph Milazzo 2021-03-12 18:21:13 -06:00
parent 24118da49c
commit 1f24725905
10 changed files with 792 additions and 18 deletions

10
API/DTOs/BookmarkDto.cs Normal file
View file

@ -0,0 +1,10 @@
namespace API.Data
{
public class BookmarkDto
{
public int VolumeId { get; init; }
public int ChapterId { get; init; }
public int PageNum { get; init; }
public int SeriesId { get; init; }
}
}

View file

@ -6,9 +6,8 @@
public string Name { get; init; }
public string OriginalName { get; init; }
public string SortName { get; init; }
public byte[] CoverImage { get; init; } // This should be optional or a thumbImage (much smaller) // TODO: Refactor to lazy loading
public string CoverImageUrl { get; init; }
//public byte[] CoverImage { get; init; } // This should be optional or a thumbImage (much smaller) // TODO: Refactor to lazy loading
// Grouping information
public string LibraryName { get; set; }
public int LibraryId { get; set; }