|
First of all, thank you for your fast answer,
Kevin :) . However I still wonder if on the search into the hashed table (stored in the RAM, as you're pointing out), it checks for fathers as many times as students are selected, or if the engine uses some kind of intelligent heuristic to avoid searching for the same father more than once. For example: students ---------------------------------------- id_student | name | id_father ---------------------------------------- 1 | James | 1 2 | Laura | 2 3 | Anthony | 1 fathers (hashed table into RAM) ---------------------------------------- id_father | name ---------------------------------------- 1 | John 2 | Michael According to how I understood the process, the engine would get the name from the student with ID 1 and would look for the name of the father with ID 1 in the hashed table. It'd do exactly the same with the student #2 and father #2. But my big doubt is about the 3rd one (Anthony). Would the engine "know" that it already had retrieved the father's name for the student 1 and would avoid searching for it into the hashed table (using some kind of internal mechanism which allows to "re-utilize" the name)? Or would it search into the hashed table again? Thanks a lot for your patience :) . Kevin Grittner wrote: negora <[email protected]> wrote: |
- [PERFORM] Internal operations when the planner makes a hash... negora
- [PERFORM] Internal operations when the planner makes a... negora
- Re: [PERFORM] Internal operations when the planner... Kevin Grittner
- Re: [PERFORM] Internal operations when the pla... negora
- Re: [PERFORM] Internal operations when the... Alvaro Herrera
- Re: [PERFORM] Internal operations whe... Scott Carey
- Re: [PERFORM] Internal operations... negora
- Re: [PERFORM] Internal operat... Kevin Grittner
- Re: [PERFORM] Internal operat... negora
- Re: [PERFORM] Internal operat... Kevin Grittner
- Re: [PERFORM] Internal operat... Igor Neyman
