{"id":436,"date":"2008-02-11T20:36:45","date_gmt":"2008-02-12T00:36:45","guid":{"rendered":"http:\/\/www.dr-chuck.com\/wordpress\/?p=436"},"modified":"2011-12-17T12:25:34","modified_gmt":"2011-12-17T16:25:34","slug":"mailarchive-performance-improvement-works-on-oracle","status":"publish","type":"post","link":"https:\/\/www.dr-chuck.com\/csev-blog\/2008\/02\/mailarchive-performance-improvement-works-on-oracle\/","title":{"rendered":"MailArchive Performance Improvement &#8211; Works on Oracle"},"content":{"rendered":"<p>I used Oracle for the first time in my life today &#8211; thanks to help from David Haines &#8211; it was not nearly as scary as I had imagined.  David told me about henplus &#8211; which is the &#8220;vi&#8221; of database debugging tools &#8211; fits my style perfectly.<br \/>\nHe walked me through my properties and getting connected to the database.  Once connected &#8211; it felt a lot like any other database.  Hey &#8211; put semicolons at the end.<br \/>\nThe MailArchive paging code came together in three compiles.  Here are some cool queries.<br \/>\nselect * from ( select a.*, rownum rnum from ( select XML from MAILARCHIVE_MESSAGE where (CHANNEL_ID = ? ) order by MESSAGE_DATE desc ) a where rownum <= 20 ) where rnum >= 11<br \/>\nNote that the rows start from 1 &#8211; unlike the LIMIT in HSQL or MySql &#8211; where the rows start from zero.  But all in all pretty straightforward.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I used Oracle for the first time in my life today &#8211; thanks to help from David Haines &#8211; it was not nearly as scary as I had imagined. David told me about henplus &#8211; which is the &#8220;vi&#8221; of database debugging tools &#8211; fits my style perfectly. He walked me through my properties and [&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-436","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\/436","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=436"}],"version-history":[{"count":1,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/436\/revisions"}],"predecessor-version":[{"id":2531,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/436\/revisions\/2531"}],"wp:attachment":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/media?parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/categories?post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/tags?post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}