<?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 Is it possible to override some sql queries?  in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-override-some-sql-queries/m-p/23590#M10297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found out that some queries are not optimal, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select count(distinct RES.ID_) from ACT_RU_TASK RES inner join ACT_RU_VARIABLE A0 on RES.PROC_INST_ID_ = A0.PROC_INST_ID_ WHERE ( exists(select LINK.USER_ID_ from ACT_RU_IDENTITYLINK LINK where USER_ID_ = ? and LINK.TASK_ID_ = RES.ID_) or RES.ASSIGNEE_ = ? or RES.OWNER_ = ? ) and A0.TASK_ID_ is null and A0.NAME_= ? and A0.TYPE_ = ? and A0.TEXT_ = ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to override this query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2018 09:28:54 GMT</pubDate>
    <dc:creator>rnovikov</dc:creator>
    <dc:date>2018-04-09T09:28:54Z</dc:date>
    <item>
      <title>Is it possible to override some sql queries?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-override-some-sql-queries/m-p/23590#M10297</link>
      <description>I found out that some queries are not optimal, for example:select count(distinct RES.ID_) from ACT_RU_TASK RES inner join ACT_RU_VARIABLE A0 on RES.PROC_INST_ID_ = A0.PROC_INST_ID_ WHERE ( exists(select LINK.USER_ID_ from ACT_RU_IDENTITYLINK LINK where USER_ID_ = ? and LINK.TASK_ID_ = RES.ID_) or RE</description>
      <pubDate>Mon, 09 Apr 2018 09:28:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-override-some-sql-queries/m-p/23590#M10297</guid>
      <dc:creator>rnovikov</dc:creator>
      <dc:date>2018-04-09T09:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to override some sql queries?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-override-some-sql-queries/m-p/23591#M10298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably can, but you will need to make sure that your query is correct for all the use cases that the previous one was defined.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would rather recommend to submit a PR with a test case that demonstrate that the new query is better, so we can all benefit from it.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 12:52:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-override-some-sql-queries/m-p/23591#M10298</guid>
      <dc:creator>salaboy</dc:creator>
      <dc:date>2018-04-24T12:52:46Z</dc:date>
    </item>
  </channel>
</rss>

