I need 40000+ rows because I'm retriving historical data for long period (i.e. 1 year) and I need to concatenate and to present them in a web page.
All values are of interest, I could do some work in mysql (I'm a little bit proficient) but algorithm isn't so easy (and not so portable in mysql) and I prefer to execute this work in PC web browser (client side) instead of embedded (server side).
In any case I couldn't reduce the amount of data: I use post-process to concatenate and associate info of different tables using algorithm, not to filter rows or execute simple calculations, so at the end the number of the rows are still big (40k).