Encoder update curves on SQL as transaction: fast