Hello all,
I'm using Orientdb 2.0.10, and I'm having performance issues when I want to perform pagination on edges.
I have the following set up ( using Light weight edges, 4 clusters round robin selection per class) :
User ( userid, country )
Movie ( movieid, name )
Likes
User -- Likes ---> Movie
Query:
SELECT in("Likes").size() FROM Movie WHERE movieid=1
Result:
Query:
SELECT in("LIKES")[0-100] FROM Movie WHERE movieid=1
Returns in
Query:
SELECT in("LIKES")[2000-2100] FROM Movie WHERE movieid=1
Returns in ( wow! )Query:
SELECT in("LIKES")[1000000-1000100] FROM Movie WHERE movieid=1
Still loading... :(
Any suggestions on how to improve performance?
Eventually, I want to randomly select a subset of Users who likes a Movie per request and do some processing on them.
Thank you in advance.