Is there a better optimized/efficient way of doing this

Printable View