GIS ObjectLand. User Manual
previouscontentsnext / Maps and Themes / Chapter 12. Themes

Layer caching when displaying maps

If a map contains very many features then performing such operations as displaying themes, selecting features and some others, can take considerable time. One of “bottlenecks” reducing the system performance is accessing GDB files which contain all data on map features.

Data caching is a usual method of increasing program performance in such situations. Caching means storing in the main memory of those data read from a disk for which the probability of repeated access is high. Well planned caching can reduce the number of disk access operations in many times, which results in considerable acceleration of a program.

In the chapter 7 “GDB properties” the caching of GDB pages was described. This kind of caching affects the efficiency of all operations with GDB noticeable, but it is not aimed especially at the support of the operations of displaying maps and selecting features. To accelerate these operation more significantly, caching of features in map layers can be used, which is described below.

It is to be emphasized that caching does not affect the results of operations and is used only to increase performance. So those users who do not experience problems with operation speed when displaying maps, can skip following text up to the next chapter.

Caching inevitably results in increasing main memory consumption, and memory over-expenditure can cause slowing down the program functioning instead of expected acceleration. To provide the user with a possibility to make more flexible decisions, feature caching is set not for the map in whole, but for map layers. It is advisable to switch caching on, in the first turn, for layers containing not so many features which are intensively selected or used as arguments in spatial filter conditions (see chapter 35 “Using spatial properties of features in filters”). Among such layers particularly often are work layers of themes (see chapter 14 “Cataloged themes”, subsection “Work layers of a theme”).

For every layer of a map one of two feature caching modes (or both modes) can be set.

The greatest degree of acceleration can be achieved by combined using both modes, but in this case the greatest amount of the main memory will be occupied.

If the cache buffer of the layer's features is created, its use continues till working session with ObjectLand is over. The system does not provide for a possibility of early releasing the buffer. In the case when another theme is opened which include a layer for which the buffer is already created, the features in the buffer will be used whether the caching is on or off for this theme. However, if the dynamic caching mode is off, then adding features into buffer will not be performed.

previoustopnext