Clone operations very slow when using Linq and changing underlying BO

Clone operations very slow when using Linq and changing underlying BO

Old forum URL: forums.lhotka.net/forums/t/8527.aspx


Vinodonly posted on Sunday, February 14, 2010

i moved to csla version 3.8.2 with the hope that i will get solution for this problem but it remains the same..

issue is that Clone operations are very slow when using Linq and changing underlying BO..

I have a req where i have to clone objects for processing.. But whenever i'm performing the clone operations alongwith linq then full process is very slow..

I did this to have better performance i.e. instead of loading same objects from db, i thought to use clone but surprisngly result is much slower.. can anbody help in this..

 

bniemyjski replied on Monday, February 15, 2010

Hello,

Can you post a snippet of code that will reproduce this issue. How much longer does it take when linq is involved compared to the non linq method?

Thanks

-Blake Niemyjski

 

ajj3085 replied on Monday, February 15, 2010

It might be that you're results are triggering Linq to Csla.   Do you have any indexes on your BOs?  You might have to not use Linq to get around this. 

Copyright (c) Marimer LLC