Use local db for large data set