im trying to fetch data from a huge table recursively within a workflow (see the snapshot). im getting this error.
my error:
Workflow journal size limit exceeded (1066648 bytes > 1048576 bytes).
Consider breaking up the workflow into multiple runs, using smaller step arguments or return values, or using fewer steps.
seems like each step sums up into total data usage (which im aware its 1Mib).
limitations from the doc:
Steps can only take in and return a total of 1 MiB of data within a single workflow execution. If you run into journal size limits, you can work around this by storing results within your worker functions and then passing IDs around within the the workflow.
I need advice on how to build the workaround for this.
i dont understand what that part
storing results within your worker functions and passing the Id around
please help!