| Bug #8726 | dissappering query, hanging mysql client,other oddities with MAX_JOIN_SIZE | ||
|---|---|---|---|
| Submitted: | 23 Feb 2005 12:19 | Modified: | 11 Mar 2005 0:27 | 
| Reporter: | Martin Friebe (Gold Quality Contributor) (OCA) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) | 
| Version: | 4.1.10 | OS: | Any (*) | 
| Assigned to: | Sergey Petrunya | CPU Architecture: | Any | 
   [23 Feb 2005 12:19]
   Martin Friebe        
  
 
   [23 Feb 2005 18:04]
   Jorge del Conde        
  MAX_JOIN_SIZE is the total number of rows that must be examined by the query.
   [23 Feb 2005 18:05]
   Jorge del Conde        
  From the manual: Don't allow SELECT statements that probably need to examine more than max_join_size row combinations or are likely to do more than max_join_size disk seeks. Thanks for your bug report !
   [23 Feb 2005 18:06]
   Jorge del Conde        
  I forgot to mention that the above doesn't apply to results that are coming from query cache.
   [23 Feb 2005 18:14]
   Martin Friebe        
  Thanks for the explain, thats how I would have read it, just got irritated when I discovered the above. Also in terms of using subqueries, I would read it as: The maximum amount of rows any individual subquery (correlated / derived / or individual part of a union) has to examine, as well as the total outer query/queries. Otherwise the protrection against large operations would be broken.
   [23 Feb 2005 18:41]
   Martin Friebe        
  "or are likely to do more than max_join_size disk seeks" could explain the limits not matching the row counts. leaves only the problem with the hanging client.
   [28 Feb 2005 17:15]
   Sergey Petrunya        
  Fix approved by Sergei
   [28 Feb 2005 17:48]
   Sergey Petrunya        
  Pushed into 4.1.11
   [11 Mar 2005 0:27]
   Paul DuBois        
  Noted in 4.1.11 changelog. Also added a note to the max_join_size description that it _does_ apply to single-table queries.
