{"action":"created","issue":{"url":"https://api.github.com/repos/yahoo/squidb/issues/101","labels_url":"https://api.github.com/repos/yahoo/squidb/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/yahoo/squidb/issues/101/comments","events_url":"https://api.github.com/repos/yahoo/squidb/issues/101/events","html_url":"https://github.com/yahoo/squidb/issues/101","id":112346849,"number":101,"title":"Create Index on multiple columns?","user":{"login":"inawlaljar","id":1022222,"avatar_url":"https://avatars.githubusercontent.com/u/1022222?v=3","gravatar_id":"","url":"https://api.github.com/users/inawlaljar","html_url":"https://github.com/inawlaljar","followers_url":"https://api.github.com/users/inawlaljar/followers","following_url":"https://api.github.com/users/inawlaljar/following{/other_user}","gists_url":"https://api.github.com/users/inawlaljar/gists{/gist_id}","starred_url":"https://api.github.com/users/inawlaljar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inawlaljar/subscriptions","organizations_url":"https://api.github.com/users/inawlaljar/orgs","repos_url":"https://api.github.com/users/inawlaljar/repos","events_url":"https://api.github.com/users/inawlaljar/events{/privacy}","received_events_url":"https://api.github.com/users/inawlaljar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-20T11:28:43Z","updated_at":"2015-10-20T13:54:04Z","closed_at":null,"body":"Is it possible to create index on multiple columns?\r\n\r\nfor e.g. \r\ntryCreateIndex(User.TABLE.index(\"ss_fb_def_item_idx\", [User.ADDRESS_ID, User.ORG_ID, User.EDUCATION_ID]));"},"comment":{"url":"https://api.github.com/repos/yahoo/squidb/issues/comments/149574928","html_url":"https://github.com/yahoo/squidb/issues/101#issuecomment-149574928","issue_url":"https://api.github.com/repos/yahoo/squidb/issues/101","id":149574928,"user":{"login":"jdkoren","id":771156,"avatar_url":"https://avatars.githubusercontent.com/u/771156?v=3","gravatar_id":"","url":"https://api.github.com/users/jdkoren","html_url":"https://github.com/jdkoren","followers_url":"https://api.github.com/users/jdkoren/followers","following_url":"https://api.github.com/users/jdkoren/following{/other_user}","gists_url":"https://api.github.com/users/jdkoren/gists{/gist_id}","starred_url":"https://api.github.com/users/jdkoren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdkoren/subscriptions","organizations_url":"https://api.github.com/users/jdkoren/orgs","repos_url":"https://api.github.com/users/jdkoren/repos","events_url":"https://api.github.com/users/jdkoren/events{/privacy}","received_events_url":"https://api.github.com/users/jdkoren/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T13:54:04Z","updated_at":"2015-10-20T13:54:04Z","body":"Sure you can. The [`Table.index()`](https://github.com/yahoo/squidb/blob/master/squidb/src/com/yahoo/squidb/sql/Table.java#L61) method (and the Index constructor) accepts a variable number of `Property<?>` objects. You can write it like this:\r\n```java\r\nUser.TABLE.index(\"ss_fb_def_item_idx\", User.ADDRESS_ID, User.ORG_ID, User.EDUCATION_ID)\r\n```\r\nYou could also declare an array if you wanted to since var-args can accept an array."}}