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.

Reply via email to