Excessive overhead in EntityCollection.GetMulti call?

Posts   
 
    
Fraschetti
User
Posts: 6
Joined: 30-Apr-2010
# Posted on: 24-Mar-2011 01:08:44   

Hello,

I've done a bit of testing and have determined that in my self-service collections (they only type I use), the overhead for populating the Entities is far beyond what I would expect it to be.

Ex: I have a table with roughly 20,000 rows. The query generated by LLBLGen Pro executes and returns data to the server in roughly 200ms.

If I borrow the SQL query generated by LLGen Pro and either populate a DataTable with that data or simply walk over a reader, fetching the values via GetValues, the overhead to process the data in minimal.

If I use the actual GetMulti call to fetch the data, getting the data (and more importantly, populating the entities) takes more than a full second longer than the manual query methods.

I did not see any other threads that mentioned this issue nor did I see any properties on the collection that would allow me to disable any unnecessary logic. I can say that the table is tied to several other tables via the necessary keys but the query does not use any of that data (no prefetches have been added). I have also debugged the app to ensure that the only statement being executed is indeed the one generated by the GetMulti call.

Any thoughts/ideas?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 24-Mar-2011 04:58:14   
David Elizondo | LLBLGen Support Team