<?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 Nuxeo DB queries are taking too much time to execute. in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-db-queries-are-taking-too-much-time-to-execute/m-p/326831#M13832</link>
    <description>&lt;P&gt;I am running performance tests on Nuxeo starting from 2 TPS and I am getting the below queries which are taking too much time to execute. Also, they are getting executed multiple times per transaction of upload API.&lt;/P&gt;
&lt;P&gt;1st Query: UPDATE "kv_transient_batchmanagercache" SET "long" = $1, "ttl" = $2 WHERE "key" = $3 AND "long" = $4&lt;/P&gt;
&lt;P&gt;2nd Query: SELECT DISTINCT "hierarchy"."id" AS "_C1" FROM "hierarchy" LEFT JOIN "dms" "_F1" ON "hierarchy"."id" = "_F1"."id" LEFT JOIN "dublincore" "_F2" ON "hierarchy"."id" = "_F2"."id" LEFT JOIN "dms_proof_type" "_F3" ON "hierarchy"."id" = "_F3"."id" LEFT JOIN "versions" "_F4" ON "hierarchy"."id" = "_F4"."id" WHERE (("hierarchy"."primarytype" IN ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49)) AND ("_F1"."case_id" = $50) AND (("hierarchy"."istrashed" = $59 OR "hierarchy"."istrashed" IS NULL)) AND ("_F1"."platform_identifier" = $51) AND ("_F1"."product_code" = $52) AND ("_F1"."applicant_id" = $53) AND ("_F1"."tenant_id" = $54) AND ("_F1"."proof_name" = $55) AND ("_F2"."title" = $56) AND ("_F3"."item" = $57) AND ("_F4"."versionableid" IS NULL ) AND ("_F1"."application_role" = $58))&lt;/P&gt;
&lt;P&gt;are these queries mandatory to execute for an upload operation? Is there any way to switch off the execution of these queries? Why they are getting called for multiple time?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2021 13:35:21 GMT</pubDate>
    <dc:creator>Ankush_Bandil</dc:creator>
    <dc:date>2021-02-03T13:35:21Z</dc:date>
    <item>
      <title>Nuxeo DB queries are taking too much time to execute.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-db-queries-are-taking-too-much-time-to-execute/m-p/326831#M13832</link>
      <description>&lt;P&gt;I am running performance tests on Nuxeo starting from 2 TPS and I am getting the below queries which are taking too much time to execute. Also, they are getting executed multiple times per transaction of upload API.&lt;/P&gt;
&lt;P&gt;1st Query: UPDATE "kv_transient_batchmanagercache" SET "long" = $1, "ttl" = $2 WHERE "key" = $3 AND "long" = $4&lt;/P&gt;
&lt;P&gt;2nd Query: SELECT DISTINCT "hierarchy"."id" AS "_C1" FROM "hierarchy" LEFT JOIN "dms" "_F1" ON "hierarchy"."id" = "_F1"."id" LEFT JOIN "dublincore" "_F2" ON "hierarchy"."id" = "_F2"."id" LEFT JOIN "dms_proof_type" "_F3" ON "hierarchy"."id" = "_F3"."id" LEFT JOIN "versions" "_F4" ON "hierarchy"."id" = "_F4"."id" WHERE (("hierarchy"."primarytype" IN ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49)) AND ("_F1"."case_id" = $50) AND (("hierarchy"."istrashed" = $59 OR "hierarchy"."istrashed" IS NULL)) AND ("_F1"."platform_identifier" = $51) AND ("_F1"."product_code" = $52) AND ("_F1"."applicant_id" = $53) AND ("_F1"."tenant_id" = $54) AND ("_F1"."proof_name" = $55) AND ("_F2"."title" = $56) AND ("_F3"."item" = $57) AND ("_F4"."versionableid" IS NULL ) AND ("_F1"."application_role" = $58))&lt;/P&gt;
&lt;P&gt;are these queries mandatory to execute for an upload operation? Is there any way to switch off the execution of these queries? Why they are getting called for multiple time?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 13:35:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-db-queries-are-taking-too-much-time-to-execute/m-p/326831#M13832</guid>
      <dc:creator>Ankush_Bandil</dc:creator>
      <dc:date>2021-02-03T13:35:21Z</dc:date>
    </item>
  </channel>
</rss>

