Understanding and Scaling Collaborative Filtering Optimization from the Perspective of Matrix Rank