Profiling queries
You use profiling to analyze the complexity of the queries.
Before you begin
About this task
You can profile the following query types containing only SELECT statements:
- visual queries
- analytical queries
You can also profile Cloudant queries.
To profile a query:Procedure
- Open the required query in the Visual Query Editor.
- Click the Profile Query () toolbar button. The Query Profiler view opens. It displays the time spent on running the query and fetching its results if there are any.
- Click the SQL Text () toolbar button in the Query
Profiler view to see the SQL text of the last profiled
query. The SQL text is displayed in the Query Profiler window.
-
For Cloudant queries, click the Cloudant Query URL
toolbar button in the Query Profiler view to see the
detailed URL of the profiled Cloudant query.
The URL is displayed in the Query Profiler window.