.NET Linq to SQL Performance Issue with Inherited Discriminators

前端 未结 1 1184
青春惊慌失措
青春惊慌失措 2021-01-25 16:24

I\'m having a performance issue with a LINQ to SQL model that has a lot of inherited classes.

I isolated the issue and it seems to be some sort of issue with LINQ to SQL

1条回答
  •  [愿得一人]
    2021-01-25 16:39

    I can see from your code that you indent to add a new subclass per Customer. This unfortunately will not work because of an internal L2S perf problem. Sooner or later you have to give up this approach. You can also easily find out what function is causing the problem by running you app under load (hold F5) and stop the debugger a few times. Look where it stops most often.

    0 讨论(0)
提交回复
热议问题