Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Optimizing Mapping..

Status
Not open for further replies.

vrs1008

Programmer
Sep 16, 2003
62
US
Hi ,

Loop in X12 transaction repeats for (0:200) times but in my transaction it is required for 2 time.

Out of 2 occurrences,

1) All the elements of the first occurrence of the loop needs to be hard coded while

2) Elements for the second occurrence needs to be mapped from the Input file.

While mapping what should i do??

1) Creating functional map for the loop?
2) Generating Index for the loop for 2 times & mapped those accordingly..

Which way should be preferred for the mapping in above case?

Which way will be preferred in general repeating situation where it gets repeated for a fewer times then mentioned in the standard tree?? Why??

Where can I learn few concepts for optimizing mapping??



Regards,
Vibhav1008
 
Vibhav1008

Where the number of output repeats is known and small - 2 in your case - it is better to index the output.

There are always exceptions though!
1. When the outputs are easily generated by a functional map. In your case the 2 indexes are going to be very different (one is hard coded the other mapped) so indexing is the way to go.

2. If the group to be indexed is very long and it makes reading the map more difficult by scrolling through so much.

Performance wise it would be difficult to see a difference (my guess)

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top