<?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 Closing a sql directory session for you in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/closing-a-sql-directory-session-for-you/m-p/323812#M10813</link>
    <description>&lt;P&gt;I am writing code to load a dictionary from a CSV. (Have to implement some custom functionality.) I am looping through the CSV and have code to commit every 10,000 rows. I'm using &lt;CODE&gt;session.createEntry&lt;/CODE&gt; to insert each dictionary entry. Two questions:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Coming from a database background, best practice is to commit periodically. Is this a valid approach here? (We could have large volumes)&lt;/LI&gt;
&lt;LI&gt;So far I am only running tests. In the test, when I call &lt;CODE&gt;TransactionHelper.commitOrRollbackTransaction&lt;/CODE&gt; I am getting a warning: &lt;CODE&gt;[SQLDirectory$TxSessionCleaner] Closing a sql directory session for you SQLSession[directory=&amp;lt;mydir&amp;gt;, sid=&amp;lt;-nnnnnnnnnnnnnn&amp;gt;]&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;On entry into the loop I am checking to see if a transaction is active. If not, I create one. However, on entry into the loop it appears that a transaction is always active. I am only using one &lt;CODE&gt;PlatformFeature.class&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2017 12:22:44 GMT</pubDate>
    <dc:creator>Eric_Ace</dc:creator>
    <dc:date>2017-03-16T12:22:44Z</dc:date>
    <item>
      <title>Closing a sql directory session for you</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/closing-a-sql-directory-session-for-you/m-p/323812#M10813</link>
      <description>&lt;P&gt;I am writing code to load a dictionary from a CSV. (Have to implement some custom functionality.) I am looping through the CSV and have code to commit every 10,000 rows. I'm using &lt;CODE&gt;session.createEntry&lt;/CODE&gt; to insert each dictionary entry. Two questions:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Coming from a database background, best practice is to commit periodically. Is this a valid approach here? (We could have large volumes)&lt;/LI&gt;
&lt;LI&gt;So far I am only running tests. In the test, when I call &lt;CODE&gt;TransactionHelper.commitOrRollbackTransaction&lt;/CODE&gt; I am getting a warning: &lt;CODE&gt;[SQLDirectory$TxSessionCleaner] Closing a sql directory session for you SQLSession[directory=&amp;lt;mydir&amp;gt;, sid=&amp;lt;-nnnnnnnnnnnnnn&amp;gt;]&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;On entry into the loop I am checking to see if a transaction is active. If not, I create one. However, on entry into the loop it appears that a transaction is always active. I am only using one &lt;CODE&gt;PlatformFeature.class&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 12:22:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/closing-a-sql-directory-session-for-you/m-p/323812#M10813</guid>
      <dc:creator>Eric_Ace</dc:creator>
      <dc:date>2017-03-16T12:22:44Z</dc:date>
    </item>
  </channel>
</rss>

