I have a very big table in MySQL which contains rows which are timestamped up to milliseconds..
I have a date column which contains dates (called date)
2011-01-13
and another column which contains the time, in hours, minutes, seconds, milliseconds.. (called time)
01:11:43.381
since I have too many records per minute, is it possible that I keep one entry per minute and delete the other entries in the same minute ? (I could keep the first entry for every minute for example)
How can I do that ? I couldn't find anything online although I searched a bit :(
Thanks a lot !
You can do what you want with
delete
and aggregation:I am not promising you that this is efficient, but it should do what you want.