Cache Preferences [message #362564] |
Fri, 16 May 2008 14:53  |
Eclipse User |
|
|
|
Via a Google search for "Cache Preferences", I found an archived BIRT
Developer Guide that contained information about setting Cache Preferences
for a dataset. This information is as follows:
How to set cache preferences
In Edit Data Set, choose Cache Preference.
Cache Preference appears.
To set cache preferences, choose Cache data set data for report preview.
BIRT Report Designer displays cache options.
Define data set size to cache:
To cache a portion of the data set, select Cache and use first.
BIRT Report Designer enables the field in which you can type an integer
defining the number of rows to cache.
Type an integer in the rows box.
To cache the entire result set, select Cache entire data set.
To clear the cache, choose Clear Cache.
BIRT displays a message stating the cache has been cleared.
Choose OK.
In BIRT 2.2.2, you cannot set Cache Preferences as described above. In
BIRT 2.2.2 under "Settings" for a dataset, you can indicate that all rows
from the datasource should be fetched, or you can specify a fixed number
of rows to fetch. Are the fetched rows cached automatically, or is there
a new way to define caching options in BIRT 2.2.2?
|
|
|
|
|
|
Re: Cache Preferences [message #362656 is a reply to message #362610] |
Tue, 20 May 2008 11:26  |
Eclipse User |
|
|
|
There are three rows limit setting:
1, fetch rows from data source, the setting works on individual dataset.
It will define how many rows to fetch from a datasource.
2, maximum number of rows to display in preview of preference, the setting
works when previewing the report in layout.
3, maximum number of rows to display in dataset editor of preference, the
setting will works on all the datasets in the report and only take effect
on the preview of dataset.
These three settings will not do cache job.
As your requirement I think you may set the second max rows limit when
previewing a report. Because BIRT will do the cache for you all the time.
If you want to set the cache by yourself you can set a
DataEngine.DATA_SET_CACHE_ROW_LIMIT AppContext to DataEngine.
Tianli
|
|
|
Powered by
FUDForum. Page generated in 0.05438 seconds