Improve import performance by using redis pipeline.