Toni Alatalo

Results 117 comments of Toni Alatalo

> Also this seems pretty orthogonal to request coalescing/dogpiling, right? Yes, we'd need these sessions to be thread safe, No, this is actually directly about coalescsing, fixing dogpiling. The mechanism...

> I'm more interested in coalescing _inbound_ HTTP requests though, eg a request that's expensive due to either db queries or generating keys for a new user or external requests...

I did this recently in Python for a work thing, using a locking mechanism, using RedLock from aiocache. The issue is also called dogpiling, and their test tests it. I...

I mean the lock implementation has to work with the tech that is used. So the aiocache Lock that I used previously can not be used here. I took a...

Hi, and thanks a lot for the help @sumerc ! Just for info, I was able to profile the whole app with yappi, by hooking the get stats functions in...

> Status on the merge of this? It's quite crucial. I figure a good strategy now is to just merge what you need in your own fork. I suppose tiangolo...

FastAPI's Pydantic v2 support seems quite complete now, the CI now runs both with v1 and v2. I didn't look very closely, but all tests seem to pass. Perhaps now...

> Is there an ETA for this? Tiangolo has worked hard to bring FastAPI over to Pydantic v2. That's pretty far, and there he says, 4d ago, that he'll update...

> I know SQLModel is SQLAlchemy under the hood but this feels strange, cause i want to face SQLModel ONLY. Generally you can't do this kind of things with SQLModel...

New release has > Add support for passing a custom SQLAlchemy type to Field() with sa_type. PR [#505](https://github.com/tiangolo/sqlmodel/pull/505) by [@maru0123-2004](https://github.com/maru0123-2004). so maybe this could be extended somehow to allow arguments...