On 8/29/2014 10:44 PM, Patrick Dung
wrote:
my query, of course, summarized tardies per calendar year for all students, in (student,year) order. it probably doesn't take much longer to do that then it does to query for a single student, hah! As long as you want all years, you're going to be reading all partitions, so I'm not sure what you're trying to optimize. if you need to do that query for specific students a lot and it is too slow (test its performance), then you could create a materialized table of of all students,years, tardies, and periodically update it. you can query rows this materialized view quite fast and efficiently given the right indexes.. -- john r pierce 37N 122W somewhere on the middle of the left coast |