Click here to Skip to main content
15,893,368 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionEntity Framework : Which method has better performance ? Pin
dilkonika13-Feb-15 10:57
dilkonika13-Feb-15 10:57 
AnswerRe: Entity Framework : Which method has better performance ? Pin
Eddy Vluggen13-Feb-15 11:58
professionalEddy Vluggen13-Feb-15 11:58 
GeneralRe: Entity Framework : Which method has better performance ? Pin
dilkonika13-Feb-15 13:13
dilkonika13-Feb-15 13:13 
GeneralRe: Entity Framework : Which method has better performance ? Pin
Dave Kreskowiak13-Feb-15 15:57
mveDave Kreskowiak13-Feb-15 15:57 
GeneralRe: Entity Framework : Which method has better performance ? Pin
dilkonika13-Feb-15 18:15
dilkonika13-Feb-15 18:15 
GeneralRe: Entity Framework : Which method has better performance ? Pin
Dave Kreskowiak14-Feb-15 2:27
mveDave Kreskowiak14-Feb-15 2:27 
GeneralRe: Entity Framework : Which method has better performance ? Pin
dilkonika14-Feb-15 4:56
dilkonika14-Feb-15 4:56 
GeneralRe: Entity Framework : Which method has better performance ? Pin
Dave Kreskowiak14-Feb-15 8:12
mveDave Kreskowiak14-Feb-15 8:12 
The more Includes you put in, the more data has to be returned from the server.

If you have related tables, such as a one-to-many, in the result, the database will return the "one" record for every related child record that comes back. That's standard behavior for the database engine.

EF will only re-hydrate the parent record into an object once, but will have to re-hydrate each child record, for every Include you put in the query. The more Includes, the more work EF has to do. I would have thought that would be an obvious performance hit.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

GeneralRe: Entity Framework : Which method has better performance ? Pin
dilkonika14-Feb-15 9:46
dilkonika14-Feb-15 9:46 
GeneralRe: Entity Framework : Which method has better performance ? Pin
Dave Kreskowiak14-Feb-15 9:48
mveDave Kreskowiak14-Feb-15 9:48 
GeneralRe: Entity Framework : Which method has better performance ? Pin
dilkonika15-Feb-15 15:09
dilkonika15-Feb-15 15:09 
GeneralRe: Entity Framework : Which method has better performance ? Pin
Dave Kreskowiak15-Feb-15 16:21
mveDave Kreskowiak15-Feb-15 16:21 
Questionsteganography Pin
Member 1142179312-Feb-15 9:57
Member 1142179312-Feb-15 9:57 
AnswerRe: steganography Pin
Richard MacCutchan12-Feb-15 22:38
mveRichard MacCutchan12-Feb-15 22:38 
AnswerRe: steganography Pin
GuyThiebaut12-Feb-15 22:49
professionalGuyThiebaut12-Feb-15 22:49 
QuestionHow do I recognize a wrong password ? Pin
Member 1144766212-Feb-15 5:48
Member 1144766212-Feb-15 5:48 
AnswerRe: How do I recognize a wrong password ? Pin
Dave Kreskowiak12-Feb-15 5:53
mveDave Kreskowiak12-Feb-15 5:53 
GeneralRe: How do I recognize a wrong password ? Pin
Member 1144766212-Feb-15 7:41
Member 1144766212-Feb-15 7:41 
GeneralRe: How do I recognize a wrong password ? Pin
Dave Kreskowiak12-Feb-15 8:18
mveDave Kreskowiak12-Feb-15 8:18 
QuestionHow do I play a song within a program ? Pin
Member 1144766212-Feb-15 4:27
Member 1144766212-Feb-15 4:27 
AnswerRe: How do I play a song within a program ? Pin
Dave Kreskowiak12-Feb-15 5:12
mveDave Kreskowiak12-Feb-15 5:12 
GeneralRe: How do I play a song within a program ? Pin
AccessDeveloper12-Feb-15 5:22
AccessDeveloper12-Feb-15 5:22 
QuestionHow do I run a song on vb ? Pin
Member 1144766212-Feb-15 4:25
Member 1144766212-Feb-15 4:25 
AnswerRe: How do I run a song on vb ? Pin
Dave Kreskowiak12-Feb-15 5:11
mveDave Kreskowiak12-Feb-15 5:11 
GeneralRe: How do I run a song on vb ? Pin
Member 1144766212-Feb-15 5:15
Member 1144766212-Feb-15 5:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.