### Creating a cached query result

JReport Designer enables you to create a cached result file for a query and other data objects which function as queries, and then save it somewhere in your machine. In this way, when you run a report, you can choose to retrieve data from the cached query result file instead of using a JDBC driver.

JReport Designer provides you with two ways to create cached query results, the first is with the Catalog Browser panel and the second is with the Resource View panel.

- To create a cached query result file in the Catalog Browser panel:
  1. In the Data tab of the Catalog Browser, select the data object for which you intend to create the cached query result file.
  2. Right-click the data object, and select Create Cached Query Result from the shortcut menu.
  3. In the Save Cached Query Result dialog, specify the file name with or without an extension and the folder to where you want to save the result file.
  4. Click OK and the cached query result file will be saved to the specified folder.
- To create a cached query result file in the Resource View panel:
  1. Open a report.
  2. In the Resource View panel, right-click the query on which the report is built and select Create Cached Query Result from the shortcut menu.
  3. In the Save Cached Query Result dialog, specify the file name with or without an extension and the folder to where you want to save the result file and then click OK.