**Enhancement** Currenly, there are multiple configurations scattered in the project like `batch_size`. Need to unify them to a database config. Contact @qishipengqsp before we want to start this task