explain.depesz.com

PostgreSQL's explain analyze made readable

Result: AdcY

Settings
# exclusive inclusive rows x rows loops node
1. 0.113 53,548.771 ↓ 9.6 1,093 1

Subquery Scan on base1 (cost=176,555.73..176,567.70 rows=114 width=104) (actual time=53,547.468..53,548.771 rows=1,093 loops=1)

2. 1.162 53,548.658 ↓ 9.6 1,093 1

WindowAgg (cost=176,555.73..176,566.56 rows=114 width=112) (actual time=53,547.467..53,548.658 rows=1,093 loops=1)

3. 0.759 53,547.496 ↓ 9.6 1,093 1

Sort (cost=176,555.73..176,556.02 rows=114 width=52) (actual time=53,547.408..53,547.496 rows=1,093 loops=1)

  • Sort Key: (date_part('week'::text, (sf.belongs_to)::timestamp without time zone)), (date_part('isodow'::text, (sf.belongs_to)::timestamp without time zone)), sf.belongs_to
  • Sort Method: quicksort Memory: 202kB
4. 0.489 53,546.737 ↓ 9.6 1,093 1

WindowAgg (cost=176,548.70..176,551.84 rows=114 width=52) (actual time=53,546.242..53,546.737 rows=1,093 loops=1)

5. 0.495 53,546.248 ↓ 9.6 1,093 1

Sort (cost=176,548.70..176,548.99 rows=114 width=44) (actual time=53,546.127..53,546.248 rows=1,093 loops=1)

  • Sort Key: (date_part('isodow'::text, (sf.belongs_to)::timestamp without time zone))
  • Sort Method: quicksort Memory: 134kB
6. 1,083.444 53,545.753 ↓ 9.6 1,093 1

GroupAggregate (cost=176,539.68..176,544.81 rows=114 width=44) (actual time=51,790.568..53,545.753 rows=1,093 loops=1)

  • Group Key: sf.belongs_to
7. 2,637.635 52,462.309 ↓ 46,272.9 5,275,105 1

Sort (cost=176,539.68..176,539.96 rows=114 width=28) (actual time=51,789.359..52,462.309 rows=5,275,105 loops=1)

  • Sort Key: sf.belongs_to
  • Sort Method: external merge Disk: 214648kB
8. 6,618.847 49,824.674 ↓ 46,272.9 5,275,105 1

Nested Loop Left Join (cost=328.58..176,535.78 rows=114 width=28) (actual time=528.403..49,824.674 rows=5,275,105 loops=1)

  • Filter: ((COALESCE(NULLIF(btrim(lf.value), ''::text), '1900-01-01'::text))::date <= (('now'::cstring)::date - '49 days'::interval))
  • Rows Removed by Filter: 1183
9. 1,507.643 32,653.251 ↓ 15,427.7 5,276,288 1

Hash Join (cost=328.02..175,643.99 rows=342 width=36) (actual time=528.354..32,653.251 rows=5,276,288 loops=1)

  • Hash Cond: (sf.location_id = l.id)
10. 626.515 31,142.332 ↓ 48.5 5,276,288 1

Nested Loop (cost=17.43..174,921.89 rows=108,823 width=36) (actual time=525.051..31,142.332 rows=5,276,288 loops=1)

11. 0.121 0.217 ↑ 1.9 20 1

HashAggregate (cost=17.43..17.81 rows=38 width=8) (actual time=0.109..0.217 rows=20 loops=1)

  • Group Key: department_roll_up.sales_department_id
12. 0.003 0.096 ↑ 1.0 38 1

Append (cost=0.28..17.33 rows=38 width=8) (actual time=0.044..0.096 rows=38 loops=1)

13. 0.073 0.073 ↑ 1.0 19 1

Index Scan using department_roll_up_dep_idx on department_roll_up (cost=0.28..8.48 rows=19 width=8) (actual time=0.044..0.073 rows=19 loops=1)

  • Index Cond: (department_id = 16498)
  • Filter: (deleted = 'N'::bpchar)
  • Rows Removed by Filter: 8
14. 0.020 0.020 ↑ 1.0 19 1

Index Scan using department_roll_up_dep_idx on department_roll_up department_roll_up_1 (cost=0.28..8.48 rows=19 width=8) (actual time=0.009..0.020 rows=19 loops=1)

  • Index Cond: (department_id = 16498)
  • Filter: (deleted = 'N'::bpchar)
  • Rows Removed by Filter: 8
15. 521.320 30,515.600 ↓ 60.1 263,814 20

Append (cost=0.00..4,558.85 rows=4,388 width=44) (actual time=27.876..1,525.780 rows=263,814 loops=20)

16. 0.040 0.040 ↓ 0.0 0 20

Seq Scan on sales_paf sf (cost=0.00..0.00 rows=1 width=44) (actual time=0.002..0.002 rows=0 loops=20)

  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
17. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200501_dep_id_idx on sales_paf_200501 sf_1 (cost=0.12..0.24 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
18. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200502_dep_id_idx on sales_paf_200502 sf_2 (cost=0.14..0.46 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
19. 0.040 0.040 ↓ 0.0 0 20

Index Scan using sales_paf_200503_dep_id_idx on sales_paf_200503 sf_3 (cost=0.14..0.46 rows=1 width=44) (actual time=0.002..0.002 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
20. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200504_dep_id_idx on sales_paf_200504 sf_4 (cost=0.14..0.46 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
21. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200505_dep_id_idx on sales_paf_200505 sf_5 (cost=0.14..0.46 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
22. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200506_dep_id_idx on sales_paf_200506 sf_6 (cost=0.14..0.46 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
23. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200507_dep_id_idx on sales_paf_200507 sf_7 (cost=0.14..0.28 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
24. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200508_dep_id_idx on sales_paf_200508 sf_8 (cost=0.14..0.28 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
25. 0.080 0.080 ↓ 0.0 0 20

Index Scan using sales_paf_200509_dep_id_idx on sales_paf_200509 sf_9 (cost=0.14..0.28 rows=1 width=44) (actual time=0.004..0.004 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
26. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200510_dep_id_idx on sales_paf_200510 sf_10 (cost=0.14..0.28 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
27. 0.080 0.080 ↓ 0.0 0 20

Index Scan using sales_paf_200511_dep_id_idx on sales_paf_200511 sf_11 (cost=0.14..0.28 rows=1 width=44) (actual time=0.004..0.004 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
28. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200512_dep_id_idx on sales_paf_200512 sf_12 (cost=0.14..0.28 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
29. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200601_dep_id_idx on sales_paf_200601 sf_13 (cost=0.14..0.28 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
30. 0.080 0.080 ↓ 0.0 0 20

Index Scan using sales_paf_200602_dep_id_idx on sales_paf_200602 sf_14 (cost=0.14..0.28 rows=1 width=44) (actual time=0.004..0.004 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
31. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200603_dep_id_idx on sales_paf_200603 sf_15 (cost=0.14..0.28 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
32. 0.080 0.080 ↓ 0.0 0 20

Index Scan using sales_paf_200604_dep_id_idx on sales_paf_200604 sf_16 (cost=0.14..0.28 rows=1 width=44) (actual time=0.004..0.004 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
33. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200605_dep_id_idx on sales_paf_200605 sf_17 (cost=0.14..0.28 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
34. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200606_dep_id_idx on sales_paf_200606 sf_18 (cost=0.14..0.28 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
35. 0.080 0.080 ↓ 0.0 0 20

Index Scan using sales_paf_200607_dep_id_idx on sales_paf_200607 sf_19 (cost=0.14..0.28 rows=1 width=44) (actual time=0.004..0.004 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
36. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200608_dep_id_idx on sales_paf_200608 sf_20 (cost=0.14..0.28 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
37. 0.080 0.080 ↓ 0.0 0 20

Index Scan using sales_paf_200609_dep_id_idx on sales_paf_200609 sf_21 (cost=0.14..0.28 rows=1 width=44) (actual time=0.004..0.004 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
38. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200610_dep_id_idx on sales_paf_200610 sf_22 (cost=0.14..0.28 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
39. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200611_dep_id_idx on sales_paf_200611 sf_23 (cost=0.14..0.28 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
40. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200612_dep_id_idx on sales_paf_200612 sf_24 (cost=0.14..0.28 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
41. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200701_dep_id_idx on sales_paf_200701 sf_25 (cost=0.14..0.28 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
42. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200702_dep_id_idx on sales_paf_200702 sf_26 (cost=0.14..0.28 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
43. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200703_dep_id_idx on sales_paf_200703 sf_27 (cost=0.14..0.28 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
44. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_200704_dep_id_idx on sales_paf_200704 sf_28 (cost=0.14..0.28 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
45. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_200705_belongs_to_idx on sales_paf_200705 sf_29 (cost=0.15..2.12 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
46. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200706_belongs_to_idx on sales_paf_200706 sf_30 (cost=0.28..1.79 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
47. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200707_belongs_to_idx on sales_paf_200707 sf_31 (cost=0.28..2.19 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
48. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_200708_salestype_id_idx on sales_paf_200708 sf_32 (cost=0.28..2.31 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (sales_type_id = 67925)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (department_roll_up.sales_department_id = department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
49. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_200709_salestype_id_idx on sales_paf_200709 sf_33 (cost=0.28..2.30 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (sales_type_id = 67925)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (department_roll_up.sales_department_id = department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
50. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200710_belongs_to_idx on sales_paf_200710 sf_34 (cost=0.28..1.89 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
51. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200711_belongs_to_idx on sales_paf_200711 sf_35 (cost=0.28..2.09 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
52. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200712_belongs_to_idx on sales_paf_200712 sf_36 (cost=0.28..1.78 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
53. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200801_belongs_to_idx on sales_paf_200801 sf_37 (cost=0.29..1.96 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
54. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_200802_belongs_to_idx on sales_paf_200802 sf_38 (cost=0.29..2.01 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
55. 0.080 0.080 ↓ 0.0 0 20

Index Scan using sales_paf_200803_belongs_to_idx on sales_paf_200803 sf_39 (cost=0.29..2.32 rows=1 width=44) (actual time=0.004..0.004 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
56. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200804_belongs_to_idx on sales_paf_200804 sf_40 (cost=0.29..2.03 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
57. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200805_belongs_to_idx on sales_paf_200805 sf_41 (cost=0.29..2.17 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
58. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200806_belongs_to_idx on sales_paf_200806 sf_42 (cost=0.29..2.06 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
59. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200807_belongs_to_idx on sales_paf_200807 sf_43 (cost=0.29..2.32 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
60. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200808_belongs_to_idx on sales_paf_200808 sf_44 (cost=0.29..2.32 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
61. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_200809_salestype_id_idx on sales_paf_200809 sf_45 (cost=0.28..1.93 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (sales_type_id = 67925)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (department_roll_up.sales_department_id = department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
62. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_200810_belongs_to_idx on sales_paf_200810 sf_46 (cost=0.29..2.32 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
63. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200811_belongs_to_idx on sales_paf_200811 sf_47 (cost=0.29..2.13 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
64. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200812_belongs_to_idx on sales_paf_200812 sf_48 (cost=0.29..2.08 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
65. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200901_belongs_to_idx on sales_paf_200901 sf_49 (cost=0.29..2.24 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
66. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200902_belongs_to_idx on sales_paf_200902 sf_50 (cost=0.29..2.32 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
67. 0.080 0.080 ↓ 0.0 0 20

Index Scan using sales_paf_200903_belongs_to_idx on sales_paf_200903 sf_51 (cost=0.29..2.21 rows=1 width=44) (actual time=0.004..0.004 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
68. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_200904_belongs_to_idx on sales_paf_200904 sf_52 (cost=0.29..2.21 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
69. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_200905_belongs_to_idx on sales_paf_200905 sf_53 (cost=0.29..2.16 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
70. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200906_belongs_to_idx on sales_paf_200906 sf_54 (cost=0.29..2.08 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
71. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200907_belongs_to_idx on sales_paf_200907 sf_55 (cost=0.29..2.32 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
72. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200908_belongs_to_idx on sales_paf_200908 sf_56 (cost=0.29..2.32 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
73. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200909_belongs_to_idx on sales_paf_200909 sf_57 (cost=0.29..2.15 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
74. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200910_belongs_to_idx on sales_paf_200910 sf_58 (cost=0.29..2.32 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
75. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200911_belongs_to_idx on sales_paf_200911 sf_59 (cost=0.29..2.32 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
76. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_200912_belongs_to_idx on sales_paf_200912 sf_60 (cost=0.29..2.19 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
77. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201001_belongs_to_idx on sales_paf_201001 sf_61 (cost=0.29..2.32 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
78. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201002_belongs_to_idx on sales_paf_201002 sf_62 (cost=0.29..2.18 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
79. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201003_belongs_to_idx on sales_paf_201003 sf_63 (cost=0.29..2.12 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
80. 0.080 0.080 ↓ 0.0 0 20

Index Scan using sales_paf_201004_belongs_to_idx on sales_paf_201004 sf_64 (cost=0.29..2.10 rows=1 width=44) (actual time=0.004..0.004 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
81. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201005_belongs_to_idx on sales_paf_201005 sf_65 (cost=0.29..2.32 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
82. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201006_belongs_to_idx on sales_paf_201006 sf_66 (cost=0.29..2.09 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
83. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201007_belongs_to_idx on sales_paf_201007 sf_67 (cost=0.29..2.03 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
84. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201008_belongs_to_idx on sales_paf_201008 sf_68 (cost=0.29..2.01 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
85. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201009_belongs_to_idx on sales_paf_201009 sf_69 (cost=0.29..2.04 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
86. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201010_belongs_to_idx on sales_paf_201010 sf_70 (cost=0.29..2.32 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
87. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201011_belongs_to_idx on sales_paf_201011 sf_71 (cost=0.29..2.02 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
88. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201012_belongs_to_idx on sales_paf_201012 sf_72 (cost=0.30..2.33 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
89. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201101_belongs_to_idx on sales_paf_201101 sf_73 (cost=0.30..2.26 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
90. 0.080 0.080 ↓ 0.0 0 20

Index Scan using sales_paf_201102_belongs_to_idx on sales_paf_201102 sf_74 (cost=0.30..2.33 rows=1 width=44) (actual time=0.004..0.004 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
91. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201103_belongs_to_idx on sales_paf_201103 sf_75 (cost=0.30..2.12 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
92. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201104_belongs_to_idx on sales_paf_201104 sf_76 (cost=0.30..2.01 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
93. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201105_belongs_to_idx on sales_paf_201105 sf_77 (cost=0.30..2.33 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
94. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201106_belongs_to_idx on sales_paf_201106 sf_78 (cost=0.30..2.01 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
95. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201107_belongs_to_idx on sales_paf_201107 sf_79 (cost=0.30..2.01 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
96. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201108_belongs_to_idx on sales_paf_201108 sf_80 (cost=0.30..2.33 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
97. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201109_belongs_to_idx on sales_paf_201109 sf_81 (cost=0.30..2.00 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
98. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201110_belongs_to_idx on sales_paf_201110 sf_82 (cost=0.30..1.97 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
99. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201111_belongs_to_idx on sales_paf_201111 sf_83 (cost=0.30..1.87 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
100. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201112_belongs_to_idx on sales_paf_201112 sf_84 (cost=0.30..1.86 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
101. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201201_belongs_to_idx on sales_paf_201201 sf_85 (cost=0.30..2.06 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
102. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201202_belongs_to_idx on sales_paf_201202 sf_86 (cost=0.30..2.33 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
103. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201203_belongs_to_idx on sales_paf_201203 sf_87 (cost=0.30..1.91 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
104. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201204_belongs_to_idx on sales_paf_201204 sf_88 (cost=0.30..1.91 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
105. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201205_belongs_to_idx on sales_paf_201205 sf_89 (cost=0.30..1.97 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
106. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201206_belongs_to_idx on sales_paf_201206 sf_90 (cost=0.30..2.15 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
107. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201207_belongs_to_idx on sales_paf_201207 sf_91 (cost=0.30..2.33 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
108. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201208_belongs_to_idx on sales_paf_201208 sf_92 (cost=0.30..2.13 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
109. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201209_belongs_to_idx on sales_paf_201209 sf_93 (cost=0.30..2.17 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
110. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201210_belongs_to_idx on sales_paf_201210 sf_94 (cost=0.30..2.16 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
111. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201211_belongs_to_idx on sales_paf_201211 sf_95 (cost=0.30..2.17 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
112. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201212_belongs_to_idx on sales_paf_201212 sf_96 (cost=0.30..2.18 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
113. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201301_belongs_to_idx on sales_paf_201301 sf_97 (cost=0.30..2.33 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
114. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201302_belongs_to_idx on sales_paf_201302 sf_98 (cost=0.30..2.29 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
115. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201303_belongs_to_idx on sales_paf_201303 sf_99 (cost=0.30..2.33 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
116. 0.080 0.080 ↓ 0.0 0 20

Index Scan using sales_paf_201304_belongs_to_idx on sales_paf_201304 sf_100 (cost=0.30..2.32 rows=1 width=44) (actual time=0.004..0.004 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
117. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201305_belongs_to_idx on sales_paf_201305 sf_101 (cost=0.30..2.32 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
118. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201306_belongs_to_idx on sales_paf_201306 sf_102 (cost=0.30..2.33 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
119. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201307_belongs_to_idx on sales_paf_201307 sf_103 (cost=0.42..2.45 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
120. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201308_belongs_to_idx on sales_paf_201308 sf_104 (cost=0.42..2.45 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
121. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201309_belongs_to_idx on sales_paf_201309 sf_105 (cost=0.42..2.45 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
122. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201310_belongs_to_idx on sales_paf_201310 sf_106 (cost=0.42..2.45 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
123. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201311_belongs_to_idx on sales_paf_201311 sf_107 (cost=0.42..2.45 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
124. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201312_belongs_to_idx on sales_paf_201312 sf_108 (cost=0.43..2.45 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
125. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201401_belongs_to_idx on sales_paf_201401 sf_109 (cost=0.43..2.46 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
126. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201402_belongs_to_idx on sales_paf_201402 sf_110 (cost=0.43..2.45 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
127. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201403_belongs_to_idx on sales_paf_201403 sf_111 (cost=0.43..2.46 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
128. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201404_belongs_to_idx on sales_paf_201404 sf_112 (cost=0.43..2.45 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
129. 0.160 0.160 ↓ 0.0 0 20

Index Scan using sales_paf_201405_belongs_to_idx on sales_paf_201405 sf_113 (cost=0.43..2.45 rows=1 width=44) (actual time=0.008..0.008 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
130. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201406_belongs_to_idx on sales_paf_201406 sf_114 (cost=0.43..2.46 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
131. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_201407_belongs_to_idx on sales_paf_201407 sf_115 (cost=0.43..2.45 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
132. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201408_belongs_to_idx on sales_paf_201408 sf_116 (cost=0.43..2.45 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
133. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201409_belongs_to_idx on sales_paf_201409 sf_117 (cost=0.43..2.45 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
134. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201410_belongs_to_idx on sales_paf_201410 sf_118 (cost=0.43..2.44 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
135. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201411_belongs_to_idx on sales_paf_201411 sf_119 (cost=0.43..2.46 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
136. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201412_belongs_to_idx on sales_paf_201412 sf_120 (cost=0.43..2.46 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
137. 0.160 0.160 ↓ 0.0 0 20

Index Scan using sales_paf_201501_belongs_to_idx on sales_paf_201501 sf_121 (cost=0.43..2.46 rows=1 width=44) (actual time=0.008..0.008 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
138. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201502_belongs_to_idx on sales_paf_201502 sf_122 (cost=0.43..2.45 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
139. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201503_belongs_to_idx on sales_paf_201503 sf_123 (cost=0.43..2.44 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
140. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201504_belongs_to_idx on sales_paf_201504 sf_124 (cost=0.43..2.46 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
141. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201505_belongs_to_idx on sales_paf_201505 sf_125 (cost=0.43..2.46 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
142. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201506_belongs_to_idx on sales_paf_201506 sf_126 (cost=0.43..2.46 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
143. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201507_belongs_to_idx on sales_paf_201507 sf_127 (cost=0.43..2.46 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
144. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201508_belongs_to_idx on sales_paf_201508 sf_128 (cost=0.43..2.45 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
145. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201509_belongs_to_idx on sales_paf_201509 sf_129 (cost=0.43..2.46 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
146. 0.160 0.160 ↓ 0.0 0 20

Index Scan using sales_paf_201510_belongs_to_idx on sales_paf_201510 sf_130 (cost=0.43..2.46 rows=1 width=44) (actual time=0.008..0.008 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
147. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201511_belongs_to_idx on sales_paf_201511 sf_131 (cost=0.43..2.44 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
148. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_201512_belongs_to_idx on sales_paf_201512 sf_132 (cost=0.43..2.46 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
149. 0.140 0.140 ↓ 0.0 0 20

Index Scan using sales_paf_201601_belongs_to_idx on sales_paf_201601 sf_133 (cost=0.43..2.42 rows=1 width=44) (actual time=0.007..0.007 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
150. 0.160 0.160 ↓ 0.0 0 20

Index Scan using sales_paf_201602_belongs_to_idx on sales_paf_201602 sf_134 (cost=0.43..2.46 rows=1 width=44) (actual time=0.008..0.008 rows=0 loops=20)

  • Index Cond: (belongs_to >= (('now'::cstring)::date - '3 years'::interval))
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (department_roll_up.sales_department_id = department_id))
151. 638.140 638.140 ↓ 99.6 4,082 20

Index Scan using sales_paf_201603_comb_idx on sales_paf_201603 sf_135 (cost=0.43..42.98 rows=41 width=44) (actual time=0.201..31.907 rows=4,082 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 50
152. 696.160 696.160 ↓ 96.5 5,887 20

Index Scan using sales_paf_201604_comb_idx on sales_paf_201604 sf_136 (cost=0.43..64.14 rows=61 width=44) (actual time=0.739..34.808 rows=5,887 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 152
153. 796.500 796.500 ↓ 86.4 6,221 20

Index Scan using sales_paf_201605_test_idx on sales_paf_201605 sf_137 (cost=0.43..72.96 rows=72 width=44) (actual time=1.703..39.825 rows=6,221 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 650
154. 824.680 824.680 ↓ 87.2 6,106 20

Index Scan using sales_paf_201606_comb_idx on sales_paf_201606 sf_138 (cost=0.43..72.90 rows=70 width=44) (actual time=1.972..41.234 rows=6,106 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 1004
155. 845.320 845.320 ↓ 77.8 6,457 20

Index Scan using sales_paf_201607_comb_idx on sales_paf_201607 sf_139 (cost=0.43..85.70 rows=83 width=44) (actual time=2.149..42.266 rows=6,457 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 1169
156. 740.560 740.560 ↓ 81.6 6,531 20

Index Scan using sales_paf_201608_comb_idx on sales_paf_201608 sf_140 (cost=0.43..82.82 rows=80 width=44) (actual time=1.451..37.028 rows=6,531 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 749
157. 633.400 633.400 ↓ 85.8 6,435 20

Index Scan using sales_paf_201609_comb_idx on sales_paf_201609 sf_141 (cost=0.43..77.59 rows=75 width=44) (actual time=1.173..31.670 rows=6,435 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 587
158. 697.320 697.320 ↓ 81.9 6,714 20

Index Scan using sales_paf_201610_comb_idx on sales_paf_201610 sf_142 (cost=0.43..84.26 rows=82 width=44) (actual time=1.285..34.866 rows=6,714 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 639
159. 664.840 664.840 ↓ 83.4 6,589 20

Index Scan using sales_paf_201611_comb_idx on sales_paf_201611 sf_143 (cost=0.43..81.09 rows=79 width=44) (actual time=1.288..33.242 rows=6,589 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 639
160. 643.100 643.100 ↓ 77.7 6,608 20

Index Scan using sales_paf_201612_comb_idx on sales_paf_201612 sf_144 (cost=0.43..88.60 rows=85 width=44) (actual time=1.322..32.155 rows=6,608 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 886
161. 656.600 656.600 ↓ 77.8 6,849 20

Index Scan using sales_paf_201701_comb_idx on sales_paf_201701 sf_145 (cost=0.43..89.80 rows=88 width=44) (actual time=1.800..32.830 rows=6,849 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 706
162. 608.420 608.420 ↓ 78.0 6,239 20

Index Scan using sales_paf_201702_comb_idx on sales_paf_201702 sf_146 (cost=0.43..81.45 rows=80 width=44) (actual time=1.290..30.421 rows=6,239 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 586
163. 673.740 673.740 ↓ 79.7 7,013 20

Index Scan using sales_paf_201703_comb_idx on sales_paf_201703 sf_147 (cost=0.43..87.37 rows=88 width=44) (actual time=1.344..33.687 rows=7,013 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 613
164. 714.660 714.660 ↓ 79.4 6,907 20

Index Scan using sales_paf_201704_comb_idx on sales_paf_201704 sf_148 (cost=0.43..87.82 rows=87 width=44) (actual time=1.350..35.733 rows=6,907 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 642
165. 787.140 787.140 ↓ 81.6 7,261 20

Index Scan using sales_paf_201705_comb_idx on sales_paf_201705 sf_149 (cost=0.43..90.90 rows=89 width=44) (actual time=1.490..39.357 rows=7,261 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 704
166. 751.540 751.540 ↓ 73.2 7,105 20

Index Scan using sales_paf_201706_comb_idx on sales_paf_201706 sf_150 (cost=0.43..98.53 rows=97 width=44) (actual time=1.627..37.577 rows=7,105 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 735
167. 674.120 674.120 ↓ 69.1 7,458 20

Index Scan using sales_paf_201707_comb_idx on sales_paf_201707 sf_151 (cost=0.43..109.85 rows=108 width=44) (actual time=1.136..33.706 rows=7,458 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 745
168. 779.160 779.160 ↓ 67.2 7,521 20

Index Scan using sales_paf_201708_comb_idx on sales_paf_201708 sf_152 (cost=0.43..115.09 rows=112 width=44) (actual time=1.372..38.958 rows=7,521 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 726
169. 744.320 744.320 ↓ 68.4 7,317 20

Index Scan using sales_paf_201709_comb_idx on sales_paf_201709 sf_153 (cost=0.43..110.40 rows=107 width=44) (actual time=1.402..37.216 rows=7,317 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 685
170. 774.620 774.620 ↓ 68.4 7,659 20

Index Scan using sales_paf_201710_comb_idx on sales_paf_201710 sf_154 (cost=0.43..114.93 rows=112 width=44) (actual time=0.791..38.731 rows=7,659 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 768
171. 748.020 748.020 ↓ 66.8 7,479 20

Index Scan using sales_paf_201711_comb_idx on sales_paf_201711 sf_155 (cost=0.43..114.58 rows=112 width=44) (actual time=1.609..37.401 rows=7,479 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 807
172. 782.640 782.640 ↓ 62.4 7,489 20

Index Scan using sales_paf_201712_comb_idx on sales_paf_201712 sf_156 (cost=0.43..123.01 rows=120 width=44) (actual time=1.619..39.132 rows=7,489 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 1100
173. 801.000 801.000 ↓ 68.2 7,780 20

Index Scan using sales_paf_201801_comb_idx on sales_paf_201801 sf_157 (cost=0.43..116.98 rows=114 width=44) (actual time=1.607..40.050 rows=7,780 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 826
174. 734.120 734.120 ↓ 66.3 7,099 20

Index Scan using sales_paf_201802_comb_idx on sales_paf_201802 sf_158 (cost=0.43..104.92 rows=107 width=44) (actual time=1.344..36.706 rows=7,099 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 715
175. 852.160 852.160 ↓ 66.2 7,950 20

Index Scan using sales_paf_201803_comb_idx on sales_paf_201803 sf_159 (cost=0.43..121.32 rows=120 width=44) (actual time=1.539..42.608 rows=7,950 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 795
176. 873.720 873.720 ↓ 67.0 7,775 20

Index Scan using sales_paf_201804_comb_idx on sales_paf_201804 sf_160 (cost=0.43..117.33 rows=116 width=44) (actual time=1.394..43.686 rows=7,775 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 731
177. 834.480 834.480 ↓ 61.0 8,111 20

Index Scan using sales_paf_201805_comb_idx on sales_paf_201805 sf_161 (cost=0.43..134.00 rows=133 width=44) (actual time=1.581..41.724 rows=8,111 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 725
178. 802.840 802.840 ↓ 64.1 7,879 20

Index Scan using sales_paf_201806_comb_idx on sales_paf_201806 sf_162 (cost=0.43..124.79 rows=123 width=44) (actual time=1.461..40.142 rows=7,879 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 676
179. 841.820 841.820 ↓ 68.2 8,189 20

Index Scan using sales_paf_201807_comb_idx on sales_paf_201807 sf_163 (cost=0.43..121.72 rows=120 width=44) (actual time=1.588..42.091 rows=8,189 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 743
180. 823.300 823.300 ↓ 71.5 8,366 20

Index Scan using sales_paf_201808_comb_idx on sales_paf_201808 sf_164 (cost=0.43..118.42 rows=117 width=44) (actual time=1.450..41.165 rows=8,366 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 727
181. 877.280 877.280 ↓ 67.7 8,196 20

Index Scan using sales_paf_201809_comb_idx on sales_paf_201809 sf_165 (cost=0.43..122.59 rows=121 width=44) (actual time=1.739..43.864 rows=8,196 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 811
182. 835.700 835.700 ↓ 65.3 8,548 20

Index Scan using sales_paf_201810_comb_idx on sales_paf_201810 sf_166 (cost=0.43..131.79 rows=131 width=44) (actual time=1.681..41.785 rows=8,548 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 919
183. 844.980 844.980 ↓ 60.9 8,282 20

Index Scan using sales_paf_201811_comb_idx on sales_paf_201811 sf_167 (cost=0.43..136.79 rows=136 width=44) (actual time=1.839..42.249 rows=8,282 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 976
184. 859.200 859.200 ↓ 59.8 8,252 20

Index Scan using sales_paf_201812_comb_idx on sales_paf_201812 sf_168 (cost=0.43..142.71 rows=138 width=44) (actual time=1.910..42.960 rows=8,252 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 1278
185. 1,280.680 1,280.680 ↓ 59.6 8,580 20

Index Scan using sales_paf_201901_comb_idx on sales_paf_201901 sf_169 (cost=0.56..162.59 rows=144 width=44) (actual time=2.496..64.034 rows=8,580 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 1063
186. 1,250.380 1,250.380 ↓ 57.5 7,814 20

Index Scan using sales_paf_201902_comb_idx on sales_paf_201902 sf_170 (cost=0.56..157.14 rows=136 width=44) (actual time=2.279..62.519 rows=7,814 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 989
187. 1,465.720 1,465.720 ↓ 7.0 3,065 20

Index Scan using sales_paf_201903_comb_idx on sales_paf_201903 sf_171 (cost=0.56..444.83 rows=441 width=44) (actual time=1.635..73.286 rows=3,065 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 6271
188. 121.920 121.920 ↓ 0.0 0 20

Index Scan using sales_paf_201904_comb_idx on sales_paf_201904 sf_172 (cost=0.43..58.56 rows=58 width=44) (actual time=6.096..6.096 rows=0 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 3242
189. 1.140 1.140 ↓ 0.0 0 20

Index Scan using sales_paf_201905_comb_idx on sales_paf_201905 sf_173 (cost=0.29..3.70 rows=16 width=44) (actual time=0.057..0.057 rows=0 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 31
190. 0.720 0.720 ↓ 0.0 0 20

Index Scan using sales_paf_201906_comb_idx on sales_paf_201906 sf_174 (cost=0.28..2.68 rows=5 width=44) (actual time=0.036..0.036 rows=0 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 16
191. 1.080 1.080 ↓ 0.0 0 20

Index Scan using sales_paf_201907_comb_idx on sales_paf_201907 sf_175 (cost=0.29..3.67 rows=17 width=44) (actual time=0.054..0.054 rows=0 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 31
192. 0.480 0.480 ↓ 0.0 0 20

Index Scan using sales_paf_201908_comb_idx on sales_paf_201908 sf_176 (cost=0.28..2.02 rows=5 width=44) (actual time=0.024..0.024 rows=0 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 11
193. 0.200 0.200 ↓ 0.0 0 20

Index Scan using sales_paf_201909_dep_id_idx on sales_paf_201909 sf_177 (cost=0.14..0.69 rows=1 width=44) (actual time=0.010..0.010 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
  • Rows Removed by Filter: 1
194. 0.280 0.280 ↓ 0.0 0 20

Index Scan using sales_paf_201910_dep_id_idx on sales_paf_201910 sf_178 (cost=0.14..0.80 rows=4 width=44) (actual time=0.014..0.014 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
  • Rows Removed by Filter: 6
195. 0.300 0.300 ↓ 0.0 0 20

Index Scan using sales_paf_201911_dep_id_idx on sales_paf_201911 sf_179 (cost=0.14..1.01 rows=5 width=44) (actual time=0.015..0.015 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
  • Rows Removed by Filter: 6
196. 0.260 0.260 ↓ 0.0 0 20

Index Scan using sales_paf_201912_comb_idx on sales_paf_201912 sf_180 (cost=0.15..0.49 rows=2 width=44) (actual time=0.013..0.013 rows=0 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 3
197. 0.280 0.280 ↓ 0.0 0 20

Index Scan using sales_paf_202001_comb_idx on sales_paf_202001 sf_181 (cost=0.15..0.66 rows=4 width=44) (actual time=0.014..0.014 rows=0 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
  • Rows Removed by Filter: 5
198. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_202002_comb_idx on sales_paf_202002 sf_182 (cost=0.14..0.26 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
199. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_202003_comb_idx on sales_paf_202003 sf_183 (cost=0.14..0.26 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
200. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_202004_comb_idx on sales_paf_202004 sf_184 (cost=0.14..0.26 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
201. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_202005_comb_idx on sales_paf_202005 sf_185 (cost=0.14..0.26 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
202. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_202006_comb_idx on sales_paf_202006 sf_186 (cost=0.14..0.26 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
203. 0.120 0.120 ↓ 0.0 0 20

Index Scan using sales_paf_202007_comb_idx on sales_paf_202007 sf_187 (cost=0.14..0.26 rows=1 width=44) (actual time=0.006..0.006 rows=0 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
204. 0.080 0.080 ↓ 0.0 0 20

Index Scan using sales_paf_202008_comb_idx on sales_paf_202008 sf_188 (cost=0.14..0.26 rows=1 width=44) (actual time=0.004..0.004 rows=0 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
205. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_202009_comb_idx on sales_paf_202009 sf_189 (cost=0.14..0.23 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: ((sales_type_id = 67925) AND (department_id = department_roll_up.sales_department_id) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)) AND (deleted = 'N'::bpchar))
  • Filter: (totala <> '0'::double precision)
206. 0.080 0.080 ↓ 0.0 0 20

Index Scan using sales_paf_202010_dep_id_idx on sales_paf_202010 sf_190 (cost=0.14..0.46 rows=1 width=44) (actual time=0.004..0.004 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
207. 0.100 0.100 ↓ 0.0 0 20

Index Scan using sales_paf_202011_dep_id_idx on sales_paf_202011 sf_191 (cost=0.14..0.46 rows=1 width=44) (actual time=0.005..0.005 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
208. 0.060 0.060 ↓ 0.0 0 20

Index Scan using sales_paf_202012_dep_id_idx on sales_paf_202012 sf_192 (cost=0.14..0.46 rows=1 width=44) (actual time=0.003..0.003 rows=0 loops=20)

  • Index Cond: (department_id = department_roll_up.sales_department_id)
  • Filter: ((totala <> '0'::double precision) AND (deleted = 'N'::bpchar) AND (sales_type_id = 67925) AND (belongs_to >= (('now'::cstring)::date - '3 years'::interval)))
209. 0.072 3.276 ↑ 1.2 333 1

Hash (cost=305.45..305.45 rows=412 width=8) (actual time=3.276..3.276 rows=333 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 22kB
210. 3.204 3.204 ↑ 1.2 333 1

Index Scan using i_loc_corp_id on location l (cost=0.29..305.45 rows=412 width=8) (actual time=0.030..3.204 rows=333 loops=1)

  • Index Cond: (corporation_id = 70683)
211. 10,552.576 10,552.576 ↓ 0.0 0 5,276,288

Index Scan using idx_loc_flag_del on location_flag lf (cost=0.56..2.58 rows=1 width=33) (actual time=0.002..0.002 rows=0 loops=5,276,288)

  • Index Cond: ((l.id = location_id) AND (flag_id = 336))