CB Lite 2.x Inner Join: Better performace joinin on docId or property?

I’m trying to evaluate performance of an inner join between documents of a CB Lite 2.x db. Which is the better choice for joining documents?

  1. DocA has a property with DocB id
  2. DocA has a property with the value of an equivalent property of DocB
  3. DocA has a property with the value of an equivalent property of DocB and that property of DocB is indexed

Any help appreciated.
Paolo

1 is the usual way to do this, and will be fast.
3 should be about the same speed as 1. Potentially faster if the property value is a lot shorter than the docID (e.g. an integer.)
2 will be very slow (O(n).)

Thanks @jens, I’ll give a try to 1 vs 3.

I’d personally do for this one as I trust this one better.