Hi,

could it depend on multiple clusters per class? How many clusters does your
"industry" class have?

I tried in Studio the query

SELECT FROM OUser ORDER BY @rid DESC

and it worked fine...

Thanks

Luigi

2016-06-08 18:20 GMT+02:00 hartmut bischoff <topofo...@gmail.com>:

> Hi altogether
>
> I am in the process of adapting ActiveOrient (
> https://github.com/topofocus/active-orient) to Version 2.2.
> And found that  DatabaseClass#Last returns the first instead of the last
> record.
>
> The following query is transmitted by the test-suite:
>
>  select  from industry  order by @rid desc
>
> The result is the same as
>
>  select  from industry
>
>
> I verified this in studio.
> The documentation @ http://orientdb.com/docs/2.2/SQL-Query.html
> refers explicit to this feature:
>
>
> Return records from the class Profile in descending order of their
> creation:
>
> orientdb> SELECT FROM Profile ORDER BY @rid DESC
>
> Beginning in version 1.7.7, OrientDB can open an inverse cursor against
> clusters. This is very fast and doesn't require the classic ordering
> resources, CPU and RAM.
>
>
> Is this a bug or missed I something?
>
> hartmut
>
> --
>
> ---
> 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 orient-database+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
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 orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to