Django
Sort Django querysets by custom attribute sequences using Case and When expressions for database-level ordering with SQL CASE statements.
Connect Jupyter Notebook to Dockerized Django apps using ipykernel and django-extensions for interactive debugging and data exploration.
Use Django query expressions like Replace, Upper, Lower, Concat, and Substr for efficient database-level text manipulation without fetching data.
Accelerate Django bulk_update operations by 4x using multiprocessing to parallelize database writes across chunked record batches.
Optimize Django model saves with update_fields parameter to generate leaner SQL queries and improve performance in tight update loops.
Learn from a production outage caused by loading large CSV files into memory. Stream process files to prevent OOM errors and crashes.
Speed up Django bulk operations with ProcessPoolExecutor while preserving signals and hooks that bulk_create/bulk_update bypass.
Fix Django REST Framework to return JSON error responses for 403, 404, 500 errors using middleware instead of default HTML pages.
Standardize Django REST Framework error responses using custom exception handlers to match Microsoft's REST API guidelines format.