" /> Query information - Genesys CTI User Forum

Author Topic: Query information  (Read 1533 times)

Offline CASANOVA

  • Newbie
  • *
  • Posts: 42
  • Karma: 0
Query information
« on: January 13, 2018, 06:19:38 AM »
Advertisement
Hi,

Can any one help me what is the below query is.

select *
from
(select Interaction.StartDate, Interaction.MediaTypeId, Interaction.SubtypeId, Interaction.TypeId, Interaction.Subject, Interaction.Id, Interaction.TenantId
from Interaction
where (Interaction.ContactId = :1 ) and (Interaction.StartDate >= :2 ) order by Interaction.StartDate desc )
WHERE ROWNUM <= 2000

This query is firing on database and is not getting completed quickly. Due to this UCS transactions are getting delayed ans Slowness in Eservice is observed.


Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: Query information
« Reply #1 on: January 13, 2018, 03:57:27 PM »
Probably its WDE asking UCS for all the interactions of a specific customer. Try to create a composite Index on the database for the table Interaction on fields CustomerId and Start Date (Desc). Also, be sure to perform regular database maintenance, such as index rebuild and table defragmentation