Hi, You can use rid Long.MAX_VALUE as cluster position, not so small value )) but it the only way )).
On Fri, Feb 14, 2014 at 4:10 PM, Riccardo Tasso <[email protected]>wrote: > 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. > -- Best regards, Andrey Lomakin. Orient Technologies the Company behind OrientDB -- --- 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.
