Make usage of an DB index for transaction type in the rollover script

Description

Filtering by transactionType should use index in both places:

We have 2 options to resolve:

Environment

None

Potential Workaround

None

Checklist

hide

Activity

Show:

Serhii_NoskoJune 14, 2024 at 5:01 PM

Looks good, karate tests passed, thanks for finding an approach on how to speedup overall acq performance with these indexes and simplify rollover script code.

DamienJune 12, 2024 at 6:15 PM

I checked the performance impact of this change on fiscal year rollover.

The finance rollover (including the encumbrance script) is very fast, so I could not measure a difference for that.

The order rollover is still slow (despite and ), and it did make a difference because of all the requests to retrieve transactions based on the fiscal year id and po line ids (the PR improves the index for po line ids and it simplifies SQL expressions). Overall the rollover was about 30% faster (single measurement using 5000 order lines with encumbrances).

The transactionType is not used in the order rollover, but it is used in many other places, so this change will speed up other workflows.

DamienJune 12, 2024 at 1:26 PM

is not fixed yet, but we have a workaround now: generally use ObjectMapperTool.getMapper().writeValueAsString(entity) instead of JsonObject.mapFrom(entity).encode(), and simply send entity instead of JsonObject.mapFrom(entity) when using pgClient.update().

DamienMay 7, 2024 at 1:55 PM

I created about it.

DamienMay 6, 2024 at 4:46 PM

When updating RMB from 35.2.0 to 35.3.0-SNAPSHOT to use your latest PR, I get a lot of errors like this:

date/time field value out of range: "1715011526007"

I imagine this is related to RMB 35.2.1 and 35.2.2, but I don’t see any upgrade documentation for these versions. Is there something I need to do in order to use the latest RMB in mod-finance-storage ?

Done

Details

Assignee

Reporter

Priority

Sprint

Development Team

Thunderjet

Fix versions

Release

Ramsons (R2 2024)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 19, 2024 at 4:47 PM
Updated June 14, 2024 at 5:02 PM
Resolved June 14, 2024 at 5:02 PM
TestRail: Cases
TestRail: Runs