rethinkdb / docs

RethinkDB documentation
http://rethinkdb.com/docs
Apache License 2.0
117 stars 167 forks source link

Sample Command Duplication #1199

Open ChrisTalman opened 7 years ago

ChrisTalman commented 7 years ago

The ReQL documentation for sample does not seem to state whether or not the command can return the same document more than once in its results. This could be useful to know, as it might be desirable to return a certain number of unique elements at random. Could this please be clarified in the documentation?

AtnNn commented 7 years ago

The first paragraph of the documentation already specifies that "selection is done without replacement".

ChrisTalman commented 7 years ago

@AtnNn Thanks for your reply. I did notice that when I read the documentation, but I did not understand what it meant. I have now done a Google search, and see that it means that the same element will not be returned more than once. Unfortunately, when I was first reviewing the documentation, being unfamiliar with the terminology, it did not cross my mind to look up what that sentence meant, as it seemed unrelated. Thanks for the clarification.