Hello,
i have a general question.
I have the situation that i have some custom rest endpoints which do some heavier data fetching, sometimes for several items of a workspace (And their related workspaces).
Now i want to parallelize theis fetching.
E.g. i have a list of products and need to enhance those with various data from other workspaces.
I want to simply iterate over this list of products in parallel.
Now:
Within the method of MgnlContext is used, which is thread local as well as some webrequest data (mainly to compose urls in a multisite setup). By nature those are not available in a separate thread.
What's the "normal" way to do so?
I tried with copying the mgnlcontext or use the doInSystemContext (Doesn't sound right and doesn't have the webcontext) but this lead to weird unclosed session behaviour.+
Thank you and regards,
Chris