Hi, I have a question regarding pagination.
I have the following query:
String query = "SELECT FROM AClass WHERE @rid >= :rid LIMIT 10";
For the first call the client doesn't pass me any parameter so I have the
following code
if(not(params.contains("rid")))
params.add("rid", new ORecordId(0, 0));
db.query(q, params)
For the following calls the client passes me the last @rid found and
everything goes well.
Now I have a similar query, but in descending order:
String query = "SELECT FROM AnotherClass WHERE @rid <= :rid ORDER BY @rid
DESC LIMIT 10";
What kind of rid can I pass as parameter to my query, such that it can't
exists any @rid greater than it? Can I solve my problem in other ways?
Cheers,
Riccardo
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.