You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be because Django ensures that all database connections are cursors differ between threads.
I think it may be very hard to implement cross-thread tracking of queries; there probably aren't easy ways to determine the originating thread in the general case; patching the threading module may work but maybe it won't. Also, the work would probably have to be redone for the async case. So, if anyone has a good idea how to implement this, please contribute (code or ideas) but for now I'm leaning towards closing this as not planned.
How to debug database query when query is executed from separate thread.
The text was updated successfully, but these errors were encountered: