On 3/9/07, phirschybar <[EMAIL PROTECTED]> wrote: > > Take a look at this article: > http://www.thinkingphp.org/2007/02/24/cake-12s-set-class-eats-arrays-for-breakfast/ > > Dealing with big fat arrays in Cake can be a struggle at first but > using the Set::extract method can pull out a set of the data you need > very elegantly. See how Felix also uses array_combine to get just a > nice set of key/value pairs out a deeply nested array?
Thanks for the link. However it seems to me that the article is dealing with another issue : this Set is another method of traversing an array and getting only some values from that tree. But it still requires you to do a $users = $this->User->findAll(). My issue is that i want to avoid the creation of that tree of arrays , in order to reduce the memory footprint. > Anyways I would use extract to get the data you need from Table 1 and > then loop over the array and do your UPDATE queries on your second > table. It looks like indeed it's not possible to fetch records the way i'd like. If i get into memory limitations i'll just increase php's limit ... Cheers, Adrian Maier --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---