add multithread query and large result query