fix(unitFilter): Снижен размер чанка для фильтрации по полям для устранения ошибки таймаута при работе templateMatcher
This commit is contained in:
@@ -11,7 +11,7 @@ namespace PARR.Core.Services.UnitFilterService.Matchers;
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
internal class UnitFieldMatcher : IUnitFieldMatcher
|
internal class UnitFieldMatcher : IUnitFieldMatcher
|
||||||
{
|
{
|
||||||
private const int chunkSize = 1000;
|
private const int chunkSize = 200;
|
||||||
private readonly IUnitRepository unitRepository;
|
private readonly IUnitRepository unitRepository;
|
||||||
private readonly ILogger<UnitFieldMatcher> logger;
|
private readonly ILogger<UnitFieldMatcher> logger;
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace PARR.DAL.Repositories.Unit
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public IQueryable<PARR.Domain.Entities.Unit.Unit> GetUnitByFieldAndValue(IQueryable<PARR.Domain.Entities.Unit.Unit> query, Guid fieldId, string valueMask, bool isInverse = false)
|
public IQueryable<Domain.Entities.Unit.Unit> GetUnitByFieldAndValue(IQueryable<Domain.Entities.Unit.Unit> query, Guid fieldId, string valueMask, bool isInverse = false)
|
||||||
{
|
{
|
||||||
//TODO: вынесено из UnitFilterService
|
//TODO: вынесено из UnitFilterService
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user