{"action":"created","issue":{"url":"https://api.github.com/repos/python-openxml/python-docx/issues/158","labels_url":"https://api.github.com/repos/python-openxml/python-docx/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/python-openxml/python-docx/issues/158/comments","events_url":"https://api.github.com/repos/python-openxml/python-docx/issues/158/events","html_url":"https://github.com/python-openxml/python-docx/issues/158","id":60461690,"number":158,"title":"Too slow document creation","user":{"login":"shreyasHpandya","id":1439158,"avatar_url":"https://avatars.githubusercontent.com/u/1439158?v=3","gravatar_id":"","url":"https://api.github.com/users/shreyasHpandya","html_url":"https://github.com/shreyasHpandya","followers_url":"https://api.github.com/users/shreyasHpandya/followers","following_url":"https://api.github.com/users/shreyasHpandya/following{/other_user}","gists_url":"https://api.github.com/users/shreyasHpandya/gists{/gist_id}","starred_url":"https://api.github.com/users/shreyasHpandya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shreyasHpandya/subscriptions","organizations_url":"https://api.github.com/users/shreyasHpandya/orgs","repos_url":"https://api.github.com/users/shreyasHpandya/repos","events_url":"https://api.github.com/users/shreyasHpandya/events{/privacy}","received_events_url":"https://api.github.com/users/shreyasHpandya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-10T07:39:42Z","updated_at":"2015-03-10T15:43:18Z","closed_at":null,"body":"I am creating a docx and writing nothing but a table in it with around 1k-2k rows and 5 columns. It takes around a minute to create on my MBP 8GB RAM and i5 cpu. On a shared hosting server with 512RAM it takes forever and the process gets killed eventually. Is it normal to take it this long? \r\nAny suggestion?"},"comment":{"url":"https://api.github.com/repos/python-openxml/python-docx/issues/comments/78081085","html_url":"https://github.com/python-openxml/python-docx/issues/158#issuecomment-78081085","issue_url":"https://api.github.com/repos/python-openxml/python-docx/issues/158","id":78081085,"user":{"login":"scanny","id":2062718,"avatar_url":"https://avatars.githubusercontent.com/u/2062718?v=3","gravatar_id":"","url":"https://api.github.com/users/scanny","html_url":"https://github.com/scanny","followers_url":"https://api.github.com/users/scanny/followers","following_url":"https://api.github.com/users/scanny/following{/other_user}","gists_url":"https://api.github.com/users/scanny/gists{/gist_id}","starred_url":"https://api.github.com/users/scanny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scanny/subscriptions","organizations_url":"https://api.github.com/users/scanny/orgs","repos_url":"https://api.github.com/users/scanny/repos","events_url":"https://api.github.com/users/scanny/events{/privacy}","received_events_url":"https://api.github.com/users/scanny/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T15:43:18Z","updated_at":"2015-03-10T15:43:18Z","body":"On my machine it takes about a second to add 1000 rows to a 5-column table. I expect the trouble is in sourcing the data. You could try accessing the data without actually writing it to the document and see how long that takes. If you're executing a SQL query for each row that would be the sort of thing that would explain the long time you're seeing."}}