diff options
author | J. Nick Koston <nick@koston.org> | 2023-04-19 18:39:18 -0400 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2023-04-26 20:19:17 +0200 |
commit | ff198e35f0e04b8d38df25df234e72259069b4d1 (patch) | |
tree | c48db9a0366b48c8caaa35ad9ab83a354aaa7d32 /lib/sqlalchemy/dialects/postgresql/psycopg2.py | |
parent | 9f675fd042b05977f1b38887c2fbbb54ecd424f7 (diff) | |
download | sqlalchemy-ff198e35f0e04b8d38df25df234e72259069b4d1.tar.gz |
Prebuild the row string to position lookup for Rows
Improved :class:`_engine.Row` implementation to optimize
``__getattr__`` performance.
The serialization of a :class:`_engine.Row` to pickle has changed with
this change. Pickle saved by older SQLAlchemy versions can still be loaded,
but new pickle saved by this version cannot be loaded by older ones.
Fixes: #9678
Closes: #9668
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/9668
Pull-request-sha: 86b8ccd1959dbd91b1208f7a648a91f217e1f866
Change-Id: Ia85c26a59e1a57ba2bf0d65578c6168f82a559f2
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/psycopg2.py')
0 files changed, 0 insertions, 0 deletions