We have a large database, and I am supposed to get only CustomerId\'s from the entire database without compromising the performance. What is the best way to do it?