13.07.2015 Views

Reports & Queries - Source : www.pcsoft-windev-webdev.com

Reports & Queries - Source : www.pcsoft-windev-webdev.com

Reports & Queries - Source : www.pcsoft-windev-webdev.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.6 Optimizing a queryThe query editor enables you to optimize the execution speed of one or more queries found in your project.The optimization of a query is based on the following principle: a wizard defines the <strong>com</strong>posite keys that mustbe modified and/or added in the analysis associated with the project.Important<strong>Reports</strong> & <strong>Queries</strong> cannot be used to optimize the execution speed of a query.To optimize the execution speed of the current query:1. On the "Query" pane, in the "Analyze" group, click "Optimize the query".2. The window for query optimization is displayed and it proposes the different modifications that can beperformed in the analysis.Caution: Adding a lot of <strong>com</strong>posite keys to an analysis increases the size of the index files and slows downthe access to the data files.Note: This option is available only if the following conditions are fulfilled:• the Live Data is enabled.The Live Data is configured in the "Live Data" tab of the project description. See the online help(keyword: "Live Data") for more details.• the data files are found in the test directory of the project.This information is specified in the "Files" tab of the project description (on the "Project" pane, in the"Project" group, click "Description"). See the online help (keyword: "Test, Project") for more details.Optimization and <strong>com</strong>posite keys: To optimize your queries, the editor proposes to create <strong>com</strong>posite keys.The order of the <strong>com</strong>ponents in the <strong>com</strong>posite key is not important. There is no need to create a new key thatjust reverses the order of the <strong>com</strong>ponents found in an existing key.204Part 2: Query editor

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!