optional field

Imported from previous forum

Sorry i have looked through the docs and the forum but still am not clear on what optional is supposed to mean.

If, for example, I have non optional string copy I cache the value and in the event that the presence map has zero against this field I used the cached value.

Is there a difference for a non-optional field? Eg should I have no cache for a non optional field and set the value to zero/blank when the presence map has zero against this field.

William,

FAST supports optional fields to efficiently support optional fields at the application level. FAST allows you to express using a NULL representation if a field is present from an application perspective. This is unrelated to the physical presence or absence due to field operator optimizations.

/Rolf

Sorry i have looked through the docs and the forum but still am not
clear on what optional is supposed to mean.

If, for example, I have non optional string copy I cache the value and
in the event that the presence map has zero against this field I used
the cached value.

Is there a difference for a non-optional field? Eg should I have no
cache for a non optional field and set the value to zero/blank when the
presence map has zero against this field.

Thnaks I see. The copy and increment operators work the same way for optional and mandatory fields. If the bit is set a new value is sent and the dictionary (or cache) updated. If not set the dictionary value is used.

Only for the default operator is there a difference between optional and mandatory values.

Thnaks I see. The copy and increment operators work the same way for optional and mandatory fields. If the bit is set a new value is sent and the dictionary (or cache) updated. If not set the dictionary value is used.

Only for the default operator is there a difference between optional and mandatory values.

william, saw your free code on code project site, need some help implimenting it, great startup for you or any others, please feel free to sype me, my skype userid is:silverbuyer and my email is canadametalsauction@gmail.com

need user interface,fix,order matching, websockets for quotes