{"action":"created","issue":{"url":"https://api.github.com/repos/thinkaurelius/titan/issues/916","labels_url":"https://api.github.com/repos/thinkaurelius/titan/issues/916/labels{/name}","comments_url":"https://api.github.com/repos/thinkaurelius/titan/issues/916/comments","events_url":"https://api.github.com/repos/thinkaurelius/titan/issues/916/events","html_url":"https://github.com/thinkaurelius/titan/issues/916","id":53754944,"number":916,"title":"Full scan with OR for a key that is indexed via composite index ","user":{"login":"asaf","id":14259,"avatar_url":"https://avatars.githubusercontent.com/u/14259?v=3","gravatar_id":"","url":"https://api.github.com/users/asaf","html_url":"https://github.com/asaf","followers_url":"https://api.github.com/users/asaf/followers","following_url":"https://api.github.com/users/asaf/following{/other_user}","gists_url":"https://api.github.com/users/asaf/gists{/gist_id}","starred_url":"https://api.github.com/users/asaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asaf/subscriptions","organizations_url":"https://api.github.com/users/asaf/orgs","repos_url":"https://api.github.com/users/asaf/repos","events_url":"https://api.github.com/users/asaf/events{/privacy}","received_events_url":"https://api.github.com/users/asaf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-08T14:19:21Z","updated_at":"2015-01-08T14:49:15Z","closed_at":null,"body":"Hey,\r\n\r\nI have a composite index for key FOO\r\nif I search for 'FOO='x'' Titan uses the index just fine,\r\nBut a query such:\r\n\r\n`g.V().has('FOO', T.in, ['x', 'y'])` causes a full scan with the message:\r\n\r\n\r\n`\r\nQuery requires iterating over all vertices [((FOO = x OR FOO = y))]. For better performance, use indexes\r\n`\r\n\r\nWhy?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/thinkaurelius/titan/issues/comments/69188708","html_url":"https://github.com/thinkaurelius/titan/issues/916#issuecomment-69188708","issue_url":"https://api.github.com/repos/thinkaurelius/titan/issues/916","id":69188708,"user":{"login":"boliza","id":1076043,"avatar_url":"https://avatars.githubusercontent.com/u/1076043?v=3","gravatar_id":"","url":"https://api.github.com/users/boliza","html_url":"https://github.com/boliza","followers_url":"https://api.github.com/users/boliza/followers","following_url":"https://api.github.com/users/boliza/following{/other_user}","gists_url":"https://api.github.com/users/boliza/gists{/gist_id}","starred_url":"https://api.github.com/users/boliza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boliza/subscriptions","organizations_url":"https://api.github.com/users/boliza/orgs","repos_url":"https://api.github.com/users/boliza/repos","events_url":"https://api.github.com/users/boliza/events{/privacy}","received_events_url":"https://api.github.com/users/boliza/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T14:49:15Z","updated_at":"2015-01-08T14:49:15Z","body":"In this case I think you should create mixed index on field FOO."}}