Querying a Modern SQL Database Efficiently

We will now learn how to query an SQL database efficiently using Modern SQL. In this chapter, we will define what Modern SQL is and how to use it. We will start by defining the concept of Modern SQL and understanding what makes it different from traditional SQL by describing many of its features. Thus, we will acquire knowledge of how to convert certain traditional SQL queries into modern ones and when it is best to do so. Moreover, by doing so, we will better understand how Modern SQL can help us optimize a server's performance in more than one way.

Therefore, we will cover the following points:

  • Understanding what Modern SQL is and its features
  • Learning how and when to use WITH and WITH RECURSIVE ...

Get Mastering The Faster Web with PHP, MySQL, and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.