Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make media service dupe check scalable #820

Closed
muratcakir opened this issue Sep 15, 2023 · 0 comments
Closed

Make media service dupe check scalable #820

muratcakir opened this issue Sep 15, 2023 · 0 comments
Assignees
Milestone

Comments

@muratcakir
Copy link
Contributor

GetCachedFilesByFolderAsync preloads ALL file metadata in a folder to perform fast dupe checks. This is fast, but doesn't scale well (folders with 1M files and up!).

Implement IMediaDupeDetector interface with two implementations:

  1. Preload like before
  2. No preload --> read DB per query

IMediaDupeDetectorFactory decides which impl is better for the current payload. It then instantiates and returns the impl as transient dependency. Input is folderId.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants