You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export FULL_OCCURRENCE_DATA_FOLDER="$SCRIPT_DIR/../OccurrenceGeoJob/.tmp/target" # Set to value of TARGET_DIRECTORY of OccurrenceGeoJob. Ensure job has been ran first.
41
41
export DATABASE_GUIDE_FILE_NAME="Vector_Atlas_Database_Guide.pdf" # Must be located inside the '$DATA_TEMPLATES_FOLDER/Vector Atlas'
42
+
export DATA_EXPORT_BATCH_SIZE=200 # Tune the batch size based on deployment environment.
43
+
export DATA_EXPORT_YIELD_AFTER=5 # After how many batches should setImmediate be called. May be useful for giving node time to clean-up memory and process other requests.
Copy file name to clipboardExpand all lines: src/API/src/config/config.ts
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,18 @@ const config = convict({
60
60
default: 'Vector_Atlas_Database_Guide.pdf',
61
61
env: 'DATABASE_GUIDE_FILE_NAME',
62
62
},
63
+
dataExportBatchSize: {
64
+
type: Number,
65
+
doc: 'The max batch size (number of rows) during data export. Tune based on observed deployment environment factors e.g, database/network latency higher give node more room to be idle thus memory pressure is low.',
66
+
default: 200,
67
+
env: 'DATA_EXPORT_BATCH_SIZE',
68
+
},
69
+
dataExportYieldAfter: {
70
+
type: Number,
71
+
doc: 'After how many batches should setImmediate be called. May be useful for giving node time to clean-up memory and process other requests',
0 commit comments