Steps of Select Execution MySQL

Every select is performed in these base steps:

  • JOIN::prepare
  • Initialization and linking JOIN structure to st_select_lex.
  • fix_fields() for all items (after fix_fields(), we know everything about item).
  • Moving HAVING to WHERE if possible.
  • Initialization procedure if there is one.
  • JOIN::optimize
  • Single select optimization.
  • Creation of first temporary table if needed.
  • JOIN::exec
  • Performing select (a second temporary table may be created).
  • JOIN::cleanup
  • Removing all temporary tables, other cleanup.
  • JOIN::reinit
  • Prepare all structures for execution of SELECT (with JOIN::exec).


Face Book Twitter Google Plus Instagram Youtube Linkedin Myspace Pinterest Soundcloud Wikipedia

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

MySQL Topics