0

I'm currently using riak.js as a client for a riak database, do any of you know how to retrieve the keys along with all the results?

current query im using is db.getAll('scores');

Thanks in advance.

TheNickyYo
  • 2,389
  • 5
  • 20
  • 28

1 Answers1

0

A key listing in Riak will return the key only. In order to get the data, you will need to retrieve the objects individually through GET requests.

A key listing in Riak is a very expensive operation, and while quite useful in small development and testing environments it is not recommended that you use it in larger production environments as it will affect the performance of the cluster and not scale well.

Christian Dahlqvist
  • 1,665
  • 12
  • 9