Recupero dati da Exact Online. Pare che l’API di Exact sia diventata molto più lenta. Di conseguenza, la mia semplice query ora richiede moltissimo tempo. Si tratta tipicamente di meno di 500 righe da recuperare, eppure ci mette tra i 15 e i 20 minuti…
Sto quindi cercando di capire come rendere la mia query più efficiente in modo che il recupero dei dati sia più veloce. Ecco la query:
select ProjectCode
, ProjectDescription
, ItemDescription
, Employee
, Date
, sum(Quantity)
from ( select Hourstatus
, ProjectCode
, ProjectDescription
, ItemDescription
, Quantity
, employee
, date
, to_char(Date, 'YYYY') year
, to_char(Date, 'IW') week
from ExactOnlineREST.Project.PjtTimeTransactions
)
where hourstatus <> "2"
and year > "2021"
and week = $X{'Overview Per Person'!C1}
and week < '53'
group
by projectcode
, ProjectDescription
, ItemDescription
, Employee
, date
order
by Employee
, date
, projectcode
, ItemDescription