{"action":"created","comment":{"url":"https://api.github.com/repos/ow2-proactive/documentation/pulls/comments/62480653","id":62480653,"diff_hunk":"@@ -913,9 +913,36 @@ http://www.postgresql.org[Postgres] or\n http://www.microsoft.com/en-us/server-cloud/products/sql-server/[SQL Server] if\n you care about performance or notice a slowdown.\n \n-ProActive Workflows and Scheduling distribution is provided with several samples\n-for configuring the Scheduler and Resource Manager to use most standard RDBMS.\n-You can find these examples in `PROACTIVE_HOME/config/scheduler/` folder.\n+ProActive Workflows and Scheduling distribution is provided with several\n+samples for configuring the Scheduler and Resource Manager to use most\n+standard RDBMS.\n+You can find these examples in `PROACTIVE_HOME/config/rm/templates/` and\n+`PROACTIVE_HOME/config/scheduler/templates/` folders.\n+\n+==== Indexes\n+\n+The Scheduler and RM databases rely on Hibernate to create and update the\n+database schema automatically on startup. Hibernate is configured for adding\n+indexes on frequently used columns, including columns associated to foreign\n+keys. The goal is to provide a default configuration that behaves in a\n+satisfactory manner with the different features available in the Scheduler.\n+For instance, the Jobs housekeeping feature requires indexes on most foreign\n+keys since a Job deletion may imply several delete by cascade.\n+\n+Unfortunately, each database vendor implements its own strategy regarding\n+indexes on foreign keys.  Thus, some databases such as _MariaDB_ and _MySQL_\n+automatically add indexes for foreign keys whereas some others like _Postgres_\n+or _Oracle_ do not add such indexes by default. Besides, Hibernate does not\n+offer control over this strategy.\n+As a consequence, this difference of behaviour, once linked to our default\n+configuration for Hibernate, may lead to duplicate indexes (two indexes with\n+different names for a same column) that are created for columns in RM and\n+Scheduler tables.\n+\n+In case you are using in production _MySQL_, _MariaDB_ or a similar database\n+that automatically adds indexes on foreign keys, it is strongly recommended to\n+ask your DBA to identify and delete duplicate indexes created by the database\n+system since these last may hurt performances.","path":"src/docs/admin/ProActiveAdminGuide.adoc","position":null,"original_position":36,"commit_id":"31a56bf215dbf743bab3f6e03020e5019676fca7","original_commit_id":"e93421f6a53401f2f0f4ea633cf2983b5f99344a","user":{"login":"lpellegr","id":128898,"avatar_url":"https://avatars.githubusercontent.com/u/128898?v=3","gravatar_id":"","url":"https://api.github.com/users/lpellegr","html_url":"https://github.com/lpellegr","followers_url":"https://api.github.com/users/lpellegr/followers","following_url":"https://api.github.com/users/lpellegr/following{/other_user}","gists_url":"https://api.github.com/users/lpellegr/gists{/gist_id}","starred_url":"https://api.github.com/users/lpellegr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpellegr/subscriptions","organizations_url":"https://api.github.com/users/lpellegr/orgs","repos_url":"https://api.github.com/users/lpellegr/repos","events_url":"https://api.github.com/users/lpellegr/events{/privacy}","received_events_url":"https://api.github.com/users/lpellegr/received_events","type":"User","site_admin":false},"body":"Fixed","created_at":"2016-05-09T10:53:25Z","updated_at":"2016-05-09T10:53:25Z","html_url":"https://github.com/ow2-proactive/documentation/pull/274#discussion_r62480653","pull_request_url":"https://api.github.com/repos/ow2-proactive/documentation/pulls/274","_links":{"self":{"href":"https://api.github.com/repos/ow2-proactive/documentation/pulls/comments/62480653"},"html":{"href":"https://github.com/ow2-proactive/documentation/pull/274#discussion_r62480653"},"pull_request":{"href":"https://api.github.com/repos/ow2-proactive/documentation/pulls/274"}}},"pull_request":{"url":"https://api.github.com/repos/ow2-proactive/documentation/pulls/274","id":68694478,"html_url":"https://github.com/ow2-proactive/documentation/pull/274","diff_url":"https://github.com/ow2-proactive/documentation/pull/274.diff","patch_url":"https://github.com/ow2-proactive/documentation/pull/274.patch","issue_url":"https://api.github.com/repos/ow2-proactive/documentation/issues/274","number":274,"state":"open","locked":false,"title":"Add explanations about database duplicate indexes","user":{"login":"lpellegr","id":128898,"avatar_url":"https://avatars.githubusercontent.com/u/128898?v=3","gravatar_id":"","url":"https://api.github.com/users/lpellegr","html_url":"https://github.com/lpellegr","followers_url":"https://api.github.com/users/lpellegr/followers","following_url":"https://api.github.com/users/lpellegr/following{/other_user}","gists_url":"https://api.github.com/users/lpellegr/gists{/gist_id}","starred_url":"https://api.github.com/users/lpellegr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpellegr/subscriptions","organizations_url":"https://api.github.com/users/lpellegr/orgs","repos_url":"https://api.github.com/users/lpellegr/repos","events_url":"https://api.github.com/users/lpellegr/events{/privacy}","received_events_url":"https://api.github.com/users/lpellegr/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-03T11:56:11Z","updated_at":"2016-05-09T10:53:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"886a47817271cc3c44b79b6de5e87bd6dbc3b430","assignee":{"login":"lpellegr","id":128898,"avatar_url":"https://avatars.githubusercontent.com/u/128898?v=3","gravatar_id":"","url":"https://api.github.com/users/lpellegr","html_url":"https://github.com/lpellegr","followers_url":"https://api.github.com/users/lpellegr/followers","following_url":"https://api.github.com/users/lpellegr/following{/other_user}","gists_url":"https://api.github.com/users/lpellegr/gists{/gist_id}","starred_url":"https://api.github.com/users/lpellegr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpellegr/subscriptions","organizations_url":"https://api.github.com/users/lpellegr/orgs","repos_url":"https://api.github.com/users/lpellegr/repos","events_url":"https://api.github.com/users/lpellegr/events{/privacy}","received_events_url":"https://api.github.com/users/lpellegr/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ow2-proactive/documentation/milestones/21","html_url":"https://github.com/ow2-proactive/documentation/milestones/7.10.0","labels_url":"https://api.github.com/repos/ow2-proactive/documentation/milestones/21/labels","id":1744358,"number":21,"title":"7.10.0","description":null,"creator":{"login":"activeeon-bot","id":12379036,"avatar_url":"https://avatars.githubusercontent.com/u/12379036?v=3","gravatar_id":"","url":"https://api.github.com/users/activeeon-bot","html_url":"https://github.com/activeeon-bot","followers_url":"https://api.github.com/users/activeeon-bot/followers","following_url":"https://api.github.com/users/activeeon-bot/following{/other_user}","gists_url":"https://api.github.com/users/activeeon-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/activeeon-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeeon-bot/subscriptions","organizations_url":"https://api.github.com/users/activeeon-bot/orgs","repos_url":"https://api.github.com/users/activeeon-bot/repos","events_url":"https://api.github.com/users/activeeon-bot/events{/privacy}","received_events_url":"https://api.github.com/users/activeeon-bot/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2016-05-03T09:07:04Z","updated_at":"2016-05-03T11:56:11Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/ow2-proactive/documentation/pulls/274/commits","review_comments_url":"https://api.github.com/repos/ow2-proactive/documentation/pulls/274/comments","review_comment_url":"https://api.github.com/repos/ow2-proactive/documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ow2-proactive/documentation/issues/274/comments","statuses_url":"https://api.github.com/repos/ow2-proactive/documentation/statuses/31a56bf215dbf743bab3f6e03020e5019676fca7","head":{"label":"lpellegr:duplicate-indexes","ref":"duplicate-indexes","sha":"31a56bf215dbf743bab3f6e03020e5019676fca7","user":{"login":"lpellegr","id":128898,"avatar_url":"https://avatars.githubusercontent.com/u/128898?v=3","gravatar_id":"","url":"https://api.github.com/users/lpellegr","html_url":"https://github.com/lpellegr","followers_url":"https://api.github.com/users/lpellegr/followers","following_url":"https://api.github.com/users/lpellegr/following{/other_user}","gists_url":"https://api.github.com/users/lpellegr/gists{/gist_id}","starred_url":"https://api.github.com/users/lpellegr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpellegr/subscriptions","organizations_url":"https://api.github.com/users/lpellegr/orgs","repos_url":"https://api.github.com/users/lpellegr/repos","events_url":"https://api.github.com/users/lpellegr/events{/privacy}","received_events_url":"https://api.github.com/users/lpellegr/received_events","type":"User","site_admin":false},"repo":{"id":43139079,"name":"documentation","full_name":"lpellegr/documentation","owner":{"login":"lpellegr","id":128898,"avatar_url":"https://avatars.githubusercontent.com/u/128898?v=3","gravatar_id":"","url":"https://api.github.com/users/lpellegr","html_url":"https://github.com/lpellegr","followers_url":"https://api.github.com/users/lpellegr/followers","following_url":"https://api.github.com/users/lpellegr/following{/other_user}","gists_url":"https://api.github.com/users/lpellegr/gists{/gist_id}","starred_url":"https://api.github.com/users/lpellegr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpellegr/subscriptions","organizations_url":"https://api.github.com/users/lpellegr/orgs","repos_url":"https://api.github.com/users/lpellegr/repos","events_url":"https://api.github.com/users/lpellegr/events{/privacy}","received_events_url":"https://api.github.com/users/lpellegr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lpellegr/documentation","description":"Documentation for ProActive Workflows & Scheduling","fork":true,"url":"https://api.github.com/repos/lpellegr/documentation","forks_url":"https://api.github.com/repos/lpellegr/documentation/forks","keys_url":"https://api.github.com/repos/lpellegr/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lpellegr/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lpellegr/documentation/teams","hooks_url":"https://api.github.com/repos/lpellegr/documentation/hooks","issue_events_url":"https://api.github.com/repos/lpellegr/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/lpellegr/documentation/events","assignees_url":"https://api.github.com/repos/lpellegr/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/lpellegr/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/lpellegr/documentation/tags","blobs_url":"https://api.github.com/repos/lpellegr/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lpellegr/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lpellegr/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/lpellegr/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lpellegr/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/lpellegr/documentation/languages","stargazers_url":"https://api.github.com/repos/lpellegr/documentation/stargazers","contributors_url":"https://api.github.com/repos/lpellegr/documentation/contributors","subscribers_url":"https://api.github.com/repos/lpellegr/documentation/subscribers","subscription_url":"https://api.github.com/repos/lpellegr/documentation/subscription","commits_url":"https://api.github.com/repos/lpellegr/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/lpellegr/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/lpellegr/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/lpellegr/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/lpellegr/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/lpellegr/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lpellegr/documentation/merges","archive_url":"https://api.github.com/repos/lpellegr/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lpellegr/documentation/downloads","issues_url":"https://api.github.com/repos/lpellegr/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/lpellegr/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/lpellegr/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/lpellegr/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lpellegr/documentation/labels{/name}","releases_url":"https://api.github.com/repos/lpellegr/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/lpellegr/documentation/deployments","created_at":"2015-09-25T12:21:11Z","updated_at":"2016-01-12T09:41:58Z","pushed_at":"2016-05-09T10:53:14Z","git_url":"git://github.com/lpellegr/documentation.git","ssh_url":"git@github.com:lpellegr/documentation.git","clone_url":"https://github.com/lpellegr/documentation.git","svn_url":"https://github.com/lpellegr/documentation","homepage":"http://doc.activeeon.com/","size":35551,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ow2-proactive:master","ref":"master","sha":"22ea51a64dccae067df5e0afef0e3c860adf9723","user":{"login":"ow2-proactive","id":11553998,"avatar_url":"https://avatars.githubusercontent.com/u/11553998?v=3","gravatar_id":"","url":"https://api.github.com/users/ow2-proactive","html_url":"https://github.com/ow2-proactive","followers_url":"https://api.github.com/users/ow2-proactive/followers","following_url":"https://api.github.com/users/ow2-proactive/following{/other_user}","gists_url":"https://api.github.com/users/ow2-proactive/gists{/gist_id}","starred_url":"https://api.github.com/users/ow2-proactive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ow2-proactive/subscriptions","organizations_url":"https://api.github.com/users/ow2-proactive/orgs","repos_url":"https://api.github.com/users/ow2-proactive/repos","events_url":"https://api.github.com/users/ow2-proactive/events{/privacy}","received_events_url":"https://api.github.com/users/ow2-proactive/received_events","type":"Organization","site_admin":false},"repo":{"id":35725072,"name":"documentation","full_name":"ow2-proactive/documentation","owner":{"login":"ow2-proactive","id":11553998,"avatar_url":"https://avatars.githubusercontent.com/u/11553998?v=3","gravatar_id":"","url":"https://api.github.com/users/ow2-proactive","html_url":"https://github.com/ow2-proactive","followers_url":"https://api.github.com/users/ow2-proactive/followers","following_url":"https://api.github.com/users/ow2-proactive/following{/other_user}","gists_url":"https://api.github.com/users/ow2-proactive/gists{/gist_id}","starred_url":"https://api.github.com/users/ow2-proactive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ow2-proactive/subscriptions","organizations_url":"https://api.github.com/users/ow2-proactive/orgs","repos_url":"https://api.github.com/users/ow2-proactive/repos","events_url":"https://api.github.com/users/ow2-proactive/events{/privacy}","received_events_url":"https://api.github.com/users/ow2-proactive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ow2-proactive/documentation","description":"Documentation for ProActive Workflows & Scheduling","fork":false,"url":"https://api.github.com/repos/ow2-proactive/documentation","forks_url":"https://api.github.com/repos/ow2-proactive/documentation/forks","keys_url":"https://api.github.com/repos/ow2-proactive/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ow2-proactive/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ow2-proactive/documentation/teams","hooks_url":"https://api.github.com/repos/ow2-proactive/documentation/hooks","issue_events_url":"https://api.github.com/repos/ow2-proactive/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/ow2-proactive/documentation/events","assignees_url":"https://api.github.com/repos/ow2-proactive/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/ow2-proactive/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/ow2-proactive/documentation/tags","blobs_url":"https://api.github.com/repos/ow2-proactive/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ow2-proactive/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ow2-proactive/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/ow2-proactive/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ow2-proactive/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/ow2-proactive/documentation/languages","stargazers_url":"https://api.github.com/repos/ow2-proactive/documentation/stargazers","contributors_url":"https://api.github.com/repos/ow2-proactive/documentation/contributors","subscribers_url":"https://api.github.com/repos/ow2-proactive/documentation/subscribers","subscription_url":"https://api.github.com/repos/ow2-proactive/documentation/subscription","commits_url":"https://api.github.com/repos/ow2-proactive/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/ow2-proactive/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/ow2-proactive/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/ow2-proactive/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/ow2-proactive/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/ow2-proactive/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ow2-proactive/documentation/merges","archive_url":"https://api.github.com/repos/ow2-proactive/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ow2-proactive/documentation/downloads","issues_url":"https://api.github.com/repos/ow2-proactive/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/ow2-proactive/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/ow2-proactive/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/ow2-proactive/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ow2-proactive/documentation/labels{/name}","releases_url":"https://api.github.com/repos/ow2-proactive/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/ow2-proactive/documentation/deployments","created_at":"2015-05-16T13:38:52Z","updated_at":"2016-01-18T10:25:14Z","pushed_at":"2016-05-09T10:53:14Z","git_url":"git://github.com/ow2-proactive/documentation.git","ssh_url":"git@github.com:ow2-proactive/documentation.git","clone_url":"https://github.com/ow2-proactive/documentation.git","svn_url":"https://github.com/ow2-proactive/documentation","homepage":"http://doc.activeeon.com/","size":35558,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":7,"forks":10,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ow2-proactive/documentation/pulls/274"},"html":{"href":"https://github.com/ow2-proactive/documentation/pull/274"},"issue":{"href":"https://api.github.com/repos/ow2-proactive/documentation/issues/274"},"comments":{"href":"https://api.github.com/repos/ow2-proactive/documentation/issues/274/comments"},"review_comments":{"href":"https://api.github.com/repos/ow2-proactive/documentation/pulls/274/comments"},"review_comment":{"href":"https://api.github.com/repos/ow2-proactive/documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ow2-proactive/documentation/pulls/274/commits"},"statuses":{"href":"https://api.github.com/repos/ow2-proactive/documentation/statuses/31a56bf215dbf743bab3f6e03020e5019676fca7"}}}}