Search in a fetched entity collcetion

Posts   
 
    
Barry
User
Posts: 232
Joined: 17-Aug-2005
# Posted on: 04-Nov-2005 05:11:24   

I've an entity which has a child entity collcetion, I want to search entities base on value of some fields, the ways I'm doing is to loop all entity in collection and compare the values. Is there any smarter and faster ways to search an entity collection? Thank you very much!!!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 04-Nov-2005 10:58:10   

No, at the moment that's the only way. The solution for that would be to setup indexes when the data is fetched, which makes fetches slower. In v2.0 a query system in-memory is added to collections.

Frans Bouma | Lead developer LLBLGen Pro