<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri",sans-serif;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><table class=MsoNormalTable border=0 cellspacing=3 cellpadding=0><tr><td style='background:#E6E6CC;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal align=center style='text-align:center'><b><span style='font-size:7.5pt;font-family:"Arial",sans-serif;color:black'>QUERY PLAN<o:p></o:p></span></b></p></td></tr><tr><td nowrap style='background:#F3F3E9;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'>Limit (cost=27753.88..27753.89 rows=1 width=819)<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#E6E6CC;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> -> Sort (cost=27753.88..27753.89 rows=1 width=819)<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#F3F3E9;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> Sort Key: photo."photoDirId", photo.foto_nr<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#E6E6CC;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> -> Nested Loop Semi Join (cost=23473.88..27753.87 rows=1 width=819)<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#F3F3E9;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> Join Filter: (photo.id = public."photoMetadata"."photoId")<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#E6E6CC;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> -> Index Scan using photos_geometry_idx on photo (cost=0.00..5.88 rows=1 width=819)<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#F3F3E9;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> Index Cond: (geometry && '0101000020E6100000AE5F961B7606124045AE449F38F64940'::geometry)<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#E6E6CC;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> Filter: (forsale AND _st_intersects(geometry, '0101000020E6100000AE5F961B7606124045AE449F38F64940'::geometry))<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#F3F3E9;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> -> Hash Join (cost=23473.88..27735.64 rows=988 width=12)<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#E6E6CC;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> Hash Cond: (public."photoMetadata"."photoId" = public."photoMetadata"."photoId")<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#F3F3E9;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> -> Nested Loop (cost=4655.84..8910.14 rows=1977 width=8)<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#E6E6CC;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> -> HashAggregate (cost=4655.84..4657.29 rows=145 width=4)<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#F3F3E9;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> -> Bitmap Heap Scan on "photoMetadata" (cost=423.06..4650.91 rows=1975 width=4)<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#E6E6CC;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> Recheck Cond: (((value)::integer >= 1866) AND ((value)::integer <= 1981) AND ((key)::text = 'year'::text))<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#F3F3E9;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> -> Bitmap Index Scan on "photoMetadataYear_idx" (cost=0.00..422.57 rows=1975 width=0)<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#E6E6CC;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> Index Cond: (((value)::integer >= 1866) AND ((value)::integer <= 1981))<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#F3F3E9;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> -> Index Scan using "idx_photoId" on "photoMetadata" (cost=0.00..29.14 rows=14 width=4)<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#E6E6CC;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> Index Cond: (public."photoMetadata"."photoId" = public."photoMetadata"."photoId")<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#F3F3E9;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> -> Hash (cost=18806.70..18806.70 rows=907 width=4)<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#E6E6CC;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> -> HashAggregate (cost=18788.56..18797.63 rows=907 width=4)<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#F3F3E9;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> -> Bitmap Heap Scan on "photoMetadata" (cost=305.07..18757.68 rows=12352 width=4)<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#E6E6CC;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> Recheck Cond: (((key)::text = 'bron'::text) AND ((value)::text = 'KADASTER'::text))<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#F3F3E9;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> -> Bitmap Index Scan on "photoMetadataKeyValueIndex" (cost=0.00..301.98 rows=12352 width=0)<o:p></o:p></span></p></td></tr><tr><td nowrap style='background:#E6E6CC;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:black'> Index Cond: (((key)::text = 'bron'::text) AND ((value)::text = 'KADASTER'::text))<o:p></o:p></span></p></td></tr></table><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span style='color:black'>What does this tell you?<o:p></o:p></span></p></div></body></html>