Use all the previous documents when update query.