Академический Документы
Профессиональный Документы
Культура Документы
Performance Tuning
Create, update, and customize a table of contents
You don’t need to wait until your pages are finalized; inserting a table of contents can be an
early step in creating your document. As the pages of your document develop, Word helps you
keep the table of contents up to date.
This doc isn’t just for reading, it’s for trying too. Watch for the Try it text in red
throughout this document so you can learn by doing.
We have to ensure that the parameter definition matches the parameter usage.
Parameters are defined in filters and calculations. The resulting parameters are used in
prompts.
Page | 1
Some prompts don’t handle large volumes of data well. For example, a value prompt
that picks 100000 entries will be slow and unusable. For this type of scenario we can
use Select and Search Prompts, Cascading prompts.
We can use a Select and Search prompt instead of a Value Prompt if the list of values
are very long. A long value list could be the reason for slow performance.
Also if we have the option of choosing Product Code and Product Type to use as a
prompt, always choose ‘use value’ because a Product Code is always better option to
improve performance.
We can avoid usage of heavy fonts. Always use fonts like Arial.
Filters:
We can always use a date filter from the Fact table to improve the performance. Hence
it will directly hit the partition.
Complex Calculations and Filters always use in Frame Work Manager to improve report
performance.
Avoid Summary filters & instead use detail filter with after auto aggregation ,summary
filters are processed at Cognos server which hampers report performance.
Specifies whether the query engine will pick up a minimal amount of processing. Local
Processing will only occur if the database cannot handle the load.
Maximum Tables:
Specifies the maximum the number of tables that the query can retrieve. If the value 0 is
specified, no error is returned and there is no restriction on the number of tables that
can be queried.
Page | 2
Maximum Rows Retrieved:
Specifies the maximum number of database rows the query can retrieve. An error
occurrs if the number of database rows returned exceeds the specified values.
IF set to Yes, the query engine can reuse existing SQL results. IF set to No, the cached
results will not be used. The query will be executed. Improve performance by reusing
cache data when running a report.
Execution Method:
Prompt Query with this property set to Yes will always check parameter information first.
Setting this property to Yes on parameterized queries can improve performance in
displaying prompt pages.
Output format
The process Cognos follows in generating report output depends in part on the output
format being used. With an HTML report Cognos will fetch the data required to display
the first page of the report in the browser window. When the user clicks on Page Down
it will query more data and generate the next page. With file based formats like PDF and
Excel Cognos must fetch all the data and build the entire output file before anything can
be presented to the user. In some case this creates the appearance that the report runs
much faster when it is run to HTML.
To get a better idea of the time required for a report when run to HTML, run the report to
HTML in the background and save the output to the content store, then check the run
history to establish how long it takes. There will likely still be a difference between
running the same report to HTML and to other formats. If the report is displaying a large
result set the difference could be significant. This is due in part to inherent differences
between the different formats.
Page | 3
Outer joins
Outer joins and cross products can arise either from the model or from the report
design. In either case then tend to cause poor performance and should be avoided.
The “Use SQL with clause” property for a report level query should be set to ‘No’ ,as it
fires multiple queries on database.
Normalization – Framework Manager can work with different data structures, but works
best when the sources are normalized. Don’t worry about trying to achieve the highest
form of normalization – 3rd to 4th will do the trick.
Star Schema – Using a star schema will ensure FM creates the most efficient database
request. In the rare case, you can also use a Snowflake Schema and still achieve good
results.
Consolidate – If you have to put together multiple tables in order derive a single value,
you might consider doing such work in the database and then present the results in a
table for FM. Framework Manager can join multiple tables, however, the more layers
you build the longer it takes to return a value. Performance is further compounded by
the amount of data that must be returned.
Required Elements Only – When building FM only, bring in the elements you are
going to use. If you have fields in a view that are not used in the report request, FM will
still build the query command with all the fields in the view.
Page | 4
Additional things to improve the Performance At Framework Manager level
Try It: Update the style, and then update the TOC.
1. Click in the heading above (Use styles for headings)—be sure to just click, don’t select
anything.
2. On the Home tab, find Styles, and click Heading 1 (keyboard shortcut: Alt+Ctrl+1).
3. Update your TOC like you did before, but this time, select Update entire table (instead
of Update page numbers only) since more than the page numbers changed.
Now Word knows that paragraph is a heading, and includes it in the TOC.
Try It: Apply Heading 2 to the paragraph below (Add a Level 2 TOC entry), and then update
your TOC like you did before. Remember to update the entire table!
Page | 5
Under the hood: Heading styles hold formatting, font, size, color, and more. They also hold a
paragraph format known as an outline level, which is picked up by the TOC.
1. On the References tab, click Table of Contents, and then near the bottom, click
Custom Table of Contents.
2. From the list of Tab Leader options, select Line (last choice in the list), and click OK.
Page | 6
And just like that, Word found your TOC and changed the tab leader from dots to an underline.
Remove a TOC
You can’t delete a TOC like you can a picture or other things in a doc. Well, you can, but if you
do it too many times, your TOC can get out of whack. Remember the heavy lifting Word does
for you? All the scaffolding needs to be removed too. Tell Word to remove the TOC, and Word
will clean up after itself.
Try It: On the References tab, click Table of Contents, and then near the bottom, click
Remove Table of Contents.
Poof! The TOC, and the stuff to make it work, are gone from the document. But you can add
your TOC back any time, in any location. Word will remember everything you did—even your
change to the tab leader.
Under the hood: The stuff Word removes is a collection of hidden bookmarks that keep track of
the heading text and page number shown in the TOC.
Explore more
If you want to customize your TOC even more, give these a try. (If you didn’t add your TOC back,
do that now. You can add it above this section if you’d like. Or, if removing it is the last thing
you did, press Ctrl+Z to undo.)
Page | 7
Like the rest of the TOC magic, all the TOC Level 1 entries changed too.
Under the hood: Okay, it’s not really magic. The TOC entries are assigned to a style (TOC 1, TOC
2, and so on), and those styles are set to update automatically whenever you make a formatting
change.
1. On the References tab, click Table of Contents, and then near the bottom, click
Custom Table of Contents.
4. Verify your TOC no longer includes subheadings, such as Add a Level 2 TOC entry.
Page | 8
Get help in Word
The Tell me search box takes you straight to commands and Help in Word.
Try it: Go to Tell me what you want to do near the top of the window, and then type what you
want to do.
table of contents to quickly get to the Table of Contents options and other TOC help topics
Page | 9