explain.depesz.com

PostgreSQL's explain analyze made readable

Result: kyLr

Settings
# exclusive inclusive rows x rows loops node
1. 4.982 1,489.216 ↓ 11,868.0 11,868 1

Unique (cost=23,495.76..23,495.83 rows=1 width=381) (actual time=1,483.613..1,489.216 rows=11,868 loops=1)

2. 8.983 1,484.234 ↓ 11,868.0 11,868 1

Sort (cost=23,495.76..23,495.76 rows=1 width=381) (actual time=1,483.612..1,484.234 rows=11,868 loops=1)

  • Sort Key: i.incidentid, a.assetid, a.name, i.createdat, ielh.setat, ish.setat, pt.protectiontypeid, i.incidentstatusid, i.enforcementlevelid, d.domainid, d.url, dl.highrisk, (CASE WHEN (dlw.detectionlinkwatcherid IS NOT NULL) THEN true ELSE false END), l.url, les.enforcementstatusid, lesh.setat, cl.url, cles.enforcementstatusid, clesh.setat, sl.url, sles.enforcementstatusid, slesh.setat, el.url, eles.enforcementstatusid, elesh.setat, tdl.url, tdles.enforcementstatusid, tdlesh.setat
  • Sort Method: quicksort Memory: 3520kB
3. 13.472 1,475.251 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=6.09..23,495.75 rows=1 width=381) (actual time=31.366..1,475.251 rows=11,868 loops=1)

  • Filter: (((cd.customerdivisionid IS NOT NULL) AND (dcd.domainid IS NOT NULL) AND (cc.scopeid IS NOT NULL) AND (ccd.contractid IS NOT NULL)) OR (cd.customerdivisionid IS NULL))
4. 15.204 1,461.779 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=5.94..23,487.56 rows=1 width=396) (actual time=31.345..1,461.779 rows=11,868 loops=1)

  • Join Filter: ((c.contractid = ccd.contractid) AND (ccd.customerdivisionid = cd.customerdivisionid))
5. 5.391 1,446.575 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=5.79..23,479.39 rows=1 width=396) (actual time=31.323..1,446.575 rows=11,868 loops=1)

  • Join Filter: ((d.domainid = dcd.domainid) AND (dcd.customerdivisionid = cd.customerdivisionid))
6. 28.140 1,441.184 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=5.79..23,467.64 rows=1 width=392) (actual time=31.318..1,441.184 rows=11,868 loops=1)

  • Join Filter: (cd.customerid = c.customerid)
  • Filter: ((public.parseintarg(NULL::bytea) IS NULL) OR (cd.customerdivisionid = public.parseintarg(NULL::bytea)))
7. 45.600 1,413.044 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=5.66..23,458.97 rows=1 width=392) (actual time=31.297..1,413.044 rows=11,868 loops=1)

  • Filter: (((public.parsedatearg(NULL::bytea) IS NULL) OR (ish.setat >= public.parsedatearg(NULL::bytea))) AND ((public.parsedatearg(NULL::bytea) IS NULL) OR (ish.setat < public.parsedatearg(NULL::bytea))))
8. 21.409 1,343.708 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=5.23..23,440.96 rows=1 width=384) (actual time=31.264..1,343.708 rows=11,868 loops=1)

  • Join Filter: (dlw.detectionlinkid = dl.detectionlinkid)
  • Filter: ((public.parseboolarg(NULL::bytea) IS NULL) OR ((public.parseboolarg(NULL::bytea) IS TRUE) AND (dlw.detectionlinkwatcherid IS NOT NULL)) OR ((public.parseboolarg(NULL::bytea) IS FALSE) AND (dlw.detectionlinkwatcherid IS NULL)))
9. 13.055 1,310.431 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=5.23..23,439.02 rows=1 width=384) (actual time=31.250..1,310.431 rows=11,868 loops=1)

  • Join Filter: (tdlesh.enforcementstatusid = l.enforcementstatusid)
10. 34.727 1,297.376 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=4.80..23,426.06 rows=1 width=384) (actual time=31.230..1,297.376 rows=11,868 loops=1)

  • Join Filter: (tdles.enforcementstatusid = tdl.enforcementstatusid)
  • Rows Removed by Join Filter: 118091
  • Filter: (((public.buildintarray(NULL::bytea) IS NULL) OR (les.enforcementstatusid = ANY (public.buildintarray(NULL::bytea))) OR (cles.enforcementstatusid = ANY (public.buildintarray(NULL::bytea))) OR (sles.enforcementstatusid = ANY (public.buildintarray(NULL::bytea))) OR (eles.enforcementstatusid = ANY (public.buildintarray(NULL::bytea))) OR (tdles.enforcementstatusid = ANY (public.buildintarray(NULL::bytea)))) AND ((public.buildintarray(NULL::bytea) IS NULL) OR (les.enforcementstatusgroupid = ANY (public.buildintarray(NULL::bytea))) OR (cles.enforcementstatusgroupid = ANY (public.buildintarray(NULL::bytea))) OR (sles.enforcementstatusgroupid = ANY (public.buildintarray(NULL::bytea))) OR (eles.enforcementstatusgroupid = ANY (public.buildintarray(NULL::bytea))) OR (tdles.enforcementstatusgroupid = ANY (public.buildintarray(NULL::bytea)))))
11. 11.931 1,250.781 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=4.80..23,393.58 rows=1 width=400) (actual time=31.212..1,250.781 rows=11,868 loops=1)

  • Join Filter: (elesh.enforcementstatusid = l.enforcementstatusid)
12. 9.499 1,238.850 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=4.37..23,376.66 rows=1 width=396) (actual time=31.197..1,238.850 rows=11,868 loops=1)

  • Join Filter: (eles.enforcementstatusid = el.enforcementstatusid)
  • Rows Removed by Join Filter: 118680
13. 11.832 1,217.483 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=4.37..23,375.44 rows=1 width=392) (actual time=31.189..1,217.483 rows=11,868 loops=1)

  • Join Filter: (slesh.enforcementstatusid = l.enforcementstatusid)
14. 10.420 1,205.651 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=3.94..23,358.52 rows=1 width=388) (actual time=31.169..1,205.651 rows=11,868 loops=1)

  • Join Filter: (sles.enforcementstatusid = sl.enforcementstatusid)
  • Rows Removed by Join Filter: 118680
15. 13.348 1,183.363 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=3.94..23,357.29 rows=1 width=384) (actual time=31.162..1,183.363 rows=11,868 loops=1)

  • Join Filter: (clesh.enforcementstatusid = l.enforcementstatusid)
16. 7.118 1,158.147 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=3.51..23,342.40 rows=1 width=380) (actual time=31.140..1,158.147 rows=11,868 loops=1)

  • Join Filter: (cles.enforcementstatusid = cl.enforcementstatusid)
  • Rows Removed by Join Filter: 82515
17. 9.735 1,139.161 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=3.51..23,341.17 rows=1 width=376) (actual time=31.133..1,139.161 rows=11,868 loops=1)

18. 7.345 1,105.690 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=3.09..23,328.89 rows=1 width=372) (actual time=31.107..1,105.690 rows=11,868 loops=1)

  • Join Filter: (les.enforcementstatusid = l.enforcementstatusid)
  • Rows Removed by Join Filter: 59004
19. 11.095 1,086.477 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=3.09..23,327.67 rows=1 width=364) (actual time=31.097..1,086.477 rows=11,868 loops=1)

20. 11.010 1,075.382 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=2.67..23,319.71 rows=1 width=313) (actual time=31.073..1,075.382 rows=11,868 loops=1)

21. 11.773 1,064.372 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=2.25..23,308.67 rows=1 width=262) (actual time=31.062..1,064.372 rows=11,868 loops=1)

22. 49.399 1,052.599 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=1.83..23,297.63 rows=1 width=211) (actual time=31.046..1,052.599 rows=11,868 loops=1)

  • Join Filter: (cl.linkid = cler.linkid)
  • Rows Removed by Join Filter: 11868
  • Filter: (((public.parsedatearg(NULL::bytea) IS NULL) OR (dler.lastrequest >= public.parsedatearg(NULL::bytea)) OR (cler.lastrequest >= public.parsedatearg(NULL::bytea))) AND ((public.parsedatearg(NULL::bytea) IS NULL) OR (dler.lastrequest < public.parsedatearg(NULL::bytea)) OR (cler.lastrequest < public.parsedatearg(NULL::bytea))))
23. 16.527 1,003.200 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=1.83..23,295.10 rows=1 width=219) (actual time=31.032..1,003.200 rows=11,868 loops=1)

24. 10.513 974.805 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=1.42..23,287.14 rows=1 width=168) (actual time=31.012..974.805 rows=11,868 loops=1)

  • Join Filter: (l.linkid = dler.linkid)
  • Rows Removed by Join Filter: 11868
25. 53.725 964.292 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=1.42..23,286.12 rows=1 width=160) (actual time=31.004..964.292 rows=11,868 loops=1)

  • Filter: (((public.parsedatearg(NULL::bytea) IS NULL) OR (ielh.setat >= public.parsedatearg(NULL::bytea))) AND ((public.parsedatearg(NULL::bytea) IS NULL) OR (ielh.setat < public.parsedatearg(NULL::bytea))))
26. 22.305 886.831 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=0.99..23,268.19 rows=1 width=152) (actual time=30.950..886.831 rows=11,868 loops=1)

  • Join Filter: (ielg.enforcementlevelgroupid = iel.enforcementlevelgroupid)
  • Rows Removed by Join Filter: 679
  • Filter: ((public.buildintarray(NULL::bytea) IS NULL) OR (ielg.enforcementlevelgroupid = ANY (public.buildintarray(NULL::bytea))))
27. 25.159 864.526 ↓ 11,868.0 11,868 1

Nested Loop Left Join (cost=0.99..23,265.05 rows=1 width=156) (actual time=30.941..864.526 rows=11,868 loops=1)

  • Join Filter: (istatg.incidentstatusgroupid = istat.incidentstatusgroupid)
  • Rows Removed by Join Filter: 12104
  • Filter: ((public.buildintarray(NULL::bytea) IS NULL) OR (istatg.incidentstatusgroupid = ANY (public.buildintarray(NULL::bytea))))
28. 17.633 839.367 ↓ 11,868.0 11,868 1

Nested Loop (cost=0.99..23,259.24 rows=1 width=160) (actual time=30.928..839.367 rows=11,868 loops=1)

29. 10.918 797.998 ↓ 11,868.0 11,868 1

Nested Loop (cost=0.71..23,258.37 rows=1 width=142) (actual time=30.905..797.998 rows=11,868 loops=1)

  • Join Filter: (i.enforcementlevelid = iel.enforcementlevelid)
  • Rows Removed by Join Filter: 81945
30. 10.586 692.136 ↓ 11,868.0 11,868 1

Nested Loop (cost=0.71..23,251.01 rows=1 width=138) (actual time=30.885..692.136 rows=11,868 loops=1)

  • Join Filter: (i.incidentstatusid = istat.incidentstatusid)
  • Rows Removed by Join Filter: 8808
31. 7.670 657.814 ↓ 11,868.0 11,868 1

Nested Loop (cost=0.71..23,239.98 rows=1 width=134) (actual time=30.861..657.814 rows=11,868 loops=1)

  • Join Filter: (a.assetid = asp.assetid)
  • Rows Removed by Join Filter: 59567
32. 11.477 626.408 ↓ 11,868.0 11,868 1

Nested Loop (cost=0.71..23,237.05 rows=1 width=142) (actual time=30.851..626.408 rows=11,868 loops=1)

  • Join Filter: (coa.assetid = a.assetid)
  • Rows Removed by Join Filter: 2687
33. 5.437 603.063 ↓ 11,868.0 11,868 1

Nested Loop (cost=0.71..23,235.41 rows=1 width=120) (actual time=30.838..603.063 rows=11,868 loops=1)

  • Join Filter: (i.assetid = coa.assetid)
  • Rows Removed by Join Filter: 2687
34. 9.500 585.758 ↓ 11,868.0 11,868 1

Nested Loop (cost=0.71..23,233.77 rows=1 width=116) (actual time=30.829..585.758 rows=11,868 loops=1)

35. 11.981 552.522 ↓ 11,868.0 11,868 1

Nested Loop (cost=0.71..23,232.54 rows=1 width=108) (actual time=30.819..552.522 rows=11,868 loops=1)

36. 5.959 435.306 ↓ 9.9 8,095 1

Nested Loop (cost=0.29..21,444.13 rows=818 width=68) (actual time=3.101..435.306 rows=8,095 loops=1)

  • Join Filter: (dl.infringementprotectiontypeid = pt.protectiontypeid)
  • Rows Removed by Join Filter: 48570
37. 0.100 0.100 ↓ 7.0 7 1

Seq Scan on protectiontype pt (cost=0.00..4.59 rows=1 width=4) (actual time=0.069..0.100 rows=7 loops=1)

  • Filter: ((public.parseintarg(NULL::bytea) IS NULL) OR (protectiontypeid = public.parseintarg(NULL::bytea)))
38. 26.005 429.247 ↓ 1.4 8,095 7

Nested Loop (cost=0.29..21,367.98 rows=5,725 width=68) (actual time=0.539..61.321 rows=8,095 loops=7)

39. 184.114 184.114 ↑ 1.0 15,652 7

Seq Scan on link l (cost=0.00..4,214.98 rows=15,696 width=59) (actual time=0.524..26.302 rows=15,652 loops=7)

  • Filter: (customerid = 36)
  • Rows Removed by Filter: 93626
40. 219.128 219.128 ↑ 1.0 1 109,564

Index Scan using uq_detectionlink_detectionlinkid_linktypeid on detectionlink dl (cost=0.29..1.09 rows=1 width=9) (actual time=0.002..0.002 rows=1 loops=109,564)

  • Index Cond: (detectionlinkid = l.linkid)
  • Filter: ((public.parseboolarg(NULL::bytea) IS NULL) OR (highrisk = public.parseboolarg(NULL::bytea)))
41. 105.235 105.235 ↑ 1.0 1 8,095

Index Scan using idx_incident_detectionlinkid_customerid on incident i (cost=0.42..2.18 rows=1 width=44) (actual time=0.007..0.013 rows=1 loops=8,095)

  • Index Cond: ((detectionlinkid = dl.detectionlinkid) AND (customerid = 36))
  • Filter: ((NOT deleted) AND ((public.parseintarg(NULL::bytea) IS NULL) OR (assetid = public.parseintarg(NULL::bytea))) AND ((public.parsedatearg('2020-01-01'::character varying) IS NULL) OR (createdat >= public.parsedatearg('2020-01-01'::character varying))) AND ((public.parsedatearg('2020-02-02'::character varying) IS NULL) OR (createdat < public.parsedatearg('2020-02-02'::character varying))))
  • Rows Removed by Filter: 0
42. 23.736 23.736 ↑ 1.0 1 11,868

Seq Scan on contract c (cost=0.00..1.23 rows=1 width=8) (actual time=0.001..0.002 rows=1 loops=11,868)

  • Filter: (active AND (contractid = 38) AND (customerid = 36))
  • Rows Removed by Filter: 14
43. 11.868 11.868 ↑ 8.0 1 11,868

Seq Scan on contract_asset coa (cost=0.00..1.54 rows=8 width=8) (actual time=0.001..0.001 rows=1 loops=11,868)

  • Filter: (contractid = 38)
  • Rows Removed by Filter: 5
44. 11.868 11.868 ↑ 8.0 1 11,868

Seq Scan on asset a (cost=0.00..1.54 rows=8 width=22) (actual time=0.001..0.001 rows=1 loops=11,868)

  • Filter: (customerid = 36)
  • Rows Removed by Filter: 5
45. 23.736 23.736 ↑ 7.2 6 11,868

Seq Scan on asset_scope asp (cost=0.00..2.40 rows=43 width=4) (actual time=0.001..0.002 rows=6 loops=11,868)

  • Filter: (scopeid = 1)
  • Rows Removed by Filter: 6
46. 23.736 23.736 ↑ 4.0 2 11,868

Seq Scan on incidentstatus istat (cost=0.00..10.93 rows=8 width=8) (actual time=0.002..0.002 rows=2 loops=11,868)

  • Filter: ((public.buildintarray(NULL::bytea) IS NULL) OR (incidentstatusid = ANY (public.buildintarray(NULL::bytea))))
47. 94.944 94.944 ↓ 1.1 8 11,868

Seq Scan on enforcementlevel iel (cost=0.00..7.27 rows=7 width=8) (actual time=0.001..0.008 rows=8 loops=11,868)

  • Filter: ((public.buildintarray(NULL::bytea) IS NULL) OR (enforcementlevelid = ANY (public.buildintarray(NULL::bytea))))
48. 23.736 23.736 ↑ 1.0 1 11,868

Index Scan using uq_domain_domainid_domaintypeid on domain d (cost=0.28..0.82 rows=1 width=22) (actual time=0.002..0.002 rows=1 loops=11,868)

  • Index Cond: (domainid = l.domainid)
  • Filter: ((public.buildintarray(NULL::bytea) IS NULL) OR (domainid = ANY (public.buildintarray(NULL::bytea))))
49. 0.000 0.000 ↑ 4.5 2 11,868

Seq Scan on incidentstatusgroup istatg (cost=0.00..1.09 rows=9 width=4) (actual time=0.000..0.000 rows=2 loops=11,868)

50. 0.000 0.000 ↑ 4.0 1 11,868

Seq Scan on enforcementlevelgroup ielg (cost=0.00..1.04 rows=4 width=4) (actual time=0.000..0.000 rows=1 loops=11,868)

51. 22.386 23.736 ↓ 0.0 0 11,868

Index Scan using idx_incidentenforcementlevelhistory_incidentid on incidentenforcementlevelhistory ielh (cost=0.43..16.91 rows=1 width=16) (actual time=0.002..0.002 rows=0 loops=11,868)

  • Index Cond: (incidentid = i.incidentid)
  • Filter: ((enforcementlevelid = ANY ('{1,6}'::integer[])) AND (enforcementlevelid = i.enforcementlevelid) AND (setat = (SubPlan 1)))
  • Rows Removed by Filter: 1
52.          

SubPlan (for Index Scan)

53. 0.450 1.350 ↑ 1.0 1 450

Aggregate (cost=8.45..8.46 rows=1 width=8) (actual time=0.003..0.003 rows=1 loops=450)

54. 0.900 0.900 ↓ 2.0 2 450

Index Scan using idx_incidentenforcementlevelhistory_incidentid on incidentenforcementlevelhistory ielhd (cost=0.43..8.45 rows=1 width=8) (actual time=0.001..0.002 rows=2 loops=450)

  • Index Cond: (incidentid = i.incidentid)
55. 0.000 0.000 ↑ 1.0 1 11,868

Seq Scan on enforcementrequest dler (cost=0.00..1.01 rows=1 width=12) (actual time=0.000..0.000 rows=1 loops=11,868)

56. 11.868 11.868 ↑ 1.0 1 11,868

Index Scan using uq_link_linkid_linktypeid on link cl (cost=0.42..7.95 rows=1 width=55) (actual time=0.001..0.001 rows=1 loops=11,868)

  • Index Cond: ((i.contentlinkid = linkid) AND (linktypeid = 2))
  • Filter: (customerid = 36)
57. 0.000 0.000 ↑ 1.0 1 11,868

Seq Scan on enforcementrequest cler (cost=0.00..1.01 rows=1 width=12) (actual time=0.000..0.000 rows=1 loops=11,868)

58. 0.000 0.000 ↓ 0.0 0 11,868

Index Scan using uq_link_linkid_linktypeid on link sl (cost=0.42..5.73 rows=1 width=55) (actual time=0.000..0.000 rows=0 loops=11,868)

  • Index Cond: ((i.shortenerlinkid = linkid) AND (linktypeid = 3))
  • Filter: (customerid = 36)
59. 0.000 0.000 ↓ 0.0 0 11,868

Index Scan using uq_link_linkid_linktypeid on link el (cost=0.42..5.73 rows=1 width=55) (actual time=0.000..0.000 rows=0 loops=11,868)

  • Index Cond: ((i.embeddedlinkid = linkid) AND (linktypeid = 4))
  • Filter: (customerid = 36)
60. 0.000 0.000 ↓ 0.0 0 11,868

Index Scan using uq_link_linkid_linktypeid on link tdl (cost=0.42..7.95 rows=1 width=55) (actual time=0.000..0.000 rows=0 loops=11,868)

  • Index Cond: ((i.targetdetectionlinkid = linkid) AND (linktypeid = 1))
  • Filter: (customerid = 36)
61. 11.868 11.868 ↑ 1.7 6 11,868

Seq Scan on enforcementstatus les (cost=0.00..1.10 rows=10 width=8) (actual time=0.000..0.001 rows=6 loops=11,868)

62. 23.736 23.736 ↓ 0.0 0 11,868

Index Scan using idx_linkenforcementstatushistory_linkid on linkenforcementstatushistory lesh (cost=0.43..12.27 rows=1 width=16) (actual time=0.002..0.002 rows=0 loops=11,868)

  • Index Cond: (linkid = l.linkid)
  • Filter: ((enforcementstatusid = 4) AND (enforcementstatusid = l.enforcementstatusid) AND (setat = (SubPlan 2)))
  • Rows Removed by Filter: 1
63.          

SubPlan (for Index Scan)

64. 0.000 0.000 ↓ 0.0 0

Aggregate (cost=8.45..8.46 rows=1 width=8) (never executed)

65. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_linkenforcementstatushistory_linkid on linkenforcementstatushistory lesh_1 (cost=0.43..8.45 rows=1 width=8) (never executed)

  • Index Cond: (linkid = l.linkid)
66. 11.868 11.868 ↑ 1.2 8 11,868

Seq Scan on enforcementstatus cles (cost=0.00..1.10 rows=10 width=8) (actual time=0.000..0.001 rows=8 loops=11,868)

67. 11.868 11.868 ↓ 0.0 0 11,868

Index Scan using idx_linkenforcementstatushistory_linkid on linkenforcementstatushistory clesh (cost=0.43..14.88 rows=1 width=16) (actual time=0.001..0.001 rows=0 loops=11,868)

  • Index Cond: (linkid = cl.linkid)
  • Filter: ((enforcementstatusid = 4) AND (setat = (SubPlan 3)))
  • Rows Removed by Filter: 1
68.          

SubPlan (for Index Scan)

69. 0.000 0.000 ↓ 0.0 0

Aggregate (cost=8.45..8.46 rows=1 width=8) (never executed)

70. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_linkenforcementstatushistory_linkid on linkenforcementstatushistory lesh_2 (cost=0.43..8.45 rows=1 width=8) (never executed)

  • Index Cond: (linkid = cl.linkid)
71. 11.868 11.868 ↑ 1.0 10 11,868

Seq Scan on enforcementstatus sles (cost=0.00..1.10 rows=10 width=8) (actual time=0.000..0.001 rows=10 loops=11,868)

72. 0.000 0.000 ↓ 0.0 0 11,868

Index Scan using idx_linkenforcementstatushistory_linkid on linkenforcementstatushistory slesh (cost=0.43..16.91 rows=1 width=16) (actual time=0.000..0.000 rows=0 loops=11,868)

  • Index Cond: (linkid = sl.linkid)
  • Filter: ((enforcementstatusid = 4) AND (setat = (SubPlan 4)))
73.          

SubPlan (for Index Scan)

74. 0.000 0.000 ↓ 0.0 0

Aggregate (cost=8.45..8.46 rows=1 width=8) (never executed)

75. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_linkenforcementstatushistory_linkid on linkenforcementstatushistory lesh_3 (cost=0.43..8.45 rows=1 width=8) (never executed)

  • Index Cond: (linkid = sl.linkid)
76. 11.868 11.868 ↑ 1.0 10 11,868

Seq Scan on enforcementstatus eles (cost=0.00..1.10 rows=10 width=8) (actual time=0.000..0.001 rows=10 loops=11,868)

77. 0.000 0.000 ↓ 0.0 0 11,868

Index Scan using idx_linkenforcementstatushistory_linkid on linkenforcementstatushistory elesh (cost=0.43..16.91 rows=1 width=16) (actual time=0.000..0.000 rows=0 loops=11,868)

  • Index Cond: (linkid = el.linkid)
  • Filter: ((enforcementstatusid = 4) AND (setat = (SubPlan 5)))
78.          

SubPlan (for Index Scan)

79. 0.000 0.000 ↓ 0.0 0

Aggregate (cost=8.45..8.46 rows=1 width=8) (never executed)

80. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_linkenforcementstatushistory_linkid on linkenforcementstatushistory lesh_4 (cost=0.43..8.45 rows=1 width=8) (never executed)

  • Index Cond: (linkid = el.linkid)
81. 11.868 11.868 ↑ 1.0 10 11,868

Seq Scan on enforcementstatus tdles (cost=0.00..1.10 rows=10 width=8) (actual time=0.000..0.001 rows=10 loops=11,868)

82. 0.000 0.000 ↓ 0.0 0 11,868

Index Scan using idx_linkenforcementstatushistory_linkid on linkenforcementstatushistory tdlesh (cost=0.43..12.95 rows=1 width=16) (actual time=0.000..0.000 rows=0 loops=11,868)

  • Index Cond: (linkid = tdl.linkid)
  • Filter: ((enforcementstatusid = 4) AND (setat = (SubPlan 6)))
  • Rows Removed by Filter: 0
83.          

SubPlan (for Index Scan)

84. 0.000 0.000 ↓ 0.0 0

Aggregate (cost=8.45..8.46 rows=1 width=8) (never executed)

85. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_linkenforcementstatushistory_linkid on linkenforcementstatushistory lesh_5 (cost=0.43..8.45 rows=1 width=8) (never executed)

  • Index Cond: (linkid = tdl.linkid)
86. 11.868 11.868 ↓ 0.0 0 11,868

Seq Scan on detectionlinkwatcher dlw (cost=0.00..1.18 rows=1 width=8) (actual time=0.001..0.001 rows=0 loops=11,868)

  • Filter: ((createdby)::text = 'system'::text)
  • Rows Removed by Filter: 14
87. 23.736 23.736 ↓ 0.0 0 11,868

Index Scan using idx_incidentstatushistory_incidentid_setby_incidentstatusid on incidentstatushistory ish (cost=0.43..16.99 rows=1 width=12) (actual time=0.002..0.002 rows=0 loops=11,868)

  • Index Cond: ((incidentid = i.incidentid) AND (incidentstatusid = 9))
  • Filter: (setat = (SubPlan 7))
88.          

SubPlan (for Index Scan)

89. 0.000 0.000 ↓ 0.0 0

Aggregate (cost=8.49..8.50 rows=1 width=8) (never executed)

90. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_incidentstatushistory_incidentid_setby_incidentstatusid on incidentstatushistory aush (cost=0.43..8.49 rows=1 width=8) (never executed)

  • Index Cond: ((incidentid = i.incidentid) AND (incidentstatusid = 9))
91. 0.000 0.000 ↓ 0.0 0 11,868

Index Scan using uq_customerdivision_customerid_name on customerdivision cd (cost=0.14..8.16 rows=1 width=8) (actual time=0.000..0.000 rows=0 loops=11,868)

  • Index Cond: (customerid = 36)
92. 0.000 0.000 ↓ 0.0 0 11,868

Seq Scan on domain_customerdivision dcd (cost=0.00..10.70 rows=70 width=8) (actual time=0.000..0.000 rows=0 loops=11,868)

93. 0.000 0.000 ↓ 0.0 0 11,868

Index Only Scan using uq_contract_customerdivision__contract_customerdivision on contract_customerdivision ccd (cost=0.14..8.16 rows=1 width=8) (actual time=0.000..0.000 rows=0 loops=11,868)

  • Index Cond: (contractid = 38)
  • Heap Fetches: 0
94. 0.000 0.000 ↓ 0.0 0 11,868

Index Only Scan using uq_customerdivisionscope_customerdivision_scope on customerdivision_scope cc (cost=0.15..8.17 rows=1 width=8) (actual time=0.000..0.000 rows=0 loops=11,868)

  • Index Cond: ((customerdivisionid = cd.customerdivisionid) AND (scopeid = 1))
  • Heap Fetches: 0
Planning time : 37.959 ms
Execution time : 1,491.048 ms