X
xlar54
Hey folks,
Im working on a project, and of course am modelling the objects with
the database later in mind. I have a question about collections and
how they should be best used. Lets take for instance, a skus
collection, containing a bunch of sku objects. If I were to display a
grid containing all the skus, would it make much sense to load all the
skus into the collection first? Im not sure how a collection would be
useful in this sense, and would actually be more memory hungry. What
I am thinking is to simply go straight from DB to grid, skipping the
object loading. But this being the case, I feel like I am completely
disregarding the purpose of the collection object.
I appreciate your thoughts. So many ways to skin a cat, but only a
few of those ways actually skin the cat *well*. (sorry to all cat
lovers)
Im working on a project, and of course am modelling the objects with
the database later in mind. I have a question about collections and
how they should be best used. Lets take for instance, a skus
collection, containing a bunch of sku objects. If I were to display a
grid containing all the skus, would it make much sense to load all the
skus into the collection first? Im not sure how a collection would be
useful in this sense, and would actually be more memory hungry. What
I am thinking is to simply go straight from DB to grid, skipping the
object loading. But this being the case, I feel like I am completely
disregarding the purpose of the collection object.
I appreciate your thoughts. So many ways to skin a cat, but only a
few of those ways actually skin the cat *well*. (sorry to all cat
lovers)
