on 11-15-2022 3:39 AM
Team,
We have 2 Docstore/Collection tables. We need to join them and get appropriate data. We are facing following performance issues :
1. We need to create respective views as direct joining of these Docstores/collections is not allowed.
2. With large volume of data, it is taking huge time to execute the queries on joining these views.
Can someone please help us to solve this non-performant views' query execution issue ?
WITH BDI AS
(SELECT DISTINCT "ATS"."BillingDocumentItem" AS billNoFromArchivableInstances FROM "instances" WHERE "ATS"."SC_End_Time" <= '2017-08-15T11:59:03.493Z'),
INS AS
(SELECT DISTINCT "ATS"."BillingDocumentItem" AS billNoFromNonArchivableInstances FROM "instances" WHERE "ATS"."SC_End_Time" > '2017-08-15T11:59:03.493Z')
SELECT * FROM BDI
LEFT JOIN INS
ON BDI.billNoFromArchivableInstances = INS.billNoFromNonArchivableInstances
WHERE INS.billNoFromNonArchivableInstances IS NULL;
Here "instances" is doc store collection. This query finds the left join without the common intersecting portion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.