Skip to content

Caching the result of automap? #11512

Discussion options

You must be logged in to vote

Python classes are not pickleable (unless something has changed in py 3.12, 3.13 maybe) and in this case yes those classes are dynamically generated so they are really not directly pickleable - it's still possible in theory for the structure of the attributes on these classes to be serialized, and to create deserialization functions that re-apply these attributes to newly generated classes while skipping the heuristics used in creating and configuring mappers, however SQLAlchemy has nothing like that in place and it would be extremely labor intensive to create and maintain such a system.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@TomaszParadysz-SlashDB
Comment options

Answer selected by TomaszParadysz-SlashDB
Comment options

You must be logged in to vote
1 reply
@TomaszParadysz-SlashDB
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants