Hypothetically I have two collections.
users (document type)and
relations (edge type)
Relations collection has two attributes {user1, user2} and is indexed combined.
My following query is extremely slow:
FOR r in relations filter (r.user1 == 'xyz' && r.user2 == 'abc') || (r.user1 == 'abc' && r.user2 == 'xyz')
RETURN r
With 800 users and 5000 relationship it takes 35 seconds.