Feature Caching

Sometimes it is important to inspect data at any step of the translation. Adding an Inspector transformer at every step would be tiresome, so instead FME has an option to cache data automatically.

This behavior is activated using Run > Run with Feature Caching on the menubar:

With this option active, FME generates caches at every step of the translation when the workspace runs:

The caches are indicated by small icons on each object. In the above screenshot, the caches are green, but they can change to yellow or red depending on how fresh the data is.

Run with Feature Caching is essentially the same as Run with Full Inspection in prior versions of FME. It has been renamed in FME2018 to match new functionality that takes advantage of these caches.

Inspecting Cached Features

Cached features can be inspected by simply clicking on the icon on a particular object.

Saving Caches

Caches can be saved in the workspace so work can continue later without having to re-run the entire workspace. This is done by saving the workspace as a template file, using File > Save As Template... on the menu bar:

Then when saving the template file, enable Include Feature Caches:

This way when the template workspace is opened, anyone using FME2018 can inspect the saved caches and run the workspace.

It's certainly quicker to set up "Run with Data Caching" than to manually add Inspector transformers. However, be aware that caching data naturally causes the translation to be slower, and to use system resources such as disk space.
Data caching is very useful while developing a workspace, but should be turned off before putting a workspace into production.

results matching ""

    No results matching ""