Forum Discussion
That would be quick enough. But in this case, I added 147 child records (via Import, because I'm testing reports, so the Form Engine doesn't come into it in this case, just FYI). And the pipeline then added 34 parent records - in 32 minutes. So I think something is not right.
I've tried to provide a scrubbed YAML below, can you tell from this why it's so slow?
A: On Insert
| - TRIGGER on_create -> a: table: '"Child Table |
B: Prepare to insert or update parent table
| ACTION bulk_record_set define -> b: |
C: using only recent records as candidates (to avoid looking at the whole table, which will get very large)
| - - QUERY record search -> c: |
D: Prepare records for insert or update
| inputs-meta: |
E: Commit
| inputs: |
- MarkShnier__You4 days ago
Qrew Legend
I think there's a problem with your pipeline. The pipeline should be as I described in the answer in your link. When a record is created, and it doesn't have a parent, then the pipeline is triggered. It creates a bulk record upsert, then adds the one row into the upsert, and it commits the upsert. There is no query for records created in the last five minutes. The pipeline simply acts on the individual Orphan records as they are created.