⚡ chunk & batch size change
This commit is contained in:
부모
abe5ea1a1c
커밋
4e79794750
@ -45,7 +45,7 @@ public class ComplianceImportRangeJobConfig extends BaseMultiStepJobConfig<Compl
|
||||
|
||||
@Override
|
||||
protected int getChunkSize() {
|
||||
return 10000;
|
||||
return 5000;
|
||||
}
|
||||
public ComplianceImportRangeJobConfig(
|
||||
JobRepository jobRepository,
|
||||
|
||||
@ -22,7 +22,7 @@ public class ComplianceDataRangeReader extends BaseApiReader<ComplianceDto> {
|
||||
private final BatchDateService batchDateService; // ✨ BatchDateService 필드 추가
|
||||
private List<ComplianceDto> allData;
|
||||
private int currentBatchIndex = 0;
|
||||
private final int batchSize = 1000;
|
||||
private final int batchSize = 5000;
|
||||
private String fromDate;
|
||||
private String toDate;
|
||||
public ComplianceDataRangeReader(WebClient webClient, JdbcTemplate jdbcTemplate, BatchDateService batchDateService) {
|
||||
|
||||
@ -99,7 +99,7 @@ public class DestinationsRangeJobConfig extends BaseMultiStepJobConfig<Destinati
|
||||
|
||||
@Override
|
||||
protected int getChunkSize() {
|
||||
return 1000; // API에서 100개씩 가져오므로 chunk도 100으로 설정
|
||||
return 5000;
|
||||
}
|
||||
|
||||
@Bean(name = "DestinationsRangeImportJob")
|
||||
|
||||
@ -100,7 +100,7 @@ public class TerminalCallsRangeJobConfig extends BaseMultiStepJobConfig<Terminal
|
||||
|
||||
@Override
|
||||
protected int getChunkSize() {
|
||||
return 1000; // API에서 100개씩 가져오므로 chunk도 1000으로 설정
|
||||
return 5000;
|
||||
}
|
||||
|
||||
@Bean(name = "TerminalCallsRangeImportJob")
|
||||
|
||||
@ -98,7 +98,7 @@ public class TransitsRangeJobConfig extends BaseMultiStepJobConfig<TransitsDto,
|
||||
|
||||
@Override
|
||||
protected int getChunkSize() {
|
||||
return 1000; // API에서 100개씩 가져오므로 chunk도 100으로 설정
|
||||
return 5000; // API에서 100개씩 가져오므로 chunk도 100으로 설정
|
||||
}
|
||||
|
||||
@Bean(name = "TransitsRangeImportJob")
|
||||
|
||||
@ -16,7 +16,7 @@ public class DestinationRangeReader extends BaseApiReader<DestinationDto> {
|
||||
private final BatchDateService batchDateService; // ✨ BatchDateService 필드 추가
|
||||
private List<DestinationDto> allData;
|
||||
private int currentBatchIndex = 0;
|
||||
private final int batchSize = 1000;
|
||||
private final int batchSize = 5000;
|
||||
protected String getApiKey() {
|
||||
return "DESTINATIONS_IMPORT_API";
|
||||
}
|
||||
|
||||
@ -16,7 +16,7 @@ public class TerminalCallsRangeReader extends BaseApiReader<TerminalCallsDto> {
|
||||
private final BatchDateService batchDateService; // ✨ BatchDateService 필드 추가
|
||||
private List<TerminalCallsDto> allData;
|
||||
private int currentBatchIndex = 0;
|
||||
private final int batchSize = 1000;
|
||||
private final int batchSize = 5000;
|
||||
protected String getApiKey() {
|
||||
return "TERMINAL_CALLS_IMPORT_API";
|
||||
}
|
||||
|
||||
@ -16,7 +16,7 @@ public class TransitsRangeReader extends BaseApiReader<TransitsDto> {
|
||||
private final BatchDateService batchDateService; // ✨ BatchDateService 필드 추가
|
||||
private List<TransitsDto> allData;
|
||||
private int currentBatchIndex = 0;
|
||||
private final int batchSize = 1000;
|
||||
private final int batchSize = 5000;
|
||||
protected String getApiKey() {
|
||||
return "TRANSITS_IMPORT_API";
|
||||
}
|
||||
|
||||
@ -91,7 +91,7 @@ public class PscInspectionJobConfig extends BaseMultiStepJobConfig<PscInspection
|
||||
|
||||
@Override
|
||||
protected int getChunkSize() {
|
||||
return 1000; // API에서 100개씩 가져오므로 chunk도 100으로 설정
|
||||
return 5000;
|
||||
}
|
||||
|
||||
@Bean(name = "PSCDetailImportJob")
|
||||
|
||||
@ -26,7 +26,7 @@ public class PscApiReader extends BaseApiReader<PscInspectionDto> {
|
||||
|
||||
private List<PscInspectionDto> allData;
|
||||
private int currentBatchIndex = 0;
|
||||
private final int batchSize = 1000;
|
||||
private final int batchSize = 5000;
|
||||
|
||||
private final JdbcTemplate jdbcTemplate;
|
||||
private final BatchDateService batchDateService; // ✨ BatchDateService 필드 추가
|
||||
|
||||
@ -43,7 +43,7 @@ public class RiskImportRangeJobConfig extends BaseMultiStepJobConfig<RiskDto, Ri
|
||||
|
||||
@Override
|
||||
protected int getChunkSize() {
|
||||
return 10000;
|
||||
return 5000;
|
||||
}
|
||||
public RiskImportRangeJobConfig(
|
||||
JobRepository jobRepository,
|
||||
|
||||
@ -22,7 +22,7 @@ public class RiskDataRangeReader extends BaseApiReader<RiskDto> {
|
||||
private final BatchDateService batchDateService; // ✨ BatchDateService 필드 추가
|
||||
private List<RiskDto> allData;
|
||||
private int currentBatchIndex = 0;
|
||||
private final int batchSize = 1000;
|
||||
private final int batchSize = 5000;
|
||||
private String fromDate;
|
||||
private String toDate;
|
||||
public RiskDataRangeReader(WebClient webClient, JdbcTemplate jdbcTemplate, BatchDateService batchDateService) {
|
||||
|
||||
불러오는 중...
Reference in New Issue
Block a user