Replies: 2 comments 6 replies
-
/cc @FroMage (panache), @evanchooly (mongodb), @loicmathieu (mongodb,panache) |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is a design choice of the MongoDB reactive client, nothing specific to MongoDB with Panache. @cescoffier maybe you can share some light ? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Reactive Panache MongoDB with
ReactivePanacheMongoRepository<Entity>
. My problem is; Mutiny objects likeUni
s andMulti
s returned from MongoDB operations likefindById()
etc. always emit on Event Loop. I usually map and transforms these reactive objects and all of my other manipulations are also happening on EventLoop.This is because Unis created at https://github.com/quarkusio/quarkus/blob/main/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/impl/Wrappers.java specifies emitsOn, which overrides default Mutiny Worker Context.
Is there a way I can change this behavior without manually setting another executor on every reactive object that I get from DB operations?
Beta Was this translation helpful? Give feedback.
All reactions