Re:12 requests per second: A realistic look at Python web fr...
by polyrand on Friday February 19, 2021 @06:07PM
(#26199255)
Absolutely! I think it should be doable, FastAPI and other libraries do heavy Pydantic model inspection, and some do automatic code generation. I should explore this a bit more.
Re:12 requests per second: A realistic look at Python web fr...
by BiteCode_dev on Saturday February 20, 2021 @06:23AM
(#26203369)
It also has some nice properties:
- because you have all your queries written in the same place, when you create a db migration, you know where to look for code to update, and can even perform some automatically.
- sql queries could be turned into a stored procedure with a simple marking, without changing any code.
Of course the downside is that dynamically exploring data is not as easy as with an ORM.
That would have the benefit of the standardized api of an ORM and the flexibility of SQL, without the coupling.