{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-js/issues/2009","repository_url":"https://api.github.com/repos/realm/realm-js","labels_url":"https://api.github.com/repos/realm/realm-js/issues/2009/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-js/issues/2009/comments","events_url":"https://api.github.com/repos/realm/realm-js/issues/2009/events","html_url":"https://github.com/realm/realm-js/issues/2009","id":357724224,"node_id":"MDU6SXNzdWUzNTc3MjQyMjQ=","number":2009,"title":"Bulk insert into Realm","user":{"login":"ogtimothymiller","id":42816967,"node_id":"MDQ6VXNlcjQyODE2OTY3","avatar_url":"https://avatars0.githubusercontent.com/u/42816967?v=4","gravatar_id":"","url":"https://api.github.com/users/ogtimothymiller","html_url":"https://github.com/ogtimothymiller","followers_url":"https://api.github.com/users/ogtimothymiller/followers","following_url":"https://api.github.com/users/ogtimothymiller/following{/other_user}","gists_url":"https://api.github.com/users/ogtimothymiller/gists{/gist_id}","starred_url":"https://api.github.com/users/ogtimothymiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogtimothymiller/subscriptions","organizations_url":"https://api.github.com/users/ogtimothymiller/orgs","repos_url":"https://api.github.com/users/ogtimothymiller/repos","events_url":"https://api.github.com/users/ogtimothymiller/events{/privacy}","received_events_url":"https://api.github.com/users/ogtimothymiller/received_events","type":"User","site_admin":false},"labels":[{"id":643640187,"node_id":"MDU6TGFiZWw2NDM2NDAxODc=","url":"https://api.github.com/repos/realm/realm-js/labels/O:User","name":"O:User","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-06T16:03:01Z","updated_at":"2018-09-06T21:08:23Z","closed_at":null,"author_association":"NONE","body":"## Goals\r\n\r\nInserting collection of realm models into Realm\r\n\r\n## Expected Results\r\n\r\ninsertOrUpdate like Realm Java 1.1.0+ (https://realm.io/blog/realm-java-1-1-0/)\r\n\r\n## Actual Results\r\n\r\nCan only insert new objects one at a time.\r\n\r\n## Steps to Reproduce\r\n\r\nSee above\r\n\r\n## Code Sample\r\n\r\n```\r\nrealm.write(() => {\r\n                        realm.create('ObjectName', {\r\n                            foo: foo, baz: baz\r\n                        })\r\n                    })\r\n```\r\n\r\n## Version of Realm and Tooling\r\n\r\n- Realm JS SDK Version: 2.15.3\r\n- Node or React Native: Node\r\n- Client OS & Version: macOS 10.13.6\r\n"},"comment":{"url":"https://api.github.com/repos/realm/realm-js/issues/comments/419241863","html_url":"https://github.com/realm/realm-js/issues/2009#issuecomment-419241863","issue_url":"https://api.github.com/repos/realm/realm-js/issues/2009","id":419241863,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTI0MTg2Mw==","user":{"login":"ogtimothymiller","id":42816967,"node_id":"MDQ6VXNlcjQyODE2OTY3","avatar_url":"https://avatars0.githubusercontent.com/u/42816967?v=4","gravatar_id":"","url":"https://api.github.com/users/ogtimothymiller","html_url":"https://github.com/ogtimothymiller","followers_url":"https://api.github.com/users/ogtimothymiller/followers","following_url":"https://api.github.com/users/ogtimothymiller/following{/other_user}","gists_url":"https://api.github.com/users/ogtimothymiller/gists{/gist_id}","starred_url":"https://api.github.com/users/ogtimothymiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogtimothymiller/subscriptions","organizations_url":"https://api.github.com/users/ogtimothymiller/orgs","repos_url":"https://api.github.com/users/ogtimothymiller/repos","events_url":"https://api.github.com/users/ogtimothymiller/events{/privacy}","received_events_url":"https://api.github.com/users/ogtimothymiller/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T21:08:23Z","updated_at":"2018-09-06T21:08:23Z","author_association":"NONE","body":"I am inserting tens of thousands of objects, which takes a decent while to process.\r\n\r\nIt's strange java received this feature last year, and javascript does not have it after all this time."}}
{"actor":{"display_login":"ogtimothymiller"}}