Hi Thomas, Thanks for the answer (I didnt see it at first). I'm just testing every possible query plans for a study and I have also an accumulated buffer that can do the trick as well. Any thoughts on why the group sorted has a poorer performance? Is there a way to override the choices?
Thanks LP On 16 fév, 20:22, Thomas Mueller <thomas.tom.muel...@gmail.com> wrote: > Hi, > > Large result sets are buffered on disk (in a temporary table or temporary > file). > > What you could do is create a separate table where you keep the sum of the > value, plus the count, grouped by id. The table would need to be updated > using a trigger. That way, you don't need to read all rows every time. > > Regards, > Thomas -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to h2-database@googlegroups.com. To unsubscribe from this group, send email to h2-database+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.