When querying for a single object through DataObjects.NET
|
Hello amorin,
|
Hum hum hum, An Consider rethinking your architecture, may be usage of Prefetch would help to load data faster. The main idea is to fetch and use entities in the same session and transaction. Crossing boundaries of sessions and transactions will lead to weird errors and unnecessary database roundtrips. |
Dmitri, I'm not sure I follow your suggestion. We are currently using a 1 session and 1 transaction per thread and experiencing the exception amorin posted above. Below is a snippet of pseudo code that illustrates what we are doing on each thread. QueryTask is executed on multiple concurrent threads where the input value is different for each and the results collated at a higher level. Is there a specific version of DataObjects.NET we need to be on to use multiple threads, are we doing this wrong, is this a bug, are parallel operations supported in this product?
|