Hi Alumio,
We don’t often use the ‘move between accessors’, but it’s very useful in a lot scenario’s. Especially when you have a structure like this:
{
"values": {
"name": {
"data": "Product X"
},
"ean": {
"data": "203958093285"
}
}
And you’d like a structure like this:
{
"values": [
{
"key": "name",
"value": {
"data": "Product X"
}
},
{
"key": "ean",
"value": [
{
"data": "203958093285"
}
]
}
]
}
However, the Move Between Accessors uses a lot of memory and is fairly slow.
move-between-accessors-memory-issue-not-working-example_transformer.ndjson (1.0 KB)
Attached a small transformer. It creates an array of objects (with one key) with 5.000 items and then uses the Move Between Accessors. It breaks due to memory issues.