The FileSession class is not "thread safe" so a new alternative must be created that is at the same time thread/concurrent safe and uses the pickle serialization for legacy issues.
Solution
Use the current adapters for SQL interaction (for legacy) and issue SQL command directly to them instead of using the (more heavy) data model (ORM) based usage.
Description
The
FileSession
class is not "thread safe" so a new alternative must be created that is at the same time thread/concurrent safe and uses the pickle serialization for legacy issues.Solution
Use the current adapters for SQL interaction (for legacy) and issue SQL command directly to them instead of using the (more heavy) data model (ORM) based usage.