vesoft-inc / nebula-importer

Nebula Graph Importer with Go
Apache License 2.0
90 stars 60 forks source link

Add preStop and postStart option for importer configuration file #72

Closed yixinglu closed 4 years ago

yixinglu commented 4 years ago

In these two options, you can define some commands for initializing and cleanup

whitewum commented 4 years ago

is it possible to put the init() cleanup() functions as a seperate .go file. So they are more easier to maintain:

( that is,

stmt := fmt.Sprintf("USE %s; UPDATE CONFIGS storage:wal_ttl=3600; UPDATE CONFIGS storage:rocksdb_column_family_options = { disable_auto_compactions = true };", p.space)

I think they (init() cleanup()) will be changed frequently between different Nebula versions.

yixinglu commented 4 years ago

Thanks the suggestion of @whitewum