Skip to content

Instantly share code, notes, and snippets.

@vitorenesduarte
Created April 7, 2015 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vitorenesduarte/aae2a17c5b144ec449ee to your computer and use it in GitHub Desktop.
Save vitorenesduarte/aae2a17c5b144ec449ee to your computer and use it in GitHub Desktop.
tags_count
orientdb {db=MYDB}> select *, out('Tags').size() from Tag where isFeatured = true limit -1 fetchplan in_*:-2 out_*:-2
----+------+------+---------------+----------+---------+-----
# |@RID |@CLASS|name |isFeatured|out_Tags |out
----+------+------+---------------+----------+---------+-----
0 |#29:12|Tag |shirts |true |[size=-1]|40898
1 |#29:8 |Tag |shoes |true |[size=-1]|40251
2 |#29:62|Tag |missoni |true |[size=-1]|40557
3 |#29:52|Tag |hairaccessories|true |[size=-1]|40979
----+------+------+---------------+----------+---------+-----
4 item(s) found. Query executed in 0.11 sec(s).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment