Commit 735320d
authored
Started batch inserting automation action edges (TryGhost#28521)
towards https://linear.app/ghost/issue/NY-1340
`replaceAutomationGraph` makes a number of trips to the database when it
doesn't need to. We should fix this for performance.
This fixes one of those spots: inserting a batch of action edges,
instead of doing them one-by-one.
We'll do more [soon][0].
[0]: https://linear.app/ghost/issue/NY-13401 parent 22812c1 commit 735320d
1 file changed
Lines changed: 7 additions & 6 deletions
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
661 | | - | |
662 | | - | |
663 | | - | |
| 661 | + | |
664 | 662 | | |
665 | 663 | | |
666 | 664 | | |
| |||
812 | 810 | | |
813 | 811 | | |
814 | 812 | | |
815 | | - | |
816 | | - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
817 | 818 | | |
818 | 819 | | |
819 | | - | |
| 820 | + | |
820 | 821 | | |
821 | 822 | | |
822 | 823 | | |
| |||
0 commit comments