JohnLittle
Programmer
Hello everybody!
Could you anyone help me with the following? This must be interesting for eveyone, I believe, and I am probably newbie in BO not knowing that yet.
All of you knows how to create a report in BO, right? Simply using drag&drop... But when you set the query filters, there is a worry behind: using filters above very big tables may require creating a special SQL indexes in db schema.
Now the question is: is there any way how to set BO query builder/designer to replace/substitute selected filter with indexed field?
Simple example:
SELECT
a.BusinessTreeName,
b.PositionDescription,
c.CustExtAttValue
FROM
dbo.A021_InternalOrganization a,
dbo.A021_Position b,
dbo.A011_CustomerExtendedAttributes c
WHERE
a.BusinessTreeId = b.Position_BusinessTreeId
AND
( dbo.A011_CustomerExtendedAttributes.CustExtAtt_CustomerDwId=dbo.A011_Customer.CustomerDwId )
AND ( dbo.A011_Customer.CustomerDwId=dbo.A011_CustomerInternalOrganization.CustomerIntOrg_CustomerDwId )
AND ( dbo.A021_InternalOrganization.IntOrgDwId= dbo.A011_CustomerInternalOrganization.CustomerIntOrg_IntOrgDwId )
AND ( dbo.A021_Position.PositionDwId=dbo.A021_InternalOrganization.PositionDwId )
AND
(
dbo.A021_InternalOrganization.IntOrgBusinessTreeName = 'BUSNTREE01')
AND
dbo.A011_CustomerExtendedAttributes.CustExtAttDescription = 'National Key Account'
)
GROUP BY
dbo.A021_InternalOrganization.IntOrgBusinessTreeName,
dbo.A021_Position.PositionDescription,
dbo.A011_Customer.CustomerCode,
dbo.A011_CustomerExtendedAttributes.CustExtAttValue
As you can see for the query above, there are Name and Description fields used for filtering (and agregation), which slow down significantly performance of query.
Could you please advice me on it?
Thank you very much,
Jan
Could you anyone help me with the following? This must be interesting for eveyone, I believe, and I am probably newbie in BO not knowing that yet.
All of you knows how to create a report in BO, right? Simply using drag&drop... But when you set the query filters, there is a worry behind: using filters above very big tables may require creating a special SQL indexes in db schema.
Now the question is: is there any way how to set BO query builder/designer to replace/substitute selected filter with indexed field?
Simple example:
SELECT
a.BusinessTreeName,
b.PositionDescription,
c.CustExtAttValue
FROM
dbo.A021_InternalOrganization a,
dbo.A021_Position b,
dbo.A011_CustomerExtendedAttributes c
WHERE
a.BusinessTreeId = b.Position_BusinessTreeId
AND
( dbo.A011_CustomerExtendedAttributes.CustExtAtt_CustomerDwId=dbo.A011_Customer.CustomerDwId )
AND ( dbo.A011_Customer.CustomerDwId=dbo.A011_CustomerInternalOrganization.CustomerIntOrg_CustomerDwId )
AND ( dbo.A021_InternalOrganization.IntOrgDwId= dbo.A011_CustomerInternalOrganization.CustomerIntOrg_IntOrgDwId )
AND ( dbo.A021_Position.PositionDwId=dbo.A021_InternalOrganization.PositionDwId )
AND
(
dbo.A021_InternalOrganization.IntOrgBusinessTreeName = 'BUSNTREE01')
AND
dbo.A011_CustomerExtendedAttributes.CustExtAttDescription = 'National Key Account'
)
GROUP BY
dbo.A021_InternalOrganization.IntOrgBusinessTreeName,
dbo.A021_Position.PositionDescription,
dbo.A011_Customer.CustomerCode,
dbo.A011_CustomerExtendedAttributes.CustExtAttValue
As you can see for the query above, there are Name and Description fields used for filtering (and agregation), which slow down significantly performance of query.
Could you please advice me on it?
Thank you very much,
Jan