<?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: ODBC PSQL Options: Use Declare/Fetch, Cache Size in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/ODBC-PSQL-Options-Use-Declare-Fetch-Cache-Size/m-p/2536587#M32388</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The error you are encountering in Qlik Sense, “Out of memory while reading tuples,” typically occurs when the PostgreSQL ODBC driver attempts to fetch an entire large result set into memory at once. This can be mitigated by enabling the Use Declare/Fetch option in the ODBC settings, which allows the driver to use server-side cursors and fetch rows in smaller chunks instead of loading all rows at once. Alongside this, setting the Cache Size to a high value, such as 100,000, determines how many rows are fetched per round trip from the server, balancing memory usage and performance. Both settings are supported by Qlik Sense and can help prevent memory allocation errors while working with large datasets.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;A href="https://www.ez-passnh.com" target="_self"&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#FFFFFF"&gt;E-ZPass New Hampshire&lt;/FONT&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Wed, 19 Nov 2025 10:40:09 GMT</pubDate>
    <dc:creator>andy449holland</dc:creator>
    <dc:date>2025-11-19T10:40:09Z</dc:date>
    <item>
      <title>ODBC PSQL Options: Use Declare/Fetch, Cache Size</title>
      <link>https://community.qlik.com/t5/Management-Governance/ODBC-PSQL-Options-Use-Declare-Fetch-Cache-Size/m-p/2536146#M32367</link>
      <description>&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;I have a QlikSense installation that connects to a Postgres db.&amp;nbsp; Frequently, we get the following error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Error: Connector reply error: SQL##f - SqlState: S1001, ErrorCode: 4, ErrorMsg: Out of memory while reading tuples.;
memory allocation error???&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This error seems to come from the ODBC running out of memory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution from various forums seems to be to set &lt;STRONG&gt;Use Declare/Fetch&lt;/STRONG&gt; =&amp;gt; 1/Checked, and to set the &lt;STRONG&gt;Cache Size&lt;/STRONG&gt;=100000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know if setting such options on an ODBC will work with Qlik?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2025 19:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/ODBC-PSQL-Options-Use-Declare-Fetch-Cache-Size/m-p/2536146#M32367</guid>
      <dc:creator>justindallasverizon</dc:creator>
      <dc:date>2025-11-13T19:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC PSQL Options: Use Declare/Fetch, Cache Size</title>
      <link>https://community.qlik.com/t5/Management-Governance/ODBC-PSQL-Options-Use-Declare-Fetch-Cache-Size/m-p/2536587#M32388</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The error you are encountering in Qlik Sense, “Out of memory while reading tuples,” typically occurs when the PostgreSQL ODBC driver attempts to fetch an entire large result set into memory at once. This can be mitigated by enabling the Use Declare/Fetch option in the ODBC settings, which allows the driver to use server-side cursors and fetch rows in smaller chunks instead of loading all rows at once. Alongside this, setting the Cache Size to a high value, such as 100,000, determines how many rows are fetched per round trip from the server, balancing memory usage and performance. Both settings are supported by Qlik Sense and can help prevent memory allocation errors while working with large datasets.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;A href="https://www.ez-passnh.com" target="_self"&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#FFFFFF"&gt;E-ZPass New Hampshire&lt;/FONT&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 10:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/ODBC-PSQL-Options-Use-Declare-Fetch-Cache-Size/m-p/2536587#M32388</guid>
      <dc:creator>andy449holland</dc:creator>
      <dc:date>2025-11-19T10:40:09Z</dc:date>
    </item>
  </channel>
</rss>

