feat: add low-memory mode
1 file changed, 4 insertions(+), 3 deletions(-)
changed files
M internal/config/structs.go → internal/config/structs.go
@@ -27,9 +27,10 @@ Headers map[string]string `comment:"Extra headers to send with HTTP requests"` } type Importer struct { - Sources map[string]*Source - Timeout Duration `comment:"Abort fetch and import process for all jobs if it takes longer than this value."` - UpdateAt LocalTime `comment:"Local time of day to run fetch/import process"` + Sources map[string]*Source + LowMemory bool `comment:"Use less memory at the expense of import performance"` + Timeout Duration `comment:"Abort fetch and import process for all jobs if it takes longer than this value."` + UpdateAt LocalTime `comment:"Local time of day to run fetch/import process"` } type Source struct {