Skip to content

Instantly share code, notes, and snippets.

@dsandip
Last active November 30, 2018 17:25
Show Gist options
  • Save dsandip/a5581c9a70d57c78862a3208ee8c8a6c to your computer and use it in GitHub Desktop.
Save dsandip/a5581c9a70d57c78862a3208ee8c8a6c to your computer and use it in GitHub Desktop.
Aggregate (cost=2439653.08..2439653.09 rows=1 width=32)
-> Nested Loop Left Join (cost=1132840.87..2439653.05 rows=2 width=126)
-> Nested Loop (cost=0.98..173973.19 rows=2 width=98)
-> Index Scan using "Study_StudyInstanceUID_key" on "Study" (cost=0.42..8.44 rows=1 width=4)
Index Cond: (("StudyInstanceUID")::numeric = 1.2::numeric)
-> Index Scan using "Series_SeriesInstanceUID_study_id_key" on "Series" (cost=0.56..173964.69 rows=7 width=102)
Index Cond: (study_id = "Study".id)
Filter: (("SeriesNumber" < 54) AND (("Modality")::text = 'something'::text) AND ((("SeriesDescription")::text ~~* '%somethingElse%'::text) OR (("SeriesDescription")::text ~~* '%XYZ%'::text) OR (("SeriesDescription")::text ~~* '%somethingElseV2%'::text)))
-> Aggregate (cost=1132839.90..1132839.91 rows=1 width=32)
-> Nested Loop Left Join (cost=1066271.29..1132839.88 rows=1 width=32)
-> Seq Scan on "MrSeries" (cost=0.00..66568.56 rows=1 width=4)
Filter: ("Series".id = series_id)
-> Aggregate (cost=1066271.29..1066271.30 rows=1 width=32)
-> Seq Scan on "MrVolume" (cost=0.00..1066263.50 rows=519 width=24)
Filter: ("MrSeries".id = mr_series_id)
SubPlan 3
-> Result (cost=0.00..0.01 rows=1 width=32)
SubPlan 2
-> Result (cost=0.00..0.01 rows=1 width=32)
SubPlan 1
-> Result (cost=0.00..0.01 rows=1 width=32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment