Do UnTyped Lists Carry Alot of Overhead?

Posts   
 
    
MarcoP avatar
MarcoP
User
Posts: 270
Joined: 29-Sep-2004
# Posted on: 29-Aug-2006 16:21:44   

Do untyped lists carry alot of overhead? Reason I ask is that I pasted the query that LLBL generates and I get back my results (100 records) in sub-second buy when I call DataAccessAdatper.FetchTypedList(), I do not get back a result for 10 seconds. Does this sound right?

MarcoP avatar
MarcoP
User
Posts: 270
Joined: 29-Sep-2004
# Posted on: 29-Aug-2006 16:39:31   

Hmm...I changed the call to not allow duplicates and now it comes back instantly. I always though doing a distinct was more overhead...

Jessynoo avatar
Jessynoo
Support Team
Posts: 296
Joined: 19-Aug-2004
# Posted on: 29-Aug-2006 17:29:10   

Hi,

looking in the corresponding code, I could not find any reason for such a huge overhead just because of the AllowDuplicates flag.

Would you consider enabling the Trace to track the timing and post the generated queries?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 29-Aug-2006 18:02:54   

Most likely the cause is that without a DISTINCT, a LOT of data is fetched (i.e. all duplicates), which causes a lot of rows. Entities are always fetched using a DISTINCT query (or if that's not possible, filtered out on the client)

Frans Bouma | Lead developer LLBLGen Pro