{"action":"opened","number":4587,"pull_request":{"url":"https://api.github.com/repos/sequelize/sequelize/pulls/4587","id":46279441,"html_url":"https://github.com/sequelize/sequelize/pull/4587","diff_url":"https://github.com/sequelize/sequelize/pull/4587.diff","patch_url":"https://github.com/sequelize/sequelize/pull/4587.patch","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/4587","number":4587,"state":"open","locked":false,"title":"optimize index lookup when schema is known","user":{"login":"mliszewski","id":2912698,"avatar_url":"https://avatars.githubusercontent.com/u/2912698?v=3","gravatar_id":"","url":"https://api.github.com/users/mliszewski","html_url":"https://github.com/mliszewski","followers_url":"https://api.github.com/users/mliszewski/followers","following_url":"https://api.github.com/users/mliszewski/following{/other_user}","gists_url":"https://api.github.com/users/mliszewski/gists{/gist_id}","starred_url":"https://api.github.com/users/mliszewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mliszewski/subscriptions","organizations_url":"https://api.github.com/users/mliszewski/orgs","repos_url":"https://api.github.com/users/mliszewski/repos","events_url":"https://api.github.com/users/mliszewski/events{/privacy}","received_events_url":"https://api.github.com/users/mliszewski/received_events","type":"User","site_admin":false},"body":"The performance of the existing showIndexes postgres query is very poor if you have many identical table names across multiple schemas. I have added a restriction to the query to filter by schema name when a schema is present on the tableName object.","created_at":"2015-09-29T13:53:05Z","updated_at":"2015-09-29T13:53:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sequelize/sequelize/pulls/4587/commits","review_comments_url":"https://api.github.com/repos/sequelize/sequelize/pulls/4587/comments","review_comment_url":"https://api.github.com/repos/sequelize/sequelize/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/4587/comments","statuses_url":"https://api.github.com/repos/sequelize/sequelize/statuses/a64f09de6009a7874cccb8b2f5c07898d9c7ed5f","head":{"label":"mliszewski:optimize_postgres_index_lookup","ref":"optimize_postgres_index_lookup","sha":"a64f09de6009a7874cccb8b2f5c07898d9c7ed5f","user":{"login":"mliszewski","id":2912698,"avatar_url":"https://avatars.githubusercontent.com/u/2912698?v=3","gravatar_id":"","url":"https://api.github.com/users/mliszewski","html_url":"https://github.com/mliszewski","followers_url":"https://api.github.com/users/mliszewski/followers","following_url":"https://api.github.com/users/mliszewski/following{/other_user}","gists_url":"https://api.github.com/users/mliszewski/gists{/gist_id}","starred_url":"https://api.github.com/users/mliszewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mliszewski/subscriptions","organizations_url":"https://api.github.com/users/mliszewski/orgs","repos_url":"https://api.github.com/users/mliszewski/repos","events_url":"https://api.github.com/users/mliszewski/events{/privacy}","received_events_url":"https://api.github.com/users/mliszewski/received_events","type":"User","site_admin":false},"repo":{"id":40315254,"name":"sequelize","full_name":"mliszewski/sequelize","owner":{"login":"mliszewski","id":2912698,"avatar_url":"https://avatars.githubusercontent.com/u/2912698?v=3","gravatar_id":"","url":"https://api.github.com/users/mliszewski","html_url":"https://github.com/mliszewski","followers_url":"https://api.github.com/users/mliszewski/followers","following_url":"https://api.github.com/users/mliszewski/following{/other_user}","gists_url":"https://api.github.com/users/mliszewski/gists{/gist_id}","starred_url":"https://api.github.com/users/mliszewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mliszewski/subscriptions","organizations_url":"https://api.github.com/users/mliszewski/orgs","repos_url":"https://api.github.com/users/mliszewski/repos","events_url":"https://api.github.com/users/mliszewski/events{/privacy}","received_events_url":"https://api.github.com/users/mliszewski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mliszewski/sequelize","description":"Sequelize is an easy-to-use multi sql dialect ORM for Node.js & io.js. It currently supports MySQL, MariaDB, SQLite, PostgreSQL and MSSQL.","fork":true,"url":"https://api.github.com/repos/mliszewski/sequelize","forks_url":"https://api.github.com/repos/mliszewski/sequelize/forks","keys_url":"https://api.github.com/repos/mliszewski/sequelize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mliszewski/sequelize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mliszewski/sequelize/teams","hooks_url":"https://api.github.com/repos/mliszewski/sequelize/hooks","issue_events_url":"https://api.github.com/repos/mliszewski/sequelize/issues/events{/number}","events_url":"https://api.github.com/repos/mliszewski/sequelize/events","assignees_url":"https://api.github.com/repos/mliszewski/sequelize/assignees{/user}","branches_url":"https://api.github.com/repos/mliszewski/sequelize/branches{/branch}","tags_url":"https://api.github.com/repos/mliszewski/sequelize/tags","blobs_url":"https://api.github.com/repos/mliszewski/sequelize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mliszewski/sequelize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mliszewski/sequelize/git/refs{/sha}","trees_url":"https://api.github.com/repos/mliszewski/sequelize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mliszewski/sequelize/statuses/{sha}","languages_url":"https://api.github.com/repos/mliszewski/sequelize/languages","stargazers_url":"https://api.github.com/repos/mliszewski/sequelize/stargazers","contributors_url":"https://api.github.com/repos/mliszewski/sequelize/contributors","subscribers_url":"https://api.github.com/repos/mliszewski/sequelize/subscribers","subscription_url":"https://api.github.com/repos/mliszewski/sequelize/subscription","commits_url":"https://api.github.com/repos/mliszewski/sequelize/commits{/sha}","git_commits_url":"https://api.github.com/repos/mliszewski/sequelize/git/commits{/sha}","comments_url":"https://api.github.com/repos/mliszewski/sequelize/comments{/number}","issue_comment_url":"https://api.github.com/repos/mliszewski/sequelize/issues/comments{/number}","contents_url":"https://api.github.com/repos/mliszewski/sequelize/contents/{+path}","compare_url":"https://api.github.com/repos/mliszewski/sequelize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mliszewski/sequelize/merges","archive_url":"https://api.github.com/repos/mliszewski/sequelize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mliszewski/sequelize/downloads","issues_url":"https://api.github.com/repos/mliszewski/sequelize/issues{/number}","pulls_url":"https://api.github.com/repos/mliszewski/sequelize/pulls{/number}","milestones_url":"https://api.github.com/repos/mliszewski/sequelize/milestones{/number}","notifications_url":"https://api.github.com/repos/mliszewski/sequelize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mliszewski/sequelize/labels{/name}","releases_url":"https://api.github.com/repos/mliszewski/sequelize/releases{/id}","created_at":"2015-08-06T16:26:06Z","updated_at":"2015-08-06T16:26:08Z","pushed_at":"2015-09-29T13:50:54Z","git_url":"git://github.com/mliszewski/sequelize.git","ssh_url":"git@github.com:mliszewski/sequelize.git","clone_url":"https://github.com/mliszewski/sequelize.git","svn_url":"https://github.com/mliszewski/sequelize","homepage":"http://sequelizejs.com","size":16066,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sequelize:master","ref":"master","sha":"aa2d390b99af0f7ec2177fcf0f13d2f10b5eadb3","user":{"login":"sequelize","id":3591786,"avatar_url":"https://avatars.githubusercontent.com/u/3591786?v=3","gravatar_id":"","url":"https://api.github.com/users/sequelize","html_url":"https://github.com/sequelize","followers_url":"https://api.github.com/users/sequelize/followers","following_url":"https://api.github.com/users/sequelize/following{/other_user}","gists_url":"https://api.github.com/users/sequelize/gists{/gist_id}","starred_url":"https://api.github.com/users/sequelize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sequelize/subscriptions","organizations_url":"https://api.github.com/users/sequelize/orgs","repos_url":"https://api.github.com/users/sequelize/repos","events_url":"https://api.github.com/users/sequelize/events{/privacy}","received_events_url":"https://api.github.com/users/sequelize/received_events","type":"Organization","site_admin":false},"repo":{"id":790359,"name":"sequelize","full_name":"sequelize/sequelize","owner":{"login":"sequelize","id":3591786,"avatar_url":"https://avatars.githubusercontent.com/u/3591786?v=3","gravatar_id":"","url":"https://api.github.com/users/sequelize","html_url":"https://github.com/sequelize","followers_url":"https://api.github.com/users/sequelize/followers","following_url":"https://api.github.com/users/sequelize/following{/other_user}","gists_url":"https://api.github.com/users/sequelize/gists{/gist_id}","starred_url":"https://api.github.com/users/sequelize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sequelize/subscriptions","organizations_url":"https://api.github.com/users/sequelize/orgs","repos_url":"https://api.github.com/users/sequelize/repos","events_url":"https://api.github.com/users/sequelize/events{/privacy}","received_events_url":"https://api.github.com/users/sequelize/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sequelize/sequelize","description":"Sequelize is an easy-to-use multi sql dialect ORM for Node.js & io.js. It currently supports MySQL, MariaDB, SQLite, PostgreSQL and MSSQL.","fork":false,"url":"https://api.github.com/repos/sequelize/sequelize","forks_url":"https://api.github.com/repos/sequelize/sequelize/forks","keys_url":"https://api.github.com/repos/sequelize/sequelize/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sequelize/sequelize/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sequelize/sequelize/teams","hooks_url":"https://api.github.com/repos/sequelize/sequelize/hooks","issue_events_url":"https://api.github.com/repos/sequelize/sequelize/issues/events{/number}","events_url":"https://api.github.com/repos/sequelize/sequelize/events","assignees_url":"https://api.github.com/repos/sequelize/sequelize/assignees{/user}","branches_url":"https://api.github.com/repos/sequelize/sequelize/branches{/branch}","tags_url":"https://api.github.com/repos/sequelize/sequelize/tags","blobs_url":"https://api.github.com/repos/sequelize/sequelize/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sequelize/sequelize/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sequelize/sequelize/git/refs{/sha}","trees_url":"https://api.github.com/repos/sequelize/sequelize/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sequelize/sequelize/statuses/{sha}","languages_url":"https://api.github.com/repos/sequelize/sequelize/languages","stargazers_url":"https://api.github.com/repos/sequelize/sequelize/stargazers","contributors_url":"https://api.github.com/repos/sequelize/sequelize/contributors","subscribers_url":"https://api.github.com/repos/sequelize/sequelize/subscribers","subscription_url":"https://api.github.com/repos/sequelize/sequelize/subscription","commits_url":"https://api.github.com/repos/sequelize/sequelize/commits{/sha}","git_commits_url":"https://api.github.com/repos/sequelize/sequelize/git/commits{/sha}","comments_url":"https://api.github.com/repos/sequelize/sequelize/comments{/number}","issue_comment_url":"https://api.github.com/repos/sequelize/sequelize/issues/comments{/number}","contents_url":"https://api.github.com/repos/sequelize/sequelize/contents/{+path}","compare_url":"https://api.github.com/repos/sequelize/sequelize/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sequelize/sequelize/merges","archive_url":"https://api.github.com/repos/sequelize/sequelize/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sequelize/sequelize/downloads","issues_url":"https://api.github.com/repos/sequelize/sequelize/issues{/number}","pulls_url":"https://api.github.com/repos/sequelize/sequelize/pulls{/number}","milestones_url":"https://api.github.com/repos/sequelize/sequelize/milestones{/number}","notifications_url":"https://api.github.com/repos/sequelize/sequelize/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sequelize/sequelize/labels{/name}","releases_url":"https://api.github.com/repos/sequelize/sequelize/releases{/id}","created_at":"2010-07-22T07:11:11Z","updated_at":"2015-09-29T13:04:17Z","pushed_at":"2015-09-29T10:13:34Z","git_url":"git://github.com/sequelize/sequelize.git","ssh_url":"git@github.com:sequelize/sequelize.git","clone_url":"https://github.com/sequelize/sequelize.git","svn_url":"https://github.com/sequelize/sequelize","homepage":"http://sequelizejs.com","size":61230,"stargazers_count":4634,"watchers_count":4634,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1039,"mirror_url":null,"open_issues_count":555,"forks":1039,"open_issues":555,"watchers":4634,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/4587"},"html":{"href":"https://github.com/sequelize/sequelize/pull/4587"},"issue":{"href":"https://api.github.com/repos/sequelize/sequelize/issues/4587"},"comments":{"href":"https://api.github.com/repos/sequelize/sequelize/issues/4587/comments"},"review_comments":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/4587/comments"},"review_comment":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sequelize/sequelize/pulls/4587/commits"},"statuses":{"href":"https://api.github.com/repos/sequelize/sequelize/statuses/a64f09de6009a7874cccb8b2f5c07898d9c7ed5f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":26,"deletions":8,"changed_files":2}}