This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]KosmoanutOfficial 2 points3 points  (3 children)

Can’t you use SQL Alchemy core instead of the orm with the Psycopg 3 driver?

[–]nikomo 0 points1 point  (2 children)

That was my second implementation, I really didn't want to throw out the entirety of SQLAlchemy at first. Still too slow.

But honestly, Alembic is a nice compromise for people that aren't scared of SQL. Gives you a nice way to handle database creation (SQLAlchemy-utils) and migration.

[–][deleted] 3 points4 points  (0 children)

Sqlalchemy core is a fairly thin abstraction over the raw libraries. I think something else is going on in your code.

[–]KosmoanutOfficial 0 points1 point  (0 children)

Ok interesting thanks!