maykinmedia / commonground-api-common

Shared functions between Common Ground API components
0 stars 0 forks source link

Refactor gegevensgroep/gegevensgroepserializer implementation #4

Open sergei-maertens opened 1 year ago

sergei-maertens commented 1 year ago

Currently the GegevensGroepSerializer works by invoking multiple setattr calls on the instance after calling the parent create() or update() methods. This is done in an atomic DB transaction, which has some drawbacks:

The performance problems have been observed in the Zaak create endpoint in Open Zaak, see open-zaak/open-zaak#1271

This should instead be reworked according to the following ideas/principles: