Skip to content

Instantly share code, notes, and snippets.

@dsandip
Last active November 30, 2018 17:25
Show Gist options
  • Save dsandip/120cec3c0c01af4cf51349c3d3c7dc22 to your computer and use it in GitHub Desktop.
Save dsandip/120cec3c0c01af4cf51349c3d3c7dc22 to your computer and use it in GitHub Desktop.
Aggregate (cost=174088.70..174088.71 rows=1 width=32)
-> Nested Loop Left Join (cost=58.68..174088.66 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=57.70..57.71 rows=1 width=32)
-> Nested Loop Left Join (cost=49.64..57.69 rows=1 width=32)
-> Index Scan using "MrSeries_series_id_idx" on "MrSeries" (cost=0.43..8.45 rows=1 width=4)
Index Cond: ("Series".id = series_id)
-> Aggregate (cost=49.21..49.22 rows=1 width=32)
-> Index Scan using "MrVolume_mr_series_id_idx" on "MrVolume" (cost=0.44..41.47 rows=516 width=24)
Index Cond: ("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