我之前将实体保存到表中,如下所示:
insertTableOne(foo).then(insertTableTwo(foo)).then(Mono.just(foo));
团队成员建议使用以下方法.and()
来并行化插入件:
insertTableOne(foo).and(insertTableTwo(foo).thenRetuen(foo);
虽然我同意它看起来更简洁,但我找不到任何文档表明使用.and()
将同时执行Schedulers.parallel()
两个插入。我认为它仍然是连续的,除非明确说明与并行。
我错了吗?