How it works...

The Tableau performance recording functionality is a built-in tool that can help you assess the performance of your workbook and identify processes that might be slowing it down. In this recipe, we started the performance recording, and performed some actions, such as filtering. After we finished recording, Tableau automatically generated a read-only workbook that contains a dashboard with the processes that have taken place since we started recording, and the respective times they took to run.

The dashboard contains the Timeline, Events, and Query views, which are described here:

Both of the preceding views can be adjusted by using the Show Events taking at least (in seconds): filter, located in the top of the dashboard. By default, events taking less than 0.10 second are filtered out of both views, but shorter events can also be displayed by moving the filter slider to the left. In the following screenshot, we can see how the views can be adjusted:

When you select a query event, the SQL or XML text (depending on whether you're connected to a data source directly or to a published data source, respectively) of that query will be displayed in the Query view. You can then use the text of the query to optimize it. We can  view the result in the following screenshot: