On the FME roadshow someone mentioned there was a way to remove attributes on the reader to improve performance. Unchecking attributes on the feature reader properties User Attributes just seems to hide them but reads these attributes anyway - eg. hidden attributes still appear in Data Inspector. See attached.
It is working for me...although the attributes are still available in the DI, they are no longer available in WB to manipulate, see also the table view in de DI.
The distinction between exposed (design-time) attributes and run-time attributes is a pretty common one. Unfortunately, unchecking attributes in the reader will only un-expose the attributes, i.e. they will no longer be visible when designing the workspace. But as you've seen, they're still being read when you execute the workspace.
If you have a lot of attributes on a reader it can slow the design of the workbench down, as each time you connect or disconnect something it has to re-validate the whole workspace, and for those cases it's true that disabling (un-exposing) unwanted attributes can help FME Workbench get more responsive when building your workspace. But it won't help the execution time, unfortunately.
It seems it's not possible to avoid reading all the attributes (short of using a SQLCreator or similar), FME is pretty insistent on reading them all, even if you've manually deleted them from the reader feature type.
You can of course remove unwanted attributes just after the reader (AttributeRemover, AttributeKeeper, BulkAttributeRemover), although it's not exactly the same.
The distinction between exposed (design-time) attributes and run-time attributes is a pretty common one. Unfortunately, unchecking attributes in the reader will only un-expose the attributes, i.e. they will no longer be visible when designing the workspace. But as you've seen, they're still being read when you execute the workspace.
If you have a lot of attributes on a reader it can slow the design of the workbench down, as each time you connect or disconnect something it has to re-validate the whole workspace, and for those cases it's true that disabling (un-exposing) unwanted attributes can help FME Workbench get more responsive when building your workspace. But it won't help the execution time, unfortunately.
It seems it's not possible to avoid reading all the attributes (short of using a SQLCreator or similar), FME is pretty insistent on reading them all, even if you've manually deleted them from the reader feature type.
You can of course remove unwanted attributes just after the reader (AttributeRemover, AttributeKeeper, BulkAttributeRemover), although it's not exactly the same.
Anybody from Safe would like to clarify the matter? @daleatsafe, @KenAtSafe
Anybody from Safe would like to clarify the matter? @daleatsafe, @KenAtSafe
The functionality has been introduced in FME 2017.0 for some formats, not for all formats. The Attributes to Read options appear on the User Attributes tab in the reader feature type if the reader supports the functionality. e.g. [CSV reader feature type in FME 2017.0]
The functionality has been introduced in FME 2017.0 for some formats, not for all formats. The Attributes to Read options appear on the User Attributes tab in the reader feature type if the reader supports the functionality. e.g. [CSV reader feature type in FME 2017.0]
If you are using an older version of FME (pre 2017) you can edit the Reader feature type after changing this setting:
After that you can remove the attributes from the Reader feature type.
This will speed up the reading for some formats (I tried it on ESRI GDB).
If you are using an older version of FME (pre 2017) you can edit the Reader feature type after changing this setting:
After that you can remove the attributes from the Reader feature type.
This will speed up the reading for some formats (I tried it on ESRI GDB).
The functionality has been introduced in FME 2017.0 for some formats, not for all formats. The Attributes to Read options appear on the User Attributes tab in the reader feature type if the reader supports the functionality. e.g. [CSV reader feature type in FME 2017.0]
has been asking question about on adding the WHERE and SELECT options to the reader?
one day we will able to query all data types...
(a recurrent dream of mine)
I think that not exposing attributes effectively acts as an AttrributeRemover. I tested reading an FGDB layer and not exposing all the attributes. I then used AttributeCreator to create an Attribute with the same name as one of the non-exposed attributes. An inspection of the output shows that the created attribute has not picked up the values in the read but not exposed attribute of the same name.