MySQL Forums
Forum List  »  Spanish

Recuperar datos alternados
Posted by: Manuel Astorga
Date: January 30, 2017 06:03AM

Estoy recuperando datos de una tabla con la siguiente consulta mediante un túnel SSH:

select valor, time from REGISTRO where loggerid = '1495' and date = '161026' and SPN = '190' limit 0, 300000;

El número de datos a recuperar es grande y el tiempo se dispara (en torno a 18 seg)

Después de recuperar los datos tengo que hacerle un tratamiento y quedarme con 1 de cada 50 datos.

¿Podría hacer esto directamente en la consulta?

Resumiendo necesito representar time vs valor, pero no necesito una frecuencia de datos tan alta, me vale con representar uno cada 50.

Options: ReplyQuote


Subject
Views
Written By
Posted
Recuperar datos alternados
715
January 30, 2017 06:03AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.