I agree with Raj on changing to Named Query. You could also build the top N into a database view and then add or remove TOP N from the view without having to change the deployed analysis services cube. Or you could point the view at a separate table that contains the 10K rows.
Another alternative would be to keep the DSV as it is, but change the partition on the Measure Group to use a TOP N or alternatively a trimmed down table. Then just change the partition back when you want to process all rows.
The benefits of using a separate table to duplicate the 10K rows is that you're going to guarantee you get the same results each time (TOP N doesn't) and so testing the results may be easier.