Query one Lakh record

Hello Community,

What is the best way to query one lakh records of data from DB.

please suggest!!!

Thanks

  Discussion posts and replies are publicly visible