cancel
Showing results for 
Search instead for 
Did you mean: 

What does the attribute ordered in the tag targetelement does?

Former Member
0 Kudos

There is an attribute ordered in targetelement tag in items.xml that takes only boolean values. https://wiki.hybris.com/display/release4/items.xml+Element+Reference#type_relationElementType says:

If 'true' an additional ordering attribute will be generated for maintaining ordering. Default is 'false'.

What exactly is being ordered here?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The target items which are related to the source item are being ordered. So when you do

 source.getTargets()

A list of target items will be returned which are ordered according to the way they were added to the source (or where the ordering was modified via the hMC).

Former Member
0 Kudos

Note this adds a performance overhead, so be sure to use it only when ordering is actually required.

Former Member
0 Kudos

A very good point, particularly for syncs. FYI for the original poster:

https://wiki.hybris.com/display/release5/Performance+Tuning+Overview#PerformanceTuningOverview-Disab...

Answers (0)