-
May I know why this operation requires multiple active result sets? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It shouldn't. Previously we had some coding mistakes that sporadically resulted in such errors, but that shouldn't be the case (at least with 2.1.x). This error is raised when two threads use the same You can set |
Beta Was this translation helpful? Give feedback.
It shouldn't. Previously we had some coding mistakes that sporadically resulted in such errors, but that shouldn't be the case (at least with 2.1.x). This error is raised when two threads use the same
ISession
, i.e. you have multi-threaded code (executing withing the same request) and anISession
instance is shared among them.You can set
EnableThreadSafetyChecks
to make YesSql throw an explicit exception when this happens, with details about the two threads, see https://docs.orchardcore.net/en/latest/reference/modules/Data/#configuring-yessql.