PythonHub
2.44K subscribers
2.35K photos
49.3K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Faster Django Queries With Materialized Views

Materialized views can be very useful for creating reports that will be used repeatedly. They cut down on query times because the query has already been made, and the view has been written to the disk. In this video, Nafiul Islam demonstrates how to create materialized views, explains the benefits of using them, and shows how to integrate them into Django ORM.

https://www.youtube.com/watch?v=qcTGppyu1nw
Faster routing for Flask & Quart

Flask and Quart both utilize Werkzeug's HTTP router to route request paths to the relevant function. With the upcoming 2.2 release of Werkzeug this router will be significantly faster, with up to a factor of 5 seen in testing. This speedup increases with the size of the routing table and so you are likely to see further increases in your production applications.

https://pgjones.dev/blog/faster-routing-2022/
How I made a dataclass remover

My journey creating a dataclass converter by using abstract syntax trees, match-case, the dedent utility and more. You may learn something new along the way.

https://www.pythonmorsels.com/making-a-dataclass-remover/