c# - Telerik DataAccess (OpenAccess) nullable foreign key performance -


we looking people use telerik dataaccess orm. recently, encountered big performance issue nullable foreign key.

when assign value nullable int foreign key property (without savechanges) - telerik makes several calls database , strange work. used dottrace , found there lot of sql datareader calls , strange string/datetime/enum/... converters. issue appears when set value property, working ok.

a little bit our environment. tried create empty console app. same strange code invoked, faster in local environment - ~60ms small entity , local db. big entity ~ 1.5 sec, but in our production server uses azure sql db - 10 50 second.

remark: tried load , set object directly, without using foreign key, not help.

public class entity {     public int? parentid { get; set; } // wee see issue when set value parentid or parent property. savechanges not called.      public parent parent { get; set; } } 

here can find dottrace call stack.

finally, solved issue. want warn uses ismanaged configuration. every time when set parentid or parent entity, children specified parentid loaded memory. if lazy-load enabled.

telerik agree behavior can optimized, don't want make changes because of backward compatibility.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -