{"action":"created","issue":{"url":"https://api.github.com/repos/mincong-h/gsoc-hsearch/issues/7","repository_url":"https://api.github.com/repos/mincong-h/gsoc-hsearch","labels_url":"https://api.github.com/repos/mincong-h/gsoc-hsearch/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/mincong-h/gsoc-hsearch/issues/7/comments","events_url":"https://api.github.com/repos/mincong-h/gsoc-hsearch/issues/7/events","html_url":"https://github.com/mincong-h/gsoc-hsearch/issues/7","id":157245028,"number":7,"title":"Parallel processing for IdProducerBatchlet","user":{"login":"mincong-h","id":10179217,"avatar_url":"https://avatars.githubusercontent.com/u/10179217?v=3","gravatar_id":"","url":"https://api.github.com/users/mincong-h","html_url":"https://github.com/mincong-h","followers_url":"https://api.github.com/users/mincong-h/followers","following_url":"https://api.github.com/users/mincong-h/following{/other_user}","gists_url":"https://api.github.com/users/mincong-h/gists{/gist_id}","starred_url":"https://api.github.com/users/mincong-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mincong-h/subscriptions","organizations_url":"https://api.github.com/users/mincong-h/orgs","repos_url":"https://api.github.com/users/mincong-h/repos","events_url":"https://api.github.com/users/mincong-h/events{/privacy}","received_events_url":"https://api.github.com/users/mincong-h/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-27T16:33:53Z","updated_at":"2016-05-27T20:46:30Z","closed_at":null,"body":"Since commit 14a638a, the `IdProducerBatchlet` can load identifiers of all entities. However, the process is relatively slow, because it is running in a single thread. Can we apply some technologies to accelerate the loading process, e.g. using parallel processing ?"},"comment":{"url":"https://api.github.com/repos/mincong-h/gsoc-hsearch/issues/comments/222249357","html_url":"https://github.com/mincong-h/gsoc-hsearch/issues/7#issuecomment-222249357","issue_url":"https://api.github.com/repos/mincong-h/gsoc-hsearch/issues/7","id":222249357,"user":{"login":"mincong-h","id":10179217,"avatar_url":"https://avatars.githubusercontent.com/u/10179217?v=3","gravatar_id":"","url":"https://api.github.com/users/mincong-h","html_url":"https://github.com/mincong-h","followers_url":"https://api.github.com/users/mincong-h/followers","following_url":"https://api.github.com/users/mincong-h/following{/other_user}","gists_url":"https://api.github.com/users/mincong-h/gists{/gist_id}","starred_url":"https://api.github.com/users/mincong-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mincong-h/subscriptions","organizations_url":"https://api.github.com/users/mincong-h/orgs","repos_url":"https://api.github.com/users/mincong-h/repos","events_url":"https://api.github.com/users/mincong-h/events{/privacy}","received_events_url":"https://api.github.com/users/mincong-h/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T20:46:30Z","updated_at":"2016-05-27T20:46:30Z","body":"According to [Hibernate common issues][1]:\r\n \r\n> A Session is not thread-safe. Things that work concurrently, like HTTP requests, session beans, or Swing workers, will cause race conditions if a Session instance is shared. If you keep your Hibernate Session in your HttpSession (this is discussed later in the chapter), you should consider synchronizing access to your Http session. Otherwise, a user that clicks reload fast enough can use the same Session in two concurrently running threads.\r\n\r\nSessions and transactions in Hibernate are inherently bound to a database connection. And the connection is single-threaded. So the batchlet should be single-thread.\r\n\r\n[1]: https://docs.jboss.org/hibernate/orm/3.6/reference/en-US/html/transactions.html#transactions-basics-issues"}}
{"actor":{"display_login":"mincong-h"}}