Is it safe to call `parallelStream()` on a `Result<Record>` object in jOOQ?

We have queries where we seen a lot of overhead deserializing results, and 
we are looking for ways to reduce that overhead.

Most of our queries look something like this:

DSL.using(readOnlyConfiguration)
...
.fetch()
.stream()

Java profilers show a lot of overhead in the fetch() method, but not from 
executing the actual query, typically in methods like 
org.jooq.impl.DefaultBinding.get(BindingGetResultSetContext).

So, is it safe to replace `stream()` with `parallelStream()`?

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jooq-user/475389a7-5f14-4155-8368-5542fd65a4bfn%40googlegroups.com.

Reply via email to