title: Django queries with cursor slow
body: <p>I have a problem with some queries that are taking 15 seconds onwards (it is a lot) with cursor in Djando (without using orm because it takes even more) and directly in mysql it takes 4 or 5 seconds, which I think I can be affecting</p>
  
  <pre><code>cursor = connection.cursor()
  cursor.execute("select m.ub ,m.eq , MONTH(m.fecha) as fecha,
  AVG(m.cantidad) as cantidad , e.contt from mytable as m 
  left join table2 as e on e.id = m.equipo_id where m.equipo_id = %s and m.udm = 8 and 
  YEAR(m.fecha) = %s  GROUP BY MONTH(m.fecha)",[eq,anio])
  </code></pre>