I have 50000 records in the main table.
Relationships have been maintained for several of them.
Using Java API, I want to get the list of records in the main table for which relationship has been maintained.
RetreiveRelationshipsCommand expects the RelationshipId and AnchorRecordId.
I am looking for a way to achieve the end result without going through each and every record (50000).
Helpful answers will be rewarded.