AD
Size: a a a
AD
AD
AD
EB
AD
AD
RP
{"QUERY PLAN"=>" -> Subquery Scan on \"ANY_subquery\" (cost=6084620.71..6706695.72 rows=20226386 width=8)"},
{"QUERY PLAN"=>"-> GroupAggregate (cost=6084620.71..6504431.86 rows=20226386 width=12)"},
{"QUERY PLAN"=>" Group Key: notification_processing_rules_1.notification_id"},
{"QUERY PLAN"=>" -> Sort (cost=6084620.71..6157136.48 rows=29006305 width=12)"},
{"QUERY PLAN"=>" Sort Key: notification_processing_rules_1.notification_id"},
{"QUERY PLAN"=>" -> Seq Scan on notification_processing_rules notification_processing_rules_1 (cost=0.00..506447.05 rows=29006305 width=12)"},EB
EB
SP
SP
RP
SP
AD
{"QUERY PLAN"=>" -> Subquery Scan on \"ANY_subquery\" (cost=6084620.71..6706695.72 rows=20226386 width=8)"},
{"QUERY PLAN"=>"-> GroupAggregate (cost=6084620.71..6504431.86 rows=20226386 width=12)"},
{"QUERY PLAN"=>" Group Key: notification_processing_rules_1.notification_id"},
{"QUERY PLAN"=>" -> Sort (cost=6084620.71..6157136.48 rows=29006305 width=12)"},
{"QUERY PLAN"=>" Sort Key: notification_processing_rules_1.notification_id"},
{"QUERY PLAN"=>" -> Seq Scan on notification_processing_rules notification_processing_rules_1 (cost=0.00..506447.05 rows=29006305 width=12)"},EB
EB
EB
{"QUERY PLAN"=>" -> Subquery Scan on \"ANY_subquery\" (cost=6084620.71..6706695.72 rows=20226386 width=8)"},
{"QUERY PLAN"=>"-> GroupAggregate (cost=6084620.71..6504431.86 rows=20226386 width=12)"},
{"QUERY PLAN"=>" Group Key: notification_processing_rules_1.notification_id"},
{"QUERY PLAN"=>" -> Sort (cost=6084620.71..6157136.48 rows=29006305 width=12)"},
{"QUERY PLAN"=>" Sort Key: notification_processing_rules_1.notification_id"},
{"QUERY PLAN"=>" -> Seq Scan on notification_processing_rules notification_processing_rules_1 (cost=0.00..506447.05 rows=29006305 width=12)"},EB
RP
SELECT MAX(id) AS id
FROM notification_processing_rules
GROUP BY notification_id