<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Migrating from 5.4.2 to 5.5 - phrase search - heavy ALTER TABLE queries in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/migrating-from-5-4-2-to-5-5-phrase-search-heavy-alter-table/m-p/313401#M402</link>
    <description>&lt;P&gt;It seems this workaround only apply if you are migrating from a previous 5.3.2 version. If you are migrating from a 5.4.2 to 5.5, try the following steps.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Stop your instance&lt;/LI&gt;
&lt;LI&gt;Create a new database using this command: create database nuxeo55 owner nuxeo encoding 'UTF8' template nuxeo542; (replace nuxeo542 with the name of your 5.4.2 database&lt;/LI&gt;
&lt;LI&gt;Download, uncompress and run Nuxeo 5.5.&lt;/LI&gt;
&lt;LI&gt;Go to the wizard and in the step of database config, put the data of your new database&lt;/LI&gt;
&lt;LI&gt;Complete the wizard and wait the restart&lt;/LI&gt;
&lt;LI&gt;Go to login page and try to log with your credentials&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I used this method several times without problems.&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;</description>
    <pubDate>Sat, 05 Mar 2016 11:42:19 GMT</pubDate>
    <dc:creator>jmnrk_</dc:creator>
    <dc:date>2016-03-05T11:42:19Z</dc:date>
    <item>
      <title>Migrating from 5.4.2 to 5.5 - phrase search - heavy ALTER TABLE queries</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/migrating-from-5-4-2-to-5-5-phrase-search-heavy-alter-table/m-p/313400#M401</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;
&lt;P&gt;we are performing a migration from 5.4.2 to 5.5 and following the steps here &lt;A href="https://doc.nuxeo.com/display/ADMINDOC/Upgrade+from+5.4.2+to+5.5" target="test_blank"&gt;https://doc.nuxeo.com/display/ADMINDOC/Upgrade+from+5.4.2+to+5.5&lt;/A&gt; we've found that to activate phrase search, we have to follow the steps here &lt;A href="https://jira.nuxeo.com/browse/NXP-5689" target="test_blank"&gt;https://jira.nuxeo.com/browse/NXP-5689&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Everithing worked as expected but, when we are upgrading fulltext fields using the custom function &lt;CODE&gt;tsvector_to_text&lt;/CODE&gt; it spents a huge period of time upgrading &lt;CODE&gt;binatytext&lt;/CODE&gt; field
See this in postgres log file:
&lt;CODE&gt;2016-02-22 08:23:59 CET [20994]: [1-1] LOG: duration: 471476742.785 ms statement: ALTER TABLE fulltext ALTER binarytext TYPE text USING tsvector_to_text(binarytext);&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Which is more than 5,45 days.. but the query is still working. The first ALTER TABLE worked fine (2h aprox.)
&lt;CODE&gt;ALTER TABLE fulltext ALTER simpletext TYPE text USING tsvector_to_text(simpletext);  &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;But this second one is spending too much time. Any suggestion?
Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 09:28:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/migrating-from-5-4-2-to-5-5-phrase-search-heavy-alter-table/m-p/313400#M401</guid>
      <dc:creator>Paco_Alías</dc:creator>
      <dc:date>2016-02-22T09:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating from 5.4.2 to 5.5 - phrase search - heavy ALTER TABLE queries</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/migrating-from-5-4-2-to-5-5-phrase-search-heavy-alter-table/m-p/313401#M402</link>
      <description>&lt;P&gt;It seems this workaround only apply if you are migrating from a previous 5.3.2 version. If you are migrating from a 5.4.2 to 5.5, try the following steps.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Stop your instance&lt;/LI&gt;
&lt;LI&gt;Create a new database using this command: create database nuxeo55 owner nuxeo encoding 'UTF8' template nuxeo542; (replace nuxeo542 with the name of your 5.4.2 database&lt;/LI&gt;
&lt;LI&gt;Download, uncompress and run Nuxeo 5.5.&lt;/LI&gt;
&lt;LI&gt;Go to the wizard and in the step of database config, put the data of your new database&lt;/LI&gt;
&lt;LI&gt;Complete the wizard and wait the restart&lt;/LI&gt;
&lt;LI&gt;Go to login page and try to log with your credentials&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I used this method several times without problems.&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2016 11:42:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/migrating-from-5-4-2-to-5-5-phrase-search-heavy-alter-table/m-p/313401#M402</guid>
      <dc:creator>jmnrk_</dc:creator>
      <dc:date>2016-03-05T11:42:19Z</dc:date>
    </item>
  </channel>
</rss>

