Processing R ⋈ S using a clustering index