Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance del Batch di scadenza RPT #538

Closed
nardil opened this issue Oct 26, 2022 · 1 comment
Closed

Performance del Batch di scadenza RPT #538

nardil opened this issue Oct 26, 2022 · 1 comment

Comments

@nardil
Copy link
Member

nardil commented Oct 26, 2022

Descrizione del Bug
Le RPT v2 sono soggette ad un batch che individua quelle scadute per timeout al fine di aggiornarne lo stato.

La query che individua le RPT da far scadere presenta le seguenti inefficienze:

  1. Include le RPT gia' chiuse (aggiungere il filtro stato <> 'RPT_SCADUTA')
  2. Non applica un filtro temporale (aggiungere il data_msg_richiesta > '{data ultima esecuzione del batch con successo}')
  3. Manca l'indice sulla data_msg_richiesta (create index idx_rpt_data_msg_richiesta on rpt(data_msg_richiesta);)
@nardil nardil added this to the 3.7.0 milestone Oct 26, 2022
pintorig added a commit that referenced this issue Oct 26, 2022
Aggiunto indice sulla colonna iuv della tabella rendicontazioni.

Issue #538
Corrette inefficienze segnalate sulla ricerca delle RPT scadute.
@pintorig
Copy link
Member

Il filtro temporale che viene utilizzato e' il seguente:

(now - (2 * soglia_scadenza_rpt)) < data_msg_richiesta < (now - soglia_scadenza_rpt)

pintorig added a commit that referenced this issue Oct 26, 2022
Corrette inefficienze segnalate sulla ricerca delle RPT scadute.
@nardil nardil closed this as completed Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants