Structure online data merging optimization framework