explain.depesz.com

PostgreSQL's explain analyze made readable

Result: tAMD

Settings
# exclusive inclusive rows x rows loops node
1. 0.004 535.556 ↑ 1.0 40 1

Limit (cost=66,159,480.89..66,159,480.99 rows=40 width=40) (actual time=535.551..535.556 rows=40 loops=1)

2. 2.053 535.552 ↑ 1,566.3 40 1

Sort (cost=66,159,480.89..66,159,637.52 rows=62,651 width=40) (actual time=535.550..535.552 rows=40 loops=1)

  • Sort Key: t2268_accountdim.c8860_name
  • Sort Method: top-N heapsort Memory: 30kB
3. 2.526 533.499 ↑ 14.2 4,404 1

Nested Loop (cost=1,731,262.73..66,157,500.51 rows=62,651 width=40) (actual time=90.194..533.499 rows=4,404 loops=1)

4. 1.490 513.357 ↑ 9.9 4,404 1

Merge Anti Join (cost=1,731,262.31..65,938,503.79 rows=43,687 width=4) (actual time=90.167..513.357 rows=4,404 loops=1)

  • Merge Cond: (t1401_accountfact.sid = t2273_meetingactivityaccountfact.c9010_accountid)
5. 70.952 412.353 ↑ 7.2 6,257 1

Index Scan using idx_933_t1401_accountfact_sid_end_stamp_start_stamp_null on t1401_accountfact (cost=0.42..64,206,826.97 rows=45,175 width=4) (actual time=0.392..412.353 rows=6,257 loops=1)

  • Index Cond: ((end_stamp > '1593173652000'::bigint) AND (start_stamp <= '1593173652000'::bigint))
  • Filter: ((NOT deleted) AND ((alternatives: SubPlan 5 or hashed SubPlan 10) OR (alternatives: SubPlan 15 or hashed SubPlan 20) OR (alternatives: SubPlan 25 or hashed SubPlan 30)))
  • Rows Removed by Filter: 53,335
6.          

SubPlan (for Index Scan)

7. 0.000 215.640 ↓ 0.0 0 35,940

Subquery Scan on emailsentsubquery (cost=0.56..259,655.25 rows=1,118 width=0) (actual time=0.006..0.006 rows=0 loops=35,940)

8. 0.000 215.640 ↓ 0.0 0 35,940

Unique (cost=0.56..259,644.07 rows=1,118 width=4) (actual time=0.006..0.006 rows=0 loops=35,940)

9. 215.300 215.640 ↓ 0.0 0 35,940

Index Scan using idx_2185_t2608_emailactivityaccountfact_copy_sentha_c9638_accou on t2608_emailactivityaccountfact_copy_sentha (cost=0.56..259,644.07 rows=3,136 width=4) (actual time=0.006..0.006 rows=0 loops=35,940)

  • Index Cond: ((c9638_accountid = t1401_accountfact.sid) AND (end_stamp > '1593172558000'::bigint) AND (start_stamp <= '1593172558000'::bigint))
  • Filter: ((NOT deleted) AND c9660_isinternalinitiated AND c9657_isshared AND (c9653_activitydate >= '1561532400000'::bigint) AND (c9653_activitydate < '1593241200000'::bigint) AND ((alternatives: SubPlan 1 or hashed SubPlan 2) OR (alternatives: SubPlan 3 or hashed SubPlan 4)))
  • Rows Removed by Filter: 5
10.          

SubPlan (for Index Scan)

11. 0.000 0.000 ↓ 0.0 0

Hash Join (cost=8.32..15.78 rows=1 width=0) (never executed)

  • Hash Cond: (t859_userroledim.sid = t786_userrolehierarchy.c4812_user_role_id)
12. 0.000 0.000 ↓ 0.0 0

Seq Scan on t859_userroledim (cost=0.00..7.35 rows=29 width=4) (never executed)

  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND ((c4994_portaltype IS NULL) OR (c4994_portaltype = 'None'::text)) AND (end_stamp = '32503680000000'::bigint))
13. 0.000 0.000 ↓ 0.0 0

Hash (cost=8.30..8.30 rows=1 width=4) (never executed)

14. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_37_t786_userrolehierarchy_sid_c4815_ancestor_role_id_end_st on t786_userrolehierarchy (cost=0.28..8.30 rows=1 width=4) (never executed)

  • Index Cond: ((sid = t2608_emailactivityaccountfact_copy_sentha.c9662_activityownersfuserid) AND (c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
15. 0.087 0.281 ↓ 1.5 359 1

Hash Join (cost=23.72..97.23 rows=246 width=4) (actual time=0.101..0.281 rows=359 loops=1)

  • Hash Cond: (t786_userrolehierarchy_1.c4812_user_role_id = t859_userroledim_1.sid)
16. 0.112 0.146 ↑ 1.0 359 1

Bitmap Heap Scan on t786_userrolehierarchy t786_userrolehierarchy_1 (cost=16.01..88.47 rows=364 width=8) (actual time=0.046..0.146 rows=359 loops=1)

  • Recheck Cond: ((c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
  • Heap Blocks: exact=62
17. 0.034 0.034 ↑ 1.0 359 1

Bitmap Index Scan on idx_35_t786_userrolehierarchy_c4815_ancestor_role_id_end_stamp_ (cost=0.00..15.92 rows=364 width=0) (actual time=0.034..0.034 rows=359 loops=1)

  • Index Cond: ((c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
18. 0.011 0.048 ↓ 1.5 44 1

Hash (cost=7.35..7.35 rows=29 width=4) (actual time=0.048..0.048 rows=44 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 10kB
19. 0.037 0.037 ↓ 1.5 44 1

Seq Scan on t859_userroledim t859_userroledim_1 (cost=0.00..7.35 rows=29 width=4) (actual time=0.003..0.037 rows=44 loops=1)

  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND ((c4994_portaltype IS NULL) OR (c4994_portaltype = 'None'::text)) AND (end_stamp = '32503680000000'::bigint))
  • Rows Removed by Filter: 84
20. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_14_t773_userdim_sid_end_stamp_start_stamp_null on t773_userdim (cost=0.28..8.30 rows=1 width=0) (never executed)

  • Index Cond: ((sid = t2608_emailactivityaccountfact_copy_sentha.c9662_activityownersfuserid) AND (end_stamp = '32503680000000'::bigint))
  • Filter: ((NOT deleted) AND (c4570_userroleid IS NULL) AND (sid <> '-2'::integer) AND (c4581_usertype = 'Standard'::text))
21. 0.043 0.059 ↑ 2.5 27 1

Bitmap Heap Scan on t773_userdim t773_userdim_1 (cost=4.98..53.05 rows=68 width=4) (actual time=0.030..0.059 rows=27 loops=1)

  • Recheck Cond: ((c4570_userroleid IS NULL) AND (end_stamp = '32503680000000'::bigint))
  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND (c4581_usertype = 'Standard'::text))
  • Rows Removed by Filter: 9
  • Heap Blocks: exact=23
22. 0.016 0.016 ↑ 1.9 36 1

Bitmap Index Scan on idx_15_t773_userdim_c4570_userroleid_end_stamp_start_stamp_null (cost=0.00..4.97 rows=69 width=0) (actual time=0.016..0.016 rows=36 loops=1)

  • Index Cond: ((c4570_userroleid IS NULL) AND (end_stamp = '32503680000000'::bigint))
23. 0.000 0.000 ↓ 0.0 0

Unique (cost=144,107,974.43..144,126,913.07 rows=1,208 width=4) (never executed)

24. 0.000 0.000 ↓ 0.0 0

Sort (cost=144,107,974.43..144,117,443.75 rows=3,787,729 width=4) (never executed)

  • Sort Key: t2608_emailactivityaccountfact_copy_sentha_1.c9638_accountid
25. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_isinternal_sentha1 on t2608_emailactivityaccountfact_copy_sentha t2608_emailactivityaccountfact_copy_sentha_1 (cost=0.56..143,590,538.08 rows=3,787,729 width=4) (never executed)

  • Index Cond: ((c9660_isinternalinitiated = true) AND (end_stamp > '1593172558000'::bigint) AND (start_stamp <= '1593172558000'::bigint))
  • Filter: (c9660_isinternalinitiated AND (c9653_activitydate >= '1561532400000'::bigint) AND (c9653_activitydate < '1593241200000'::bigint) AND ((alternatives: SubPlan 6 or hashed SubPlan 7) OR (alternatives: SubPlan 8 or hashed SubPlan 9)))
26.          

SubPlan (for Index Scan)

27. 0.000 0.000 ↓ 0.0 0

Hash Join (cost=8.32..15.78 rows=1 width=0) (never executed)

  • Hash Cond: (t859_userroledim_2.sid = t786_userrolehierarchy_2.c4812_user_role_id)
28. 0.000 0.000 ↓ 0.0 0

Seq Scan on t859_userroledim t859_userroledim_2 (cost=0.00..7.35 rows=29 width=4) (never executed)

  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND ((c4994_portaltype IS NULL) OR (c4994_portaltype = 'None'::text)) AND (end_stamp = '32503680000000'::bigint))
29. 0.000 0.000 ↓ 0.0 0

Hash (cost=8.30..8.30 rows=1 width=4) (never executed)

30. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_37_t786_userrolehierarchy_sid_c4815_ancestor_role_id_end_st on t786_userrolehierarchy t786_userrolehierarchy_2 (cost=0.28..8.30 rows=1 width=4) (never executed)

  • Index Cond: ((sid = t2608_emailactivityaccountfact_copy_sentha_1.c9662_activityownersfuserid) AND (c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
31. 0.000 0.000 ↓ 0.0 0

Hash Join (cost=23.72..97.23 rows=246 width=4) (never executed)

  • Hash Cond: (t786_userrolehierarchy_3.c4812_user_role_id = t859_userroledim_3.sid)
32. 0.000 0.000 ↓ 0.0 0

Bitmap Heap Scan on t786_userrolehierarchy t786_userrolehierarchy_3 (cost=16.01..88.47 rows=364 width=8) (never executed)

  • Recheck Cond: ((c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
33. 0.000 0.000 ↓ 0.0 0

Bitmap Index Scan on idx_35_t786_userrolehierarchy_c4815_ancestor_role_id_end_stamp_ (cost=0.00..15.92 rows=364 width=0) (never executed)

  • Index Cond: ((c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
34. 0.000 0.000 ↓ 0.0 0

Hash (cost=7.35..7.35 rows=29 width=4) (never executed)

35. 0.000 0.000 ↓ 0.0 0

Seq Scan on t859_userroledim t859_userroledim_3 (cost=0.00..7.35 rows=29 width=4) (never executed)

  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND ((c4994_portaltype IS NULL) OR (c4994_portaltype = 'None'::text)) AND (end_stamp = '32503680000000'::bigint))
36. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_14_t773_userdim_sid_end_stamp_start_stamp_null on t773_userdim t773_userdim_2 (cost=0.28..8.30 rows=1 width=0) (never executed)

  • Index Cond: ((sid = t2608_emailactivityaccountfact_copy_sentha_1.c9662_activityownersfuserid) AND (end_stamp = '32503680000000'::bigint))
  • Filter: ((NOT deleted) AND (c4570_userroleid IS NULL) AND (sid <> '-2'::integer) AND (c4581_usertype = 'Standard'::text))
37. 0.000 0.000 ↓ 0.0 0

Bitmap Heap Scan on t773_userdim t773_userdim_3 (cost=4.98..53.05 rows=68 width=4) (never executed)

  • Recheck Cond: ((c4570_userroleid IS NULL) AND (end_stamp = '32503680000000'::bigint))
  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND (c4581_usertype = 'Standard'::text))
38. 0.000 0.000 ↓ 0.0 0

Bitmap Index Scan on idx_15_t773_userdim_c4570_userroleid_end_stamp_start_stamp_null (cost=0.00..4.97 rows=69 width=0) (never executed)

  • Index Cond: ((c4570_userroleid IS NULL) AND (end_stamp = '32503680000000'::bigint))
39. 0.000 120.408 ↓ 0.0 0 30,102

Subquery Scan on emailsentsubquery_1 (cost=0.56..259,654.37 rows=1,030 width=0) (actual time=0.004..0.004 rows=0 loops=30,102)

40. 30.102 120.408 ↓ 0.0 0 30,102

Unique (cost=0.56..259,644.07 rows=1,030 width=4) (actual time=0.004..0.004 rows=0 loops=30,102)

41. 89.979 90.306 ↓ 0.0 0 30,102

Index Scan using idx_2185_t2608_emailactivityaccountfact_copy_sentha_c9638_accou on t2608_emailactivityaccountfact_copy_sentha t2608_emailactivityaccountfact_copy_sentha_2 (cost=0.56..259,644.07 rows=2,316 width=4) (actual time=0.003..0.003 rows=0 loops=30,102)

  • Index Cond: ((c9638_accountid = t1401_accountfact.sid) AND (end_stamp > '1593172558000'::bigint) AND (start_stamp <= '1593172558000'::bigint))
  • Filter: ((NOT deleted) AND (NOT c9660_isinternalinitiated) AND c9657_isshared AND (c9653_activitydate >= '1561532400000'::bigint) AND (c9653_activitydate < '1593241200000'::bigint) AND ((alternatives: SubPlan 11 or hashed SubPlan 12) OR (alternatives: SubPlan 13 or hashed SubPlan 14)))
  • Rows Removed by Filter: 1
42.          

SubPlan (for Index Scan)

43. 0.000 0.000 ↓ 0.0 0

Hash Join (cost=8.32..15.78 rows=1 width=0) (never executed)

  • Hash Cond: (t859_userroledim_4.sid = t786_userrolehierarchy_4.c4812_user_role_id)
44. 0.000 0.000 ↓ 0.0 0

Seq Scan on t859_userroledim t859_userroledim_4 (cost=0.00..7.35 rows=29 width=4) (never executed)

  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND ((c4994_portaltype IS NULL) OR (c4994_portaltype = 'None'::text)) AND (end_stamp = '32503680000000'::bigint))
45. 0.000 0.000 ↓ 0.0 0

Hash (cost=8.30..8.30 rows=1 width=4) (never executed)

46. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_37_t786_userrolehierarchy_sid_c4815_ancestor_role_id_end_st on t786_userrolehierarchy t786_userrolehierarchy_4 (cost=0.28..8.30 rows=1 width=4) (never executed)

  • Index Cond: ((sid = t2608_emailactivityaccountfact_copy_sentha_2.c9662_activityownersfuserid) AND (c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
47. 0.086 0.269 ↓ 1.5 359 1

Hash Join (cost=23.72..97.23 rows=246 width=4) (actual time=0.100..0.269 rows=359 loops=1)

  • Hash Cond: (t786_userrolehierarchy_5.c4812_user_role_id = t859_userroledim_5.sid)
48. 0.111 0.140 ↑ 1.0 359 1

Bitmap Heap Scan on t786_userrolehierarchy t786_userrolehierarchy_5 (cost=16.01..88.47 rows=364 width=8) (actual time=0.048..0.140 rows=359 loops=1)

  • Recheck Cond: ((c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
  • Heap Blocks: exact=62
49. 0.029 0.029 ↑ 1.0 359 1

Bitmap Index Scan on idx_35_t786_userrolehierarchy_c4815_ancestor_role_id_end_stamp_ (cost=0.00..15.92 rows=364 width=0) (actual time=0.029..0.029 rows=359 loops=1)

  • Index Cond: ((c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
50. 0.006 0.043 ↓ 1.5 44 1

Hash (cost=7.35..7.35 rows=29 width=4) (actual time=0.043..0.043 rows=44 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 10kB
51. 0.037 0.037 ↓ 1.5 44 1

Seq Scan on t859_userroledim t859_userroledim_5 (cost=0.00..7.35 rows=29 width=4) (actual time=0.004..0.037 rows=44 loops=1)

  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND ((c4994_portaltype IS NULL) OR (c4994_portaltype = 'None'::text)) AND (end_stamp = '32503680000000'::bigint))
  • Rows Removed by Filter: 84
52. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_14_t773_userdim_sid_end_stamp_start_stamp_null on t773_userdim t773_userdim_4 (cost=0.28..8.30 rows=1 width=0) (never executed)

  • Index Cond: ((sid = t2608_emailactivityaccountfact_copy_sentha_2.c9662_activityownersfuserid) AND (end_stamp = '32503680000000'::bigint))
  • Filter: ((NOT deleted) AND (c4570_userroleid IS NULL) AND (sid <> '-2'::integer) AND (c4581_usertype = 'Standard'::text))
53. 0.037 0.058 ↑ 2.5 27 1

Bitmap Heap Scan on t773_userdim t773_userdim_5 (cost=4.98..53.05 rows=68 width=4) (actual time=0.030..0.058 rows=27 loops=1)

  • Recheck Cond: ((c4570_userroleid IS NULL) AND (end_stamp = '32503680000000'::bigint))
  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND (c4581_usertype = 'Standard'::text))
  • Rows Removed by Filter: 9
  • Heap Blocks: exact=23
54. 0.021 0.021 ↑ 1.9 36 1

Bitmap Index Scan on idx_15_t773_userdim_c4570_userroleid_end_stamp_start_stamp_null (cost=0.00..4.97 rows=69 width=0) (actual time=0.021..0.021 rows=36 loops=1)

  • Index Cond: ((c4570_userroleid IS NULL) AND (end_stamp = '32503680000000'::bigint))
55. 0.000 0.000 ↓ 0.0 0

Unique (cost=106,778,929.94..106,792,916.61 rows=1,208 width=4) (never executed)

56. 0.000 0.000 ↓ 0.0 0

Sort (cost=106,778,929.94..106,785,923.28 rows=2,797,335 width=4) (never executed)

  • Sort Key: t2608_emailactivityaccountfact_copy_sentha_3.c9638_accountid
57. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_isinternal_sentha1 on t2608_emailactivityaccountfact_copy_sentha t2608_emailactivityaccountfact_copy_sentha_3 (cost=0.56..106,402,900.60 rows=2,797,335 width=4) (never executed)

  • Index Cond: ((c9660_isinternalinitiated = false) AND (end_stamp > '1593172558000'::bigint) AND (start_stamp <= '1593172558000'::bigint))
  • Filter: ((NOT c9660_isinternalinitiated) AND (c9653_activitydate >= '1561532400000'::bigint) AND (c9653_activitydate < '1593241200000'::bigint) AND ((alternatives: SubPlan 16 or hashed SubPlan 17) OR (alternatives: SubPlan 18 or hashed SubPlan 19)))
58.          

SubPlan (for Index Scan)

59. 0.000 0.000 ↓ 0.0 0

Hash Join (cost=8.32..15.78 rows=1 width=0) (never executed)

  • Hash Cond: (t859_userroledim_6.sid = t786_userrolehierarchy_6.c4812_user_role_id)
60. 0.000 0.000 ↓ 0.0 0

Seq Scan on t859_userroledim t859_userroledim_6 (cost=0.00..7.35 rows=29 width=4) (never executed)

  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND ((c4994_portaltype IS NULL) OR (c4994_portaltype = 'None'::text)) AND (end_stamp = '32503680000000'::bigint))
61. 0.000 0.000 ↓ 0.0 0

Hash (cost=8.30..8.30 rows=1 width=4) (never executed)

62. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_37_t786_userrolehierarchy_sid_c4815_ancestor_role_id_end_st on t786_userrolehierarchy t786_userrolehierarchy_6 (cost=0.28..8.30 rows=1 width=4) (never executed)

  • Index Cond: ((sid = t2608_emailactivityaccountfact_copy_sentha_3.c9662_activityownersfuserid) AND (c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
63. 0.000 0.000 ↓ 0.0 0

Hash Join (cost=23.72..97.23 rows=246 width=4) (never executed)

  • Hash Cond: (t786_userrolehierarchy_7.c4812_user_role_id = t859_userroledim_7.sid)
64. 0.000 0.000 ↓ 0.0 0

Bitmap Heap Scan on t786_userrolehierarchy t786_userrolehierarchy_7 (cost=16.01..88.47 rows=364 width=8) (never executed)

  • Recheck Cond: ((c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
65. 0.000 0.000 ↓ 0.0 0

Bitmap Index Scan on idx_35_t786_userrolehierarchy_c4815_ancestor_role_id_end_stamp_ (cost=0.00..15.92 rows=364 width=0) (never executed)

  • Index Cond: ((c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
66. 0.000 0.000 ↓ 0.0 0

Hash (cost=7.35..7.35 rows=29 width=4) (never executed)

67. 0.000 0.000 ↓ 0.0 0

Seq Scan on t859_userroledim t859_userroledim_7 (cost=0.00..7.35 rows=29 width=4) (never executed)

  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND ((c4994_portaltype IS NULL) OR (c4994_portaltype = 'None'::text)) AND (end_stamp = '32503680000000'::bigint))
68. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_14_t773_userdim_sid_end_stamp_start_stamp_null on t773_userdim t773_userdim_6 (cost=0.28..8.30 rows=1 width=0) (never executed)

  • Index Cond: ((sid = t2608_emailactivityaccountfact_copy_sentha_3.c9662_activityownersfuserid) AND (end_stamp = '32503680000000'::bigint))
  • Filter: ((NOT deleted) AND (c4570_userroleid IS NULL) AND (sid <> '-2'::integer) AND (c4581_usertype = 'Standard'::text))
69. 0.000 0.000 ↓ 0.0 0

Bitmap Heap Scan on t773_userdim t773_userdim_7 (cost=4.98..53.05 rows=68 width=4) (never executed)

  • Recheck Cond: ((c4570_userroleid IS NULL) AND (end_stamp = '32503680000000'::bigint))
  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND (c4581_usertype = 'Standard'::text))
70. 0.000 0.000 ↓ 0.0 0

Bitmap Index Scan on idx_15_t773_userdim_c4570_userroleid_end_stamp_start_stamp_null (cost=0.00..4.97 rows=69 width=0) (never executed)

  • Index Cond: ((c4570_userroleid IS NULL) AND (end_stamp = '32503680000000'::bigint))
71. 0.000 0.000 ↓ 0.0 0

Subquery Scan on account_activity_count_meeting_current (cost=5.67..1,669.60 rows=3 width=0) (never executed)

72. 0.000 0.000 ↓ 0.0 0

Unique (cost=5.67..1,669.57 rows=3 width=4) (never executed)

73. 0.000 0.000 ↓ 0.0 0

Bitmap Heap Scan on t2273_meetingactivityaccountfact t2273_meetingactivityaccountfact_1 (cost=5.67..1,669.57 rows=3 width=4) (never executed)

  • Recheck Cond: ((c9010_accountid = t1401_accountfact.sid) AND (end_stamp > '1593173652000'::bigint) AND (start_stamp <= '1593173652000'::bigint))
  • Filter: ((NOT deleted) AND c8998_isshared AND (c8986_activitydate >= '1593241200000'::bigint) AND (c8986_activitydate < '1595833200000'::bigint) AND ((alternatives: SubPlan 21 or hashed SubPlan 22) OR (alternatives: SubPlan 23 or hashed SubPlan 24)))
74. 0.000 0.000 ↓ 0.0 0

Bitmap Index Scan on idx_1992_t2273_meetingactivityaccountfact_c9010_accountid_end_s (cost=0.00..5.67 rows=60 width=0) (never executed)

  • Index Cond: ((c9010_accountid = t1401_accountfact.sid) AND (end_stamp > '1593173652000'::bigint) AND (start_stamp <= '1593173652000'::bigint))
75.          

SubPlan (for Bitmap Heap Scan)

76. 0.000 0.000 ↓ 0.0 0

Hash Join (cost=8.32..15.78 rows=1 width=0) (never executed)

  • Hash Cond: (t859_userroledim_8.sid = t786_userrolehierarchy_8.c4812_user_role_id)
77. 0.000 0.000 ↓ 0.0 0

Seq Scan on t859_userroledim t859_userroledim_8 (cost=0.00..7.35 rows=29 width=4) (never executed)

  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND ((c4994_portaltype IS NULL) OR (c4994_portaltype = 'None'::text)) AND (end_stamp = '32503680000000'::bigint))
78. 0.000 0.000 ↓ 0.0 0

Hash (cost=8.30..8.30 rows=1 width=4) (never executed)

79. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_37_t786_userrolehierarchy_sid_c4815_ancestor_role_id_end_st on t786_userrolehierarchy t786_userrolehierarchy_8 (cost=0.28..8.30 rows=1 width=4) (never executed)

  • Index Cond: ((sid = t2273_meetingactivityaccountfact_1.c9004_activityownersfuserid) AND (c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
80. 0.000 0.000 ↓ 0.0 0

Hash Join (cost=23.72..97.23 rows=246 width=4) (never executed)

  • Hash Cond: (t786_userrolehierarchy_9.c4812_user_role_id = t859_userroledim_9.sid)
81. 0.000 0.000 ↓ 0.0 0

Bitmap Heap Scan on t786_userrolehierarchy t786_userrolehierarchy_9 (cost=16.01..88.47 rows=364 width=8) (never executed)

  • Recheck Cond: ((c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
82. 0.000 0.000 ↓ 0.0 0

Bitmap Index Scan on idx_35_t786_userrolehierarchy_c4815_ancestor_role_id_end_stamp_ (cost=0.00..15.92 rows=364 width=0) (never executed)

  • Index Cond: ((c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
83. 0.000 0.000 ↓ 0.0 0

Hash (cost=7.35..7.35 rows=29 width=4) (never executed)

84. 0.000 0.000 ↓ 0.0 0

Seq Scan on t859_userroledim t859_userroledim_9 (cost=0.00..7.35 rows=29 width=4) (never executed)

  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND ((c4994_portaltype IS NULL) OR (c4994_portaltype = 'None'::text)) AND (end_stamp = '32503680000000'::bigint))
85. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_14_t773_userdim_sid_end_stamp_start_stamp_null on t773_userdim t773_userdim_8 (cost=0.28..8.30 rows=1 width=0) (never executed)

  • Index Cond: ((sid = t2273_meetingactivityaccountfact_1.c9004_activityownersfuserid) AND (end_stamp = '32503680000000'::bigint))
  • Filter: ((NOT deleted) AND (c4570_userroleid IS NULL) AND (sid <> '-2'::integer) AND (c4581_usertype = 'Standard'::text))
86. 0.000 0.000 ↓ 0.0 0

Bitmap Heap Scan on t773_userdim t773_userdim_9 (cost=4.98..53.05 rows=68 width=4) (never executed)

  • Recheck Cond: ((c4570_userroleid IS NULL) AND (end_stamp = '32503680000000'::bigint))
  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND (c4581_usertype = 'Standard'::text))
87. 0.000 0.000 ↓ 0.0 0

Bitmap Index Scan on idx_15_t773_userdim_c4570_userroleid_end_stamp_start_stamp_null (cost=0.00..4.97 rows=69 width=0) (never executed)

  • Index Cond: ((c4570_userroleid IS NULL) AND (end_stamp = '32503680000000'::bigint))
88. 0.303 5.353 ↑ 3.2 519 1

Unique (cost=195,437.70..195,467.37 rows=1,660 width=4) (actual time=4.813..5.353 rows=519 loops=1)

89. 1.068 5.050 ↑ 1.3 4,596 1

Sort (cost=195,437.70..195,452.54 rows=5,935 width=4) (actual time=4.810..5.050 rows=4,596 loops=1)

  • Sort Key: t2273_meetingactivityaccountfact_2.c9010_accountid
  • Sort Method: quicksort Memory: 408kB
90. 2.799 3.982 ↑ 1.3 4,596 1

Bitmap Heap Scan on t2273_meetingactivityaccountfact t2273_meetingactivityaccountfact_2 (cost=491.86..195,065.72 rows=5,935 width=4) (actual time=1.307..3.982 rows=4,596 loops=1)

  • Recheck Cond: ((c8986_activitydate >= '1593241200000'::bigint) AND (c8986_activitydate < '1595833200000'::bigint) AND (end_stamp > '1593173652000'::bigint) AND (start_stamp <= '1593173652000'::bigint) AND c8998_isshared AND (NOT deleted))
  • Filter: ((alternatives: SubPlan 26 or hashed SubPlan 27) OR (alternatives: SubPlan 28 or hashed SubPlan 29))
  • Rows Removed by Filter: 170
  • Heap Blocks: exact=1,124
91. 0.857 0.857 ↑ 1.7 4,766 1

Bitmap Index Scan on "idx_activitydate_issharedp_del_P_sentha" (cost=0.00..490.38 rows=7,914 width=0) (actual time=0.857..0.857 rows=4,766 loops=1)

  • Index Cond: ((c8986_activitydate >= '1593241200000'::bigint) AND (c8986_activitydate < '1595833200000'::bigint) AND (end_stamp > '1593173652000'::bigint) AND (start_stamp <= '1593173652000'::bigint))
92.          

SubPlan (for Bitmap Heap Scan)

93. 0.000 0.000 ↓ 0.0 0

Hash Join (cost=8.32..15.78 rows=1 width=0) (never executed)

  • Hash Cond: (t859_userroledim_10.sid = t786_userrolehierarchy_10.c4812_user_role_id)
94. 0.000 0.000 ↓ 0.0 0

Seq Scan on t859_userroledim t859_userroledim_10 (cost=0.00..7.35 rows=29 width=4) (never executed)

  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND ((c4994_portaltype IS NULL) OR (c4994_portaltype = 'None'::text)) AND (end_stamp = '32503680000000'::bigint))
95. 0.000 0.000 ↓ 0.0 0

Hash (cost=8.30..8.30 rows=1 width=4) (never executed)

96. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_37_t786_userrolehierarchy_sid_c4815_ancestor_role_id_end_st on t786_userrolehierarchy t786_userrolehierarchy_10 (cost=0.28..8.30 rows=1 width=4) (never executed)

  • Index Cond: ((sid = t2273_meetingactivityaccountfact_2.c9004_activityownersfuserid) AND (c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
97. 0.090 0.276 ↓ 1.5 359 1

Hash Join (cost=23.72..97.23 rows=246 width=4) (actual time=0.097..0.276 rows=359 loops=1)

  • Hash Cond: (t786_userrolehierarchy_11.c4812_user_role_id = t859_userroledim_11.sid)
98. 0.110 0.142 ↑ 1.0 359 1

Bitmap Heap Scan on t786_userrolehierarchy t786_userrolehierarchy_11 (cost=16.01..88.47 rows=364 width=8) (actual time=0.045..0.142 rows=359 loops=1)

  • Recheck Cond: ((c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
  • Heap Blocks: exact=62
99. 0.032 0.032 ↑ 1.0 359 1

Bitmap Index Scan on idx_35_t786_userrolehierarchy_c4815_ancestor_role_id_end_stamp_ (cost=0.00..15.92 rows=364 width=0) (actual time=0.032..0.032 rows=359 loops=1)

  • Index Cond: ((c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
100. 0.006 0.044 ↓ 1.5 44 1

Hash (cost=7.35..7.35 rows=29 width=4) (actual time=0.044..0.044 rows=44 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 10kB
101. 0.038 0.038 ↓ 1.5 44 1

Seq Scan on t859_userroledim t859_userroledim_11 (cost=0.00..7.35 rows=29 width=4) (actual time=0.005..0.038 rows=44 loops=1)

  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND ((c4994_portaltype IS NULL) OR (c4994_portaltype = 'None'::text)) AND (end_stamp = '32503680000000'::bigint))
  • Rows Removed by Filter: 84
102. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_14_t773_userdim_sid_end_stamp_start_stamp_null on t773_userdim t773_userdim_10 (cost=0.28..8.30 rows=1 width=0) (never executed)

  • Index Cond: ((sid = t2273_meetingactivityaccountfact_2.c9004_activityownersfuserid) AND (end_stamp = '32503680000000'::bigint))
  • Filter: ((NOT deleted) AND (c4570_userroleid IS NULL) AND (sid <> '-2'::integer) AND (c4581_usertype = 'Standard'::text))
103. 0.034 0.050 ↑ 2.5 27 1

Bitmap Heap Scan on t773_userdim t773_userdim_11 (cost=4.98..53.05 rows=68 width=4) (actual time=0.024..0.050 rows=27 loops=1)

  • Recheck Cond: ((c4570_userroleid IS NULL) AND (end_stamp = '32503680000000'::bigint))
  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND (c4581_usertype = 'Standard'::text))
  • Rows Removed by Filter: 9
  • Heap Blocks: exact=23
104. 0.016 0.016 ↑ 1.9 36 1

Bitmap Index Scan on idx_15_t773_userdim_c4570_userroleid_end_stamp_start_stamp_null (cost=0.00..4.97 rows=69 width=0) (actual time=0.016..0.016 rows=36 loops=1)

  • Index Cond: ((c4570_userroleid IS NULL) AND (end_stamp = '32503680000000'::bigint))
105. 4.123 99.514 ↓ 1.1 1,861 1

Unique (cost=1,731,261.89..1,731,527.63 rows=1,710 width=4) (actual time=89.771..99.514 rows=1,861 loops=1)

106. 38.118 95.391 ↓ 1.3 67,710 1

Sort (cost=1,731,261.89..1,731,394.76 rows=53,149 width=4) (actual time=89.770..95.391 rows=67,710 loops=1)

  • Sort Key: t2273_meetingactivityaccountfact.c9010_accountid
  • Sort Method: external merge Disk: 936kB
107. 57.023 57.273 ↓ 1.3 67,811 1

Index Scan using "idx_activitydate_issharedp_del_P_sentha" on t2273_meetingactivityaccountfact (cost=0.42..1,727,090.29 rows=53,149 width=4) (actual time=0.268..57.273 rows=67,811 loops=1)

  • Index Cond: ((c8986_activitydate >= '1561532400000'::bigint) AND (c8986_activitydate < '1593241200000'::bigint) AND (end_stamp > '1593173652000'::bigint) AND (start_stamp <= '1593173652000'::bigint))
  • Filter: ((alternatives: SubPlan 31 or hashed SubPlan 32) OR (alternatives: SubPlan 33 or hashed SubPlan 34))
  • Rows Removed by Filter: 6,979
108.          

SubPlan (for Index Scan)

109. 0.000 0.000 ↓ 0.0 0

Hash Join (cost=8.32..15.78 rows=1 width=0) (never executed)

  • Hash Cond: (t859_userroledim_12.sid = t786_userrolehierarchy_12.c4812_user_role_id)
110. 0.000 0.000 ↓ 0.0 0

Seq Scan on t859_userroledim t859_userroledim_12 (cost=0.00..7.35 rows=29 width=4) (never executed)

  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND ((c4994_portaltype IS NULL) OR (c4994_portaltype = 'None'::text)) AND (end_stamp = '32503680000000'::bigint))
111. 0.000 0.000 ↓ 0.0 0

Hash (cost=8.30..8.30 rows=1 width=4) (never executed)

112. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_37_t786_userrolehierarchy_sid_c4815_ancestor_role_id_end_st on t786_userrolehierarchy t786_userrolehierarchy_12 (cost=0.28..8.30 rows=1 width=4) (never executed)

  • Index Cond: ((sid = t2273_meetingactivityaccountfact.c9004_activityownersfuserid) AND (c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
113. 0.069 0.193 ↓ 1.5 359 1

Hash Join (cost=23.72..97.23 rows=246 width=4) (actual time=0.073..0.193 rows=359 loops=1)

  • Hash Cond: (t786_userrolehierarchy_13.c4812_user_role_id = t859_userroledim_13.sid)
114. 0.066 0.091 ↑ 1.0 359 1

Bitmap Heap Scan on t786_userrolehierarchy t786_userrolehierarchy_13 (cost=16.01..88.47 rows=364 width=8) (actual time=0.032..0.091 rows=359 loops=1)

  • Recheck Cond: ((c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
  • Heap Blocks: exact=62
115. 0.025 0.025 ↑ 1.0 359 1

Bitmap Index Scan on idx_35_t786_userrolehierarchy_c4815_ancestor_role_id_end_stamp_ (cost=0.00..15.92 rows=364 width=0) (actual time=0.025..0.025 rows=359 loops=1)

  • Index Cond: ((c4815_ancestor_role_id = 12) AND (end_stamp = '32503680000000'::bigint))
116. 0.007 0.033 ↓ 1.5 44 1

Hash (cost=7.35..7.35 rows=29 width=4) (actual time=0.033..0.033 rows=44 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 10kB
117. 0.026 0.026 ↓ 1.5 44 1

Seq Scan on t859_userroledim t859_userroledim_13 (cost=0.00..7.35 rows=29 width=4) (actual time=0.002..0.026 rows=44 loops=1)

  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND ((c4994_portaltype IS NULL) OR (c4994_portaltype = 'None'::text)) AND (end_stamp = '32503680000000'::bigint))
  • Rows Removed by Filter: 84
118. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_14_t773_userdim_sid_end_stamp_start_stamp_null on t773_userdim t773_userdim_12 (cost=0.28..8.30 rows=1 width=0) (never executed)

  • Index Cond: ((sid = t2273_meetingactivityaccountfact.c9004_activityownersfuserid) AND (end_stamp = '32503680000000'::bigint))
  • Filter: ((NOT deleted) AND (c4570_userroleid IS NULL) AND (sid <> '-2'::integer) AND (c4581_usertype = 'Standard'::text))
119. 0.037 0.057 ↑ 2.5 27 1

Bitmap Heap Scan on t773_userdim t773_userdim_13 (cost=4.98..53.05 rows=68 width=4) (actual time=0.028..0.057 rows=27 loops=1)

  • Recheck Cond: ((c4570_userroleid IS NULL) AND (end_stamp = '32503680000000'::bigint))
  • Filter: ((NOT deleted) AND (sid <> '-2'::integer) AND (c4581_usertype = 'Standard'::text))
  • Rows Removed by Filter: 9
  • Heap Blocks: exact=23
120. 0.020 0.020 ↑ 1.9 36 1

Bitmap Index Scan on idx_15_t773_userdim_c4570_userroleid_end_stamp_start_stamp_null (cost=0.00..4.97 rows=69 width=0) (actual time=0.020..0.020 rows=36 loops=1)

  • Index Cond: ((c4570_userroleid IS NULL) AND (end_stamp = '32503680000000'::bigint))
121. 17.616 17.616 ↑ 2.0 1 4,404

Index Scan using t2268_accountdim_sidendstampunique on t2268_accountdim (cost=0.42..4.99 rows=2 width=40) (actual time=0.003..0.004 rows=1 loops=4,404)

  • Index Cond: ((sid = t1401_accountfact.sid) AND (end_stamp > '1593173652000'::bigint))
  • Filter: ((NOT deleted) AND (start_stamp <= '1593173652000'::bigint))
  • Rows Removed by Filter: 1
Planning time : 11.776 ms
Execution time : 536.987 ms