What is the difference between `BatchRecordArrayListener` and `RecordArrayListener`?
mykytamykhailenko opened this issue · 2 comments
mykytamykhailenko commented
Judging by the documentation, they serve similar purpose, the only difference being slightly different API.
The question is, does BatchRecordArrayListener
has any performance improvements compared to RecordArrayListener
?
BrianNichols commented
BatchRecordArrayListener responds with BatchRecord[] which includes a resultCode for each key. RecordArrayListener responds with Record[] which does not include a resultCode for each key. If an error occurred for a key, the corresponding record will be null. Performance differences are negligible.
RecordArrayListener was used in the original batch read only implementation and still exists in that form for legacy reasons.
mykytamykhailenko commented
good, thank you for clarifications