Kavita/API
Joseph Milazzo 56cf7be799
Scan Chunking (#604)
* Some performance refactoring around getting Library and avoid a byte[] copy for getting cover images for epubs.

* Initial commit. Rewrote the main series scan loop to use chunks of data at a time. Not fully shaken out.

* Hooked in the ability for the UI to react to series being added or removed from the DB.

* Cleaned up the messaging in the scan loop to be more clear.

* Metadata scan and scan work as expected and populate data to the UI. There is a slow down in speed for overall operation.

Scan series and refresh series metadata does not work fully.

* Fixed a bug where MangaFiles were not having LastModified Updated correctly, meaning they were opening archives every scan.

* Modified the code to be more realistic to the underlying file

* Updated ScanService to properly handle deleted files and not result in a higher-level scan.

* Shuffled around volume related repo apis to the volume repo rather than being in series.

* Rewrote scan series to be much cleaner and more concise on the flow. Fixed an issue in UpdateVolumes such that the debug code to log out removed volumes could throw an exception and actually break updating volumes.

* Refactored the code to set MangaFile last modified timestamp into the MangaFile entity.

* Added Series Name to ScanSeries event

* Added additional checks in ScanSeries to ensure we never go outside the library folder.

Added extra debug messages for when a metadata refresh doesn't actually make changes and for when we regen cover images.

* More logging statements saying where they originate from. Fixed a critical bug which caused only 1 chunk to ever be processed.

* Fixed a concurrency issue with natural sorter which could cause issues in ArchiveService.cs.

* Log cleanups

* Fixed an issue with logging out total time of a scan.

* Only show added toastrs for admins. When kicking off a refresh metadata for series, make sure we regenerate all cover images.

* Code smells on benchmark despite it being ignored
2021-09-30 06:08:05 -07:00
..
Archive Misc Bugfixes and Enhancements (#507) 2021-08-17 14:15:32 -07:00
Comparators Bugs, Enhancements, and Performance (#580) 2021-09-15 11:06:29 -07:00
Constants Misc Bugfixes and Enhancements (#507) 2021-08-17 14:15:32 -07:00
Controllers Scan Chunking (#604) 2021-09-30 06:08:05 -07:00
Data Scan Chunking (#604) 2021-09-30 06:08:05 -07:00
DTOs Bulk Operations (#596) 2021-09-24 17:27:47 -07:00
Entities Scan Chunking (#604) 2021-09-30 06:08:05 -07:00
Errors Removed some dead code on the interfaces. Introduced UnitOfWork to simplify repo injection. 2021-01-18 13:07:48 -06:00
Extensions Foundational Cover Image Rework (#584) 2021-09-21 19:15:29 -05:00
Helpers Foundational Cover Image Rework (#584) 2021-09-21 19:15:29 -05:00
Interfaces Scan Chunking (#604) 2021-09-30 06:08:05 -07:00
Middleware OPDS Support (#526) 2021-08-27 10:19:25 -07:00
Parser Scan Chunking (#604) 2021-09-30 06:08:05 -07:00
Properties Added new API for getting Member (aka Users but for use in FE). User is just used for login/registering. 2020-12-14 14:33:09 -06:00
Services Scan Chunking (#604) 2021-09-30 06:08:05 -07:00
SignalR Scan Chunking (#604) 2021-09-30 06:08:05 -07:00
.dockerignore EPUB Support (#178) 2021-04-28 16:16:22 -05:00
API.csproj Foundational Cover Image Rework (#584) 2021-09-21 19:15:29 -05:00
API.csproj.DotSettings Foundational Cover Image Rework (#584) 2021-09-21 19:15:29 -05:00
appsettings.Development.json Update Notifier (#464) 2021-08-09 08:52:24 -05:00
Dockerfile Sentry Integration (#212) 2021-05-11 14:45:18 -05:00
Program.cs Foundational Cover Image Rework (#584) 2021-09-21 19:15:29 -05:00
Startup.cs Feature/release cleanup (#597) 2021-09-26 05:40:52 -07:00