Click here to Skip to main content
15,912,400 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak20-Feb-15 17:54
mveDave Kreskowiak20-Feb-15 17:54 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 5:27
dilkonika21-Feb-15 5:27 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak21-Feb-15 7:35
mveDave Kreskowiak21-Feb-15 7:35 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 7:53
dilkonika21-Feb-15 7:53 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak21-Feb-15 8:01
mveDave Kreskowiak21-Feb-15 8:01 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 8:05
dilkonika21-Feb-15 8:05 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak21-Feb-15 12:59
mveDave Kreskowiak21-Feb-15 12:59 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 14:32
dilkonika21-Feb-15 14:32 
Quote:
You have a choice. You can either

1) The slow way. Do the calculation in your property getter where you have to wait for EF to re-hydrate all the related child objects into memory and then your getter code applies its filter and does the calculation.

Or

2) You drop the property getter code and move the filtering to the query and let the database filter the child objects and do the math for you. Something the database engine was designed to do very well.

The choice is up to you.


Yes but you call the first way as "slow way" an not the second. Why the second is slow ?
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak21-Feb-15 15:38
mveDave Kreskowiak21-Feb-15 15:38 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 16:00
dilkonika21-Feb-15 16:00 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak21-Feb-15 16:44
mveDave Kreskowiak21-Feb-15 16:44 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 16:52
dilkonika21-Feb-15 16:52 
GeneralRe: Why this query produce wrong results ? Pin
dilkonika21-Feb-15 17:28
dilkonika21-Feb-15 17:28 
GeneralRe: Why this query produce wrong results ? Pin
Dave Kreskowiak22-Feb-15 3:36
mveDave Kreskowiak22-Feb-15 3:36 
QuestionHow do I display different group boxes, according to radio button selected ? Pin
Member 1144766219-Feb-15 7:30
Member 1144766219-Feb-15 7:30 
AnswerRe: How do I display different group boxes, according to radio button selected ? Pin
Wendelius19-Feb-15 7:40
mentorWendelius19-Feb-15 7:40 
GeneralRe: How do I display different group boxes, according to radio button selected ? Pin
Member 1144766219-Feb-15 7:41
Member 1144766219-Feb-15 7:41 
GeneralRe: How do I display different group boxes, according to radio button selected ? Pin
Wendelius19-Feb-15 7:56
mentorWendelius19-Feb-15 7:56 
QuestionVB dropdown list that will enable another after a selection is made with a private sub Pin
Bluewolf3119-Feb-15 2:34
Bluewolf3119-Feb-15 2:34 
AnswerRe: VB dropdown list that will enable another after a selection is made with a private sub Pin
Eddy Vluggen19-Feb-15 5:57
professionalEddy Vluggen19-Feb-15 5:57 
GeneralRe: VB dropdown list that will enable another after a selection is made with a private sub Pin
Bluewolf3119-Feb-15 7:56
Bluewolf3119-Feb-15 7:56 
GeneralRe: VB dropdown list that will enable another after a selection is made with a private sub Pin
Bluewolf3119-Feb-15 8:20
Bluewolf3119-Feb-15 8:20 
GeneralRe: VB dropdown list that will enable another after a selection is made with a private sub Pin
Eddy Vluggen19-Feb-15 8:39
professionalEddy Vluggen19-Feb-15 8:39 
QuestionData entry in sequential file in vb6 Pin
Preeti197918-Feb-15 22:28
Preeti197918-Feb-15 22:28 
AnswerRe: Data entry in sequential file in vb6 Pin
den2k8818-Feb-15 22:35
professionalden2k8818-Feb-15 22:35 

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.