28.11.2014 Views

Performance Tuning Guide - EMC Community Network

Performance Tuning Guide - EMC Community Network

Performance Tuning Guide - EMC Community Network

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Designing the Application<br />

Figure 18. Interface for manually defining search queries<br />

Note: Wildcards (SELECT *) are not supported in manual queries.<br />

Follow the same performance-related guidelines in your advanced (manual) queries that are followed<br />

for simple queries, including minimizing the number of attributes searched and setting appropriate<br />

results restrictions.<br />

Restricting advanced search results<br />

Avoid designing search templates that do not restrict result sets. In the following example:<br />

SELECT r_object_id, object_name, commodity_code, commodity_description<br />

FROM e2e_commodity WHERE commodity_code LIKE '%$SEARCH_CODE$%'<br />

the query provides placeholder variable (%$SEARCH_CODE$%) which the end user specifies at run<br />

time. If the query returns 10,000 results, all 10,000 results get returned to the TaskSpace application<br />

server after a single user click. The large number of results can result in poor performance for the<br />

user performing the search and the overall TaskSpace application.<br />

To improve single user and overall TaskSpace performance, restrict query result sets by adding<br />

ENABLE (RETURN_TOP n) to the DQL query.<br />

SELECT r_object_id, object_name, commodity_code, commodity_description<br />

FROM e2e_commodity WHERE commodity_code LIKE '%$SEARCH_CODE$%' ENABLE (RETURN_TOP 501)<br />

The ENABLE (RETURN_TOP 501) restricts the query results to the first 501 rows that match the<br />

search criteria, even though there are many more possible matches.<br />

46 <strong>EMC</strong> Documentum xCP 1.0 <strong>Performance</strong> <strong>Tuning</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!