From: danielhanrahan Date: Thu, 13 Apr 2023 20:01:58 +0000 (+0100) Subject: Remove 32K limit from queries with collection parameters X-Git-Tag: 3.3.1~9^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=796c4dcf56a1aafc58773bedc82ddef5242a108c;hp=796c4dcf56a1aafc58773bedc82ddef5242a108c;p=cps.git Remove 32K limit from queries with collection parameters SQL queries taking collection parameters currently create a seperate query parameter for each collection element. There is a limit of around 2^15 (32,768) query parameters. Postgres DB natively supports array types, in which the whole array is transmitted in binary as a single parameter. Changing queries to use arrays removes the 32K limit on queries. - Add support for Postgres arrays to queries - Change repository methods to use arrays, and provide overloaded versions taking collection parameters - Update tests to reflect 32K limit being lifted Issue-ID: CPS-1573 Signed-off-by: danielhanrahan Change-Id: I64f2aeaedbe54bfe12e3079cba0f2216759142c3 ---