Post

New essay: Cutting Python Web App Memory Over 31% I reduced Python web app memory by 3.2 GB using async workers, import isolation, the Raw+DC database pattern, and disk caching. Detailed before and after numbers for each technique. mkennedy.codes/posts/cuttin...

mkennedy.codesCutting Python Web App Memory Over 31%I reduced Python web app memory by 3.2 GB using async workers, import isolation, the Raw+DC database pattern, and disk caching. Detailed before and after numbers for each technique.

2 reposts15 likes

the savings you got from local imports and using raw queries instead of an ODM surprised me - speed boost from nuking the ODM is a chefs kiss too. well written article btw: super-easy to consume and i reckon would help a lot of people.

Thank you Steve! I honestly didn't expect such a boost from dropping the ODM, but a lovely extra. Primarily I need to a) drop a stagnant core library, b) enable async - see reason a. :)