{"id":1728,"date":"2011-10-17T01:12:38","date_gmt":"2011-10-17T01:12:38","guid":{"rendered":"https:\/\/www.wapshere.com\/missmiis\/?p=1728"},"modified":"2011-10-17T01:12:38","modified_gmt":"2011-10-17T01:12:38","slug":"csexport-fast-on-a-new-ma-ssllooowwwwww-on-an-upgraded-one","status":"publish","type":"post","link":"https:\/\/www.wapshere.com\/missmiis\/csexport-fast-on-a-new-ma-ssllooowwwwww-on-an-upgraded-one","title":{"rendered":"Csexport fast on a new MA, ssllooowwwwww on an upgraded one"},"content":{"rendered":"<p>This is just an observation, and if anyone&#8217;s got any ideas or suggestions do let me know.<\/p>\n<p>I&#8217;m working on a FIM Sync service that I&#8217;ve upgraded from ILM by the database transfer method. I had to recreate one MA completely, and re-import and re-join all it&#8217;s objects.<\/p>\n<p>I was running some csexports against a few of the MAs to get info about pending exports and noticed this:<\/p>\n<ul>\n<li>csexport against the upgraded MAs was extremely slow, but<\/li>\n<li>csexport against the new MA was super fast.<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>The MAs all have roughly similar numbers of objects (15-20k) and the number of pending exports for each MA was in the low hundreds.<\/p>\n<p>So why the big difference?<\/p>\n<p>My first theory was that the data for the upgraded MAs was scattered around in the DB, while the re-imported MA had nicely consecutive rows. So I deleted and re-imported the CS for one of the upgraded MAs. Result: csexport still slow.<\/p>\n<p>I wondered if perhaps the upgraded MAs had some structural hangover from ILM that slowed them down &#8211; but nothing jumps out at me in the database, and when I ran a SQL trace while running the csexports I could see the same stored procedure being called for all of them.<\/p>\n<p>So I&#8217;m still stumped. I suppose another good test would be to completely delete and re-create one of the MAs &#8211; but I&#8217;m not going to slow this project down just to satisfy my curiosity.<\/p>\n<p>If anyone has any ideas about what&#8217;s going on I&#8217;d be glad to hear!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is just an observation, and if anyone&#8217;s got any ideas or suggestions do let me know. I&#8217;m working on a FIM Sync service that I&#8217;ve upgraded from ILM by the database transfer method. I had to recreate one MA completely, and re-import and re-join all it&#8217;s objects. I was running some csexports against a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[42,34,53],"tags":[],"class_list":["post-1728","post","type-post","status-publish","format-standard","hentry","category-fim-2010","category-ilm2007","category-performance"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pkp1o-rS","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/1728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/comments?post=1728"}],"version-history":[{"count":6,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/1728\/revisions"}],"predecessor-version":[{"id":1735,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/1728\/revisions\/1735"}],"wp:attachment":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/media?parent=1728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/categories?post=1728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/tags?post=1728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}