Ver Mensaje Individual
  #8 (permalink)  
Antiguo 15/09/2010, 09:34
seronellas
 
Fecha de Ingreso: septiembre-2010
Mensajes: 8
Antigüedad: 13 años, 7 meses
Puntos: 0
Respuesta: optimizar consulta con 2 tablas mysql

He hecho la modificacion en rojo y al ejecutar un EXPLAIN me sale esto:

Código:
id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
1	PRIMARY	stock	ALL	NULL	NULL	NULL	NULL	8229	Using where
2	DEPENDENT SUBQUERY	new_log	ref	fecha_alta,operacion,id_sucursal_destino	id_sucursal_destino	4	smovilsur_db.stock.id_sucursal	800	Using where; Using temporary
Lo que no he probado aun es lo de FORCE INDEX...