CodingMySQL GROUP BY headspafe

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  Matt  
 To:  Ben (BENLUMLEY)     
30962.11 In reply to 30962.9 

I was under the impression that the query optimiser rather than scan the query to know how to eliminate the unrequired modifiers, it simply reorgansied the query internally so it was more efficient in how it opened and closed tables and read from keys and such like.

 

After all without running the query multiple times it wouldn't know if the modifiers made a difference or not to the results would it?

doohicky

0/0
 Reply   Quote More 

 From:  Ben (BENLUMLEY)  
 To:  Matt     
30962.12 In reply to 30962.11 

i don't really know what it does and doesn't do ... just that it uses clevers to recognise queries that can be better performed differently, without actually trying the different versions.

 

I was under the impression that it did things like notice that one of the items in a group by is a unique index, so would ignore the rest?

 

No idea how i got this idea though, so its most probably wrong.

0/0
 Reply   Quote More 

Reply to All    
 

1–12

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats