{"id":501,"date":"2008-07-11T11:05:33","date_gmt":"2008-07-11T15:05:33","guid":{"rendered":"http:\/\/www.dr-chuck.com\/wordpress\/?p=501"},"modified":"2011-12-17T12:26:45","modified_gmt":"2011-12-17T16:26:45","slug":"progress-on-sak-13584-mailarchive-performance-improvements","status":"publish","type":"post","link":"https:\/\/www.dr-chuck.com\/csev-blog\/2008\/07\/progress-on-sak-13584-mailarchive-performance-improvements\/","title":{"rendered":"Progress on SAK-13584 &#8211; MailArchive Performance Improvements"},"content":{"rendered":"<p>I got the conversion working and all the code checked in.  I used the Ian\/Jim conversion gadget.  Initially it looked like a crazy contraption.  It turns out to be pretty cool &#8211; just undocumented &#8211; and the way Jim\/Ian used it in Content was totally Ninja-warrior.<br \/>\nLuckily my new conversion code is a *much* better sample to work from &#8211; because it is simple.  Some documentation should be written.<br \/>\nSo it is now off to Tony for testing.  More detail below.<br \/>\nNow I am off to go get my motorcycle gear from www.ridersdiscount.com.  So for the rest of the day &#8211; call the cell.<\/p>\n<p><!--more--><br \/>\nThe first version is up &#8211; primarily for testing &#8211; I only have a mysql convertor.  It runs with mysql and hsql.  Here are checkout, compile, and conversion instructions:<br \/>\nGrab the following branches:<br \/>\nhttps:\/\/source.sakaiproject.org\/svn\/db\/branches\/SAK-13584\/<br \/>\nhttps:\/\/source.sakaiproject.org\/svn\/mailarchive\/branches\/SAK-13584\/<br \/>\nhttps:\/\/source.sakaiproject.org\/svn\/util\/branches\/SAK-13584\/<br \/>\nCompile and deploy<br \/>\nRun the conversion<br \/>\ncd mailarchive<br \/>\nEdit upgradeschema-mysql.config to get the database connection right.<br \/>\nRun the script:<br \/>\nsh  mailarchive-runconversion.sh  \\<br \/>\n-j &#8220;\/Users\/csev\/dev\/sakai-trunk\/apache-tomcat-5.5.23\/common\/lib\/mysql-connector-java-5.1.6-bin.jar&#8221; \\<br \/>\n-p &#8220;\/Users\/csev\/dev\/sakai-trunk\/apache-tomcat-5.5.23\/sakai\/sakai.properties&#8221; \\<br \/>\nupgradeschema-mysql.config<br \/>\nCheck to see if the BODY, SUBJECT, and HTMLBODY columns look reasonable.  The conversion can be stopped and started.  If you want to undo the conversion simply execute these commands:<br \/>\nALTER TABLE MAILARCHIVE_MESSAGE DROP COLUMN SUBJECT;<br \/>\nALTER TABLE MAILARCHIVE_MESSAGE DROP COLUMN BODY;<br \/>\nALTER TABLE MAILARCHIVE_MESSAGE DROP COLUMN HTMLBODY;<br \/>\n&#8211;Chuck<br \/>\nTest Scenario for this interim version &#8211; RUN this test and send me catalina.out<br \/>\nHere are the needed clicks &#8211; keep track of which ones are dog slow and which ones are fast. I expect that the non-search queries will be quite fast.  And even the search queries should be tolerable.<br \/>\nGo to the mail tool in a site with lots of messages &#8211; do not enter a search value<br \/>\nPress next page 2 times<br \/>\nPress back page<br \/>\nPress last page<br \/>\nPress back page twice<br \/>\nPress first page<br \/>\nEnter a message<br \/>\nPress next message twice<br \/>\nPress back message once<br \/>\nSwitch to Sort by Subject<br \/>\nSwitch to Ascending and descending<br \/>\nPress back page<br \/>\nPress last page<br \/>\nPress back page twice<br \/>\nPress first page<br \/>\nNow put in a search string that is common and repeat the above steps.<br \/>\nNow put in a rare search string and repeat the above steps.<br \/>\nSend me back the catalina.out &#8211; thanks muchly<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got the conversion working and all the code checked in. I used the Ian\/Jim conversion gadget. Initially it looked like a crazy contraption. It turns out to be pretty cool &#8211; just undocumented &#8211; and the way Jim\/Ian used it in Content was totally Ninja-warrior. Luckily my new conversion code is a *much* better [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-501","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/comments?post=501"}],"version-history":[{"count":1,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/501\/revisions"}],"predecessor-version":[{"id":2602,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/501\/revisions\/2602"}],"wp:attachment":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/media?parent=501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/categories?post=501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/tags?post=501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}