using dbcontextoptions for maxbatchsize