Skip to content

Commit e713d77

Browse files
committed
Update default chunksize
Rename to repository.chunk.size
1 parent 9b72400 commit e713d77

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/main/java/org/phoebus/channelfinder/ChannelRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public class ChannelRepository implements CrudRepository<Channel, String> {
7676
@Qualifier("indexClient")
7777
ElasticsearchClient client;
7878

79-
@Value("${index.chunk.size:1}")
79+
@Value("${repository.chunk.size:10000}")
8080
private int chunkSize;
8181

8282
// Object mapper to ignore properties we don't want to index

src/main/resources/application.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ elasticsearch.query.size = 10000
106106
# Create the Channel Finder indices if they do not exist
107107
elasticsearch.create.indices=true
108108

109+
############################## Repository #################################
110+
111+
# Repository chunk size, how many channels to submit to elastic at once
112+
repository.chunk.size = 10000
113+
109114
############################## Service Info ###############################
110115
# ChannelFinder version as defined in the pom file
111116
channelfinder.version=@project.version@

0 commit comments

Comments
 (0)