I have a collection of 100,000 records structured like this:
<record>
<pk>1</pk>
<id>1234</id>
</record>
<record>
<pk>2</pk>
<id>1234</id>
</record>
<record>
<pk>3</pk>
<id>5678</id>
</record>
<record>
<pk>4</pk>
<id>5678</id>
</record>
I have setup a range index on id.
I want to write a query in XQuery that will allow me to pass in a variable length sequence or map of id's and get back out all the records with those id's.
It needs to be such that I can pass in any number of id's. Also, it needs to take advantage of the range index (as in fast).