Size: a a a

PiterPy Conf Сhat

2020 August 05

FK

Fantix King in PiterPy Conf Сhat
At the same time GINO is kinda different in e.g. different layers of SQLAlchemy integration (vanilla SQLAlchemy + async execution, using GINO Model to build queries only, or full ORM) and the GINO Model loader system
источник

FK

Fantix King in PiterPy Conf Сhat
Yuliya Volkova
exclude docs )) Gino has best doc in all async orms that I saw
Oh thanks! Still work to do there 😛
источник

YV

Yuliya Volkova in PiterPy Conf Сhat
@fantixking do you have any benchmarks for GinoORM with comparing to over ORMs? for example, tortoise?
источник

YV

Yuliya Volkova in PiterPy Conf Сhat
I tried to google it, but did not find anything
источник

VS

Vladimir Shulyak in PiterPy Conf Сhat
@fantixking Question from Dmitry: why do you use asyncio.sleep(0.1) in this example? According to Dmitry, it will work just fine and nothing should block
источник

FK

Fantix King in PiterPy Conf Сhat
Yuliya Volkova
@fantixking do you have any benchmarks for GinoORM with comparing to over ORMs? for example, tortoise?
Unfortunately not yet - would be fun to do some benchmarking. I’m not expecting GINO to be the fastest as in execution, but asyncpg does bring some boost to cover the ORM overhead - this applies to Tortoise and Encode ORM too
источник

YV

Yuliya Volkova in PiterPy Conf Сhat
Fantix King
Unfortunately not yet - would be fun to do some benchmarking. I’m not expecting GINO to be the fastest as in execution, but asyncpg does bring some boost to cover the ORM overhead - this applies to Tortoise and Encode ORM too
yeah, if compare to aiopg - asyncpg is really fast)
источник

FK

Fantix King in PiterPy Conf Сhat
Vladimir Shulyak
@fantixking Question from Dmitry: why do you use asyncio.sleep(0.1) in this example? According to Dmitry, it will work just fine and nothing should block
Right, without the sleep it won’t block. This code here is to simulate doing async work in real life, and demonstrating how blocking ORM database access could ruin an asynchronous application if used inappropriately.
источник

VS

Vladimir Shulyak in PiterPy Conf Сhat
Fantix King
Right, without the sleep it won’t block. This code here is to simulate doing async work in real life, and demonstrating how blocking ORM database access could ruin an asynchronous application if used inappropriately.
thank you!
источник

DK

Dmitry Karpov in PiterPy Conf Сhat
Fantix King
Right, without the sleep it won’t block. This code here is to simulate doing async work in real life, and demonstrating how blocking ORM database access could ruin an asynchronous application if used inappropriately.
@fantixking, probably some misunderstanding occurs, could you please explain what is the difference between 10th and 11th call in that code?
источник

IS

Irina Saribekova in PiterPy Conf Сhat
Вопросы Фантиксу
источник

YV

Yuliya Volkova in PiterPy Conf Сhat
@fantixking can I ask off-top question? it is relative to support project on local languages
источник

YV

Yuliya Volkova in PiterPy Conf Сhat
a lot of china open-sources packages has docs only in mandarian (sorry if I'm wrong in it, mean main China's language)
источник

IS

Irina Saribekova in PiterPy Conf Сhat
@fantixking thank you for the talk 👏🏻
источник

FK

Fantix King in PiterPy Conf Сhat
Thank you all! Its’ been a great pleasure to be here. I’ll keep answering to the questions, please forgive my slow typing
источник

YV

Yuliya Volkova in PiterPy Conf Сhat
What is the general attitude to English in IT in China? is this something optional? why am I asking - in Russia there are always disputes about whether it is necessary to localize documentation or projects? it is believed that this stimulates the isolation of development within the country, while English, on the contrary, allows you to expand the scope
источник

YV

Yuliya Volkova in PiterPy Conf Сhat
I very hard formulate my question)) sorry
источник

IS

Irina Saribekova in PiterPy Conf Сhat
Сейчас в эфире @k0tb9g9m0t
С темой: Внедрение С++ расширений в Python

Это живой доклад, пишите в чате вопросы, мы их зададим спикеру после выступления :)
источник

VS

Vladimir Shulyak in PiterPy Conf Сhat
Irina Saribekova
Сейчас в эфире @k0tb9g9m0t
С темой: Внедрение С++ расширений в Python

Это живой доклад, пишите в чате вопросы, мы их зададим спикеру после выступления :)
источник

FK

Fantix King in PiterPy Conf Сhat
Dmitry Karpov
@fantixking, probably some misunderstanding occurs, could you please explain what is the difference between 10th and 11th call in that code?
Oh sure, sorry for the confusion! So the 10th request could successfully grab a DB connection from the pool, it’s actually the last connection in the pool. Then when the 11th request came in - assuming all first 10 requests are awaiting on some asynchronous tasks (keeping 1 DB connectionn each!) - it will firstly try to acquire a new connection, but there isn’t any more to spare, so it blocks, and it’s blocking the thread. It’s like an infinite loop that keeps acquiring connections from the pool but never returns, it will block forever and won’t get unblocked just by itself.
источник