Closed txomon closed 6 years ago
The quote below is at the very start of the documentation. I may add it to the README but I don't think it's too much to ask that people read the documentation for more information. That said, perhaps the documentation should be linked more explicitly than in the link.
What is this?
It\'s not an
asyncio
implementation of SQLAlchemy or the drivers it uses.sqlalchemy_aio
lets you use SQLAlchemy by running operations in a separate thread.If you\'re already using
run_in_executor
to execute SQLAlchemy tasks,sqlalchemy_aio
will work well with similar performance. If performance is critical, perhaps asyncpg can help.
Yeah sorry, I use README as a quick start guide, to see what I can expect etc. I can send a pull request proposal if you want,
Cheers,
Javier
On Tue, Feb 27, 2018, 22:34 Frazer McLean notifications@github.com wrote:
The quote below is at the very start of the documentation. I may add it to the README but I don't think it's too much to ask that people read the documentation for more information. That said, perhaps the documentation should be linked more explicitly than in the [image: docs] https://sqlalchemy-aio.readthedocs.io/en/latest/index.html link.
What is this?
It's not an asyncio implementation of SQLAlchemy or the drivers it uses. sqlalchemy_aio lets you use SQLAlchemy by running operations in a separate thread.
If you're already using run_in_executor to execute SQLAlchemy tasks, sqlalchemy_aio will work well with similar performance. If performance is critical, perhaps asyncpg https://github.com/MagicStack/asyncpg can help.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RazerM/sqlalchemy_aio/issues/6#issuecomment-369034056, or mute the thread https://github.com/notifications/unsubscribe-auth/AAN7mtXxPRC0YTLaKO5Su2xk827vu5Rdks5tZHTugaJpZM4SPGe_ .
Regarding the error you saw with SQLite: make sure you're explicitly closing the result proxy (if it's not being exhausted, i.e. not all rows are fetched) and connection. Otherwise, SQLAlchemy will do those implicitly outside of sqlalchemy_aio's worker thread.
I can send a pull request proposal if you want,
I'll make the change myself while I add another link to the documentation. It can't hurt to clear up any confusion.
Thanks for the feedback on this.
Hello, I ran into the following problem:
And after looking at the code, I find the README is misleading, as it suggests that is a full asyncio implementation. Please if possible say that this solution helps by making the sqlalchemy calls in a parallel thread.
Cheers!