Best Practice: Number/Limitation of Child Objects?

Best Practice: Number/Limitation of Child Objects?

Old forum URL: forums.lhotka.net/forums/t/7409.aspx


reagan123 posted on Wednesday, August 05, 2009

I'm just curious to see how many child objects some of your objects have.  I'm curious to see if most have 1 or 2 or if people have very large object graphs with multiple children.

Right now we have one object that has 6 child objects.  Is that weird or do others have something similar?

Any insight greatly appreciated!

Thanks

JonnyBee replied on Thursday, August 06, 2009

Hi,

We have a large app with a very large root object (customer) and several child lists. And some of the lists are lazy loaded.

You should focus on the UseCase and what data is required for that specific case. Sometimes you may need a large object graph but my aim is always to keep the object graph as small as possible (and more maintainable).

/jonnybee

Copyright (c) Marimer LLC