Closed inawlaljar closed 8 years ago
Sure you can. The Table.index()
method (and the Index constructor) accepts a variable number of Property<?>
objects. You can write it like this:
User.TABLE.index("ss_fb_def_item_idx", User.ADDRESS_ID, User.ORG_ID, User.EDUCATION_ID)
You could also declare an array if you wanted to since var-args can accept an array.
THanks.
Is it possible to create index on multiple columns?
for e.g. tryCreateIndex(User.TABLE.index("ss_fb_def_item_idx", [User.ADDRESS_ID, User.ORG_ID, User.EDUCATION_ID]));