• Michael Widenius's avatar
    Fixes lp:941889 "JOIN constructors takes a long time in 5.3" · 8e825a22
    Michael Widenius authored
    - Remove all references of MAX_TABLES from JOIN struct and make these dynamic
    - Updated Join_plan_state to allocate just as many elements as it's needed
    
    
    sql/opt_subselect.cc:
      Optimized version of Join_plan_state
    sql/sql_select.cc:
      Set join->positions and join->best_positions dynamicly
      Don't call update_virtual_fields() if table->vfield is not set.
    sql/sql_select.h:
      Remove all references of MAX_TABLES from JOIN struct and Join_plan_state and make these dynamic
    8e825a22
sql_select.h 57.6 KB