mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 20:57:22 +01:00
fix indexing
This commit is contained in:
parent
cc2c8d2531
commit
5dfe978344
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ public class FileCleanupService : IHostedService
|
|||
var allFilesInDir = dir.GetFiles("*", SearchOption.AllDirectories);
|
||||
var availableHashes = allFilesInDir.Select(k => char.ToUpper(k.Name[0], CultureInfo.InvariantCulture)).Distinct().ToList();
|
||||
int filesToTake = 10000;
|
||||
var files = dbContext.Files.Where(c => availableHashes.Contains(c.Hash.First())).OrderBy(f => f.Hash);
|
||||
var files = dbContext.Files.Where(c => availableHashes.Contains(c.Hash[0])).OrderBy(f => f.Hash);
|
||||
var filesChunk = await files.Take(filesToTake).ToListAsync(cancellationToken: ct).ConfigureAwait(false);
|
||||
int iterations = 1;
|
||||
var allFiles = new List<FileCache>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue