More Bugfixes (#2685)
This commit is contained in:
parent
4a9519b6dc
commit
061b363f96
31 changed files with 162 additions and 119 deletions
|
|
@ -105,9 +105,11 @@ public static class ApplicationServiceExtensions
|
|||
{
|
||||
services.AddDbContextPool<DataContext>(options =>
|
||||
{
|
||||
options.UseSqlite("Data source=config/kavita.db");
|
||||
options.UseSqlite("Data source=config/kavita.db", builder =>
|
||||
{
|
||||
builder.UseQuerySplittingBehavior(QuerySplittingBehavior.SplitQuery);
|
||||
});
|
||||
options.EnableDetailedErrors();
|
||||
|
||||
options.EnableSensitiveDataLogging();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -246,6 +246,7 @@ public static class SeriesFilter
|
|||
.Where(p => p != null && p.AppUserId == userId)
|
||||
.Sum(p => p != null ? (p.PagesRead * 1.0f / s.Pages) : 0) * 100)
|
||||
})
|
||||
.AsSplitQuery()
|
||||
.AsEnumerable();
|
||||
|
||||
switch (comparison)
|
||||
|
|
@ -300,6 +301,7 @@ public static class SeriesFilter
|
|||
Series = s,
|
||||
AverageRating = s.ExternalSeriesMetadata.AverageExternalRating
|
||||
})
|
||||
.AsSplitQuery()
|
||||
.AsEnumerable();
|
||||
|
||||
switch (comparison)
|
||||
|
|
@ -358,6 +360,7 @@ public static class SeriesFilter
|
|||
.Max()
|
||||
})
|
||||
.Where(s => s.MaxDate != null)
|
||||
.AsSplitQuery()
|
||||
.AsEnumerable();
|
||||
|
||||
switch (comparison)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue