{"id":8715,"date":"2017-04-14T13:04:53","date_gmt":"2017-04-14T17:04:53","guid":{"rendered":"https:\/\/www.ezrasf.com\/wplog\/?p=8715"},"modified":"2017-04-14T13:04:53","modified_gmt":"2017-04-14T17:04:53","slug":"rote-loading","status":"publish","type":"post","link":"https:\/\/www.ezrasf.com\/wplog\/2017\/04\/14\/rote-loading\/","title":{"rendered":"Rote Loading"},"content":{"rendered":"<p>With this specific application, we can import data, but there are limitations due to its 2000-era handling of XML files.<\/p>\n<ol>\n<li>HTML forms uploading files have to&#8230;\n<ol>\n<li>Have all the packets be received by the server.<\/li>\n<li>Process the file with the browser connection still open.<\/li>\n<li>The server has to tell the browser everything was received and is done.<\/li>\n<\/ol>\n<\/li>\n<li>All this has to happen as one action within a 5 minute window.<\/li>\n<\/ol>\n<p>A better method would allow just uploading the files to a page. Background processes would monitor that location and process the files independent of the browser. Notifications can be sent to alert the user the processing is done.<\/p>\n<p>Or&#8230; recognize the echo XML file because you took too long and prevent it from being loaded or remove the data.<\/p>\n<p>I ended up figuring out that if we split the files at about 5,000 records, then it should take about half the 5 minute window. I am pleased that for most I have seen that is true and about one in ten take so much longer that if I had cheated and gone with closer to the 5 minutes, I would be deleting duplicates. (This last is because some files are 50MB and others 100MB.)<\/p>\n<p>The grumbling of this post is that I am on the 25th of 58 files. This is tedious. I am lamenting not creating a curl script to do this part for me. Automation is perfect for things like this.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With this specific application, we can import data, but there are limitations due to its 2000-era handling of XML files. HTML forms uploading files have to&#8230; Have all the packets be received by the server. Process the file with the browser connection still open. The server has to tell the browser everything was received and [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3100],"tags":[1872,3273,1797,362],"class_list":["post-8715","post","type-post","status-publish","format-standard","hentry","category-automation","tag-automation","tag-background-process","tag-html","tag-xml"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1rUBW-2gz","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts\/8715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/comments?post=8715"}],"version-history":[{"count":0,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/posts\/8715\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/media?parent=8715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/categories?post=8715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ezrasf.com\/wplog\/wp-json\/wp\/v2\/tags?post=8715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}