{"action":"created","issue":{"url":"https://api.github.com/repos/typesense/typesense/issues/35","repository_url":"https://api.github.com/repos/typesense/typesense","labels_url":"https://api.github.com/repos/typesense/typesense/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/typesense/typesense/issues/35/comments","events_url":"https://api.github.com/repos/typesense/typesense/issues/35/events","html_url":"https://github.com/typesense/typesense/issues/35","id":324524992,"number":35,"title":"possible to insert documents in bulk","user":{"login":"dpastoor","id":3196313,"avatar_url":"https://avatars0.githubusercontent.com/u/3196313?v=4","gravatar_id":"","url":"https://api.github.com/users/dpastoor","html_url":"https://github.com/dpastoor","followers_url":"https://api.github.com/users/dpastoor/followers","following_url":"https://api.github.com/users/dpastoor/following{/other_user}","gists_url":"https://api.github.com/users/dpastoor/gists{/gist_id}","starred_url":"https://api.github.com/users/dpastoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpastoor/subscriptions","organizations_url":"https://api.github.com/users/dpastoor/orgs","repos_url":"https://api.github.com/users/dpastoor/repos","events_url":"https://api.github.com/users/dpastoor/events{/privacy}","received_events_url":"https://api.github.com/users/dpastoor/received_events","type":"User","site_admin":false},"labels":[{"id":520789521,"url":"https://api.github.com/repos/typesense/typesense/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-18T19:23:58Z","updated_at":"2018-05-19T03:46:35Z","closed_at":null,"author_association":"NONE","body":"## Description\r\n\r\nHello!, on bootstrapping a server, I was wondering if it would be possible to provide an endpoint to insert collection of documents in one api call? For example, after exporting a collection, if I would like to import it into another typesense server. \r\n\r\nIn my specific case, I am creating an index for a website, than would like to insert all at once, rather than making successive calls.\r\n\r\nPS. Great work so far - really liking playing around."},"comment":{"url":"https://api.github.com/repos/typesense/typesense/issues/comments/390376014","html_url":"https://github.com/typesense/typesense/issues/35#issuecomment-390376014","issue_url":"https://api.github.com/repos/typesense/typesense/issues/35","id":390376014,"user":{"login":"dpastoor","id":3196313,"avatar_url":"https://avatars0.githubusercontent.com/u/3196313?v=4","gravatar_id":"","url":"https://api.github.com/users/dpastoor","html_url":"https://github.com/dpastoor","followers_url":"https://api.github.com/users/dpastoor/followers","following_url":"https://api.github.com/users/dpastoor/following{/other_user}","gists_url":"https://api.github.com/users/dpastoor/gists{/gist_id}","starred_url":"https://api.github.com/users/dpastoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpastoor/subscriptions","organizations_url":"https://api.github.com/users/dpastoor/orgs","repos_url":"https://api.github.com/users/dpastoor/repos","events_url":"https://api.github.com/users/dpastoor/events{/privacy}","received_events_url":"https://api.github.com/users/dpastoor/received_events","type":"User","site_admin":false},"created_at":"2018-05-19T03:46:35Z","updated_at":"2018-05-19T03:46:35Z","author_association":"NONE","body":"Thanks for the suggestion, I'm on the same computer, so that's not the issue. To be clear performance has not been the problem. I'm using nodejs for the insertions so I'm more worried that once I scale I will have 1000s of concurrent posts hitting the typesense server within a second or so leaves more chances for something to go wrong than a single batch insert.\r\n\r\nBasically right now I have a\r\n\r\nData.forEach(d => client.collections().documents().insert(d))\r\n\r\nWhereas I'd like to just be able to insert the whole array in one shot. \r\n\r\nDo you know what kind of post throughout I could safely expect before needing to consider bounding the requests? \r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"dpastoor"}}