Will I get a significant win if instead of two SELECT queries I make one query combining them with UNION ?

  • "Will I get a significant win" - no, do not get - Zowie

1 answer 1

If considered in Mysql, two selects in a row will work with the same speed as with union . In terms of php, not much longer. This is due to the fact that php will twice refer to mysql.