By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
1000 rows affected
100000 rows affected
user_id | aggr_date | running_total |
---|---|---|
991 | 2014-12-18 | 879 |
992 | 2014-12-31 | 463 |
993 | 2014-11-25 | 204 |
994 | 2014-12-28 | 173 |
995 | 2014-11-22 | 639 |
996 | 2014-12-25 | 458 |
997 | 2014-12-26 | 848 |
998 | 2014-12-25 | 594 |
999 | 2015-01-05 | 443 |
1000 | 2015-01-06 | 247 |
user_id | aggr_date | running_total |
---|---|---|
991 | 2014-12-18 | 879 |
992 | 2014-12-31 | 463 |
993 | 2014-11-25 | 204 |
994 | 2014-12-28 | 173 |
995 | 2014-11-22 | 639 |
996 | 2014-12-25 | 458 |
997 | 2014-12-26 | 848 |
998 | 2014-12-25 | 594 |
999 | 2015-01-05 | 443 |
1000 | 2015-01-06 | 247 |
user_id | aggr_date | running_total |
---|---|---|
991 | 2014-12-18 | 879 |
992 | 2014-12-31 | 463 |
993 | 2014-11-25 | 204 |
994 | 2014-12-28 | 173 |
995 | 2014-11-22 | 639 |
996 | 2014-12-25 | 458 |
997 | 2014-12-26 | 848 |
998 | 2014-12-25 | 594 |
999 | 2015-01-05 | 443 |
1000 | 2015-01-06 | 247 |
user_id | aggr_date | running_total |
---|---|---|
991 | 2014-12-18 | 879 |
992 | 2014-12-31 | 463 |
993 | 2014-11-25 | 204 |
994 | 2014-12-28 | 173 |
995 | 2014-11-22 | 639 |
996 | 2014-12-25 | 458 |
997 | 2014-12-26 | 848 |
998 | 2014-12-25 | 594 |
999 | 2015-01-05 | 443 |
1000 | 2015-01-06 | 247 |