Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support compound indexes as a vector #166

Open
thedavidmeister opened this issue May 16, 2016 · 1 comment
Open

support compound indexes as a vector #166

thedavidmeister opened this issue May 16, 2016 · 1 comment

Comments

@thedavidmeister
Copy link
Contributor

thedavidmeister commented May 16, 2016

rethinkdb lets us define compound indexes without needing a function if we pass an array of values.

https://www.rethinkdb.com/docs/secondary-indexes/javascript/

screen shot 2016-05-17 at 1 49 06 am

It would be good if we could do something similar like:

(r/index-create (r/table "users") "full_name" ["first_name" "last_name"])
@apa512
Copy link
Owner

apa512 commented May 16, 2016

The official clients convert the array to a function but I guess we could do the same (just pointing out that RethinkDB actually only supports field name or function in case someone else wants to add this).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants