Writing performant code is absolutely critical, especially at the enterprise level. There are a number of strategies and best practices we must employ to ensure our code is optimized for high-traffic situations.
To better understand importance of performance and strategies follow this article.
Optimize the following wp_query.