Skip to content

Commit

Permalink
- parameterised batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
temi committed Oct 16, 2023
1 parent 091242e commit d29cdc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions grails-app/conf/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ speciesCatalog:
vernacularFileName: "vernacularname.txt"
taxonFileName: "taxon.txt"
totalFileName: "total.json"
batchSize: 1000
dir: "/data/biocollect/speciesCatalog"
filters:
language: "en"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class SpeciesService {
ZipEntry entry = zipFile.getEntry(taxonFileName)
List header
String[] line, previous
int count = 1, BATCH_SIZE = 100, page = 1
int count = 1, BATCH_SIZE = grailsApplication.config.getProperty('speciesCatalog.batchSize', Integer), page = 1
int guidIndex, scientificNameIndex, rankStringIndex
if (entry) {
InputStream is = zipFile.getInputStream(entry)
Expand Down

0 comments on commit d29cdc9

Please sign in to comment.