As far as the second question is concerned, if you know the points of the
user (es: 123), you can try:
select count(*) as rank from user where points > 123
The rank will be 0-based.
In BaasBox:
var points=Box.Documents.find("User",{
where:"username='jane'"
})[0]["points"];
var rank=Box.Documents.find("User",{
where:"points > " + points,
fields:"count(*) as rank"
})[0]["rank"];
--
---
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/d/optout.