Not sure where to get this info out to the subsonic crew as they took down their forums, and said use stackoverflow, so here we go.
我在努力与一个管理事务办公室取得最大的业绩。 我爱的亚慢性及其大体插入、更新、删除“实体框架”这一背景,但简单明了,“EF”用5x更快的性能从水中分出来。
I ve stripped both down, removed change tracking, foreign properties, navigational properties, everything down to poco.
EF executes a simple select of 1M rows in about 4.8, SubSonic Linq is taking 5x that...
looking at SQL profiler the call is slightly different:
Entity Framework: SELECT TOP (1000000)
[c].[Id] AS [Id],
[c].[ProjectIDL] AS [ProjectIDL],
[c].[DescriptorIDL] AS [DescriptorIDL],
[c].[FieldIDL] AS [FieldIDL],
[c].[Data] AS [Data],
[c].[OptionId] AS [OptionId]
FROM [dbo].[DescriptorFieldValues] AS [c]
SubSonic:SELECT TOP (1000000) [t0].[Data], [t0].[DescriptorIDL], [t0].[FieldIDL], [t0].[Id], [t0].[OptionId], [t0].[ProjectIDL]
FROM [dbo].[DescriptorFieldValues] AS t0
SQL profiler is running a trace and showing a massive duration difference here.
I checked the audit login before both queries and they are identical...
If I run the same query in sql management studio it takes 11 seconds for both queries
看看老的3.04来源,我无法指出,如果我会作出调整,使之与欧洲经济体系相匹配,但这里的争 que是否真地使这一大事变得如此大,或者在我不知道的情况下,是否有某种魔力?
Thanks for your help!