« first day (4 days earlier)    last day (15 days later) » 

3:03 AM
To get a record id of bucket with a given name you can just:
> select @rid from bucket where repository_name = 'maven-central'
If you want to get assets from a bucket with a given repository_name then:
> select from asset where bucket.repository_name = 'maven-central'
If you want to get size of all assets stored in bucket of given name:
> select sum(size) from asset where bucket.repository_name = 'maven-central'
If you want to get number of assets stored in a bucket with a given name:
> select count(1) from asset where bucket.repository_name = 'maven-central'
Sorry, I sent you the above queries, because I don't understand what are you trying to solve. Do you have an actual case in NXRM you're trying to solve or are you just trying to figure out how OrientDB SQL works?
 
 
6 hours later…
9:38 AM
I just tried to figure out how OrientDB SQL works, more precisely to learn how sub-queries work. But i think
select sum(size) from asset where bucket.repository_name = 'maven-central'
solves perfectly my problem.
 
 
6 hours later…
3:54 PM
Cool! Happy to hear that
IMO the general SQL experience doesn't translate easily to Orient
Oftentimes I end up just fiddling with queries until I get what I want
 
@DawidSawa yes, i totally agree
Thanks for chatting and your support!
 

« first day (4 days earlier)    last day (15 days later) »