set stream buffer in data loading process