Snapbrillia interview question

How would you optimize large-scale data in certain cases?