Arangodb: Randomly select multiple document in ArangoDB

Created on 17 Aug 2016  路  3Comments  路  Source: arangodb/arangodb

  • [ ] 3.0
  • [ ] Windows, version: 8

    this is an AQL-related issue:

I'm issuing AQL via:

I read this post about randomly select a document, but I need a query to select multiple document each time!

please help!

1 Question 3 AQL

All 3 comments

Just increase the limit, e.g. return 20 random documents from collection nodes:

FOR node IN nodes
  SORT RAND()
  LIMIT 20
  RETURN node

@Simran-B , @dothebart : thanks a lot guys...

Was this page helpful?
0 / 5 - 0 ratings