Jayvant Ilangovan

Patterns Vs Maps

Discussion created by Jayvant Ilangovan on Oct 7, 2013
Latest reply on Oct 11, 2013 by Spar

Hi Guys,

 

I have a BOM object having an array of objects, within this some of the objects again have array of objects. This goes on for two more levels.

 

I need a little help in figuring out which is the best practice performance wise.

 

1. Sending the array of objects in a collection in the BOM and then using patterns (Nested patterns).

 

2. Sending the array of objects as a Map(Key, Object) and refer them in the SRL.

 

I have worked on collections before, I need to know the pros and cons of using Maps in Blaze.

Outcomes