backendops.hashnode.devThe Most Misunderstood Django OptimizationA few weeks ago, I was debugging what looked like a simple performance issue. An endpoint returning a list of organizations was slower than expected. Nothing dramatic — just slower than it should be. 4d ago·3 min read
backendops.hashnode.devWe Didn’t Expect This Page to Get So Much TrafficLike many B2B startups, our landing page started as a simple marketing surface. A headline, a short explanation of the product, and a section showing real usage metrics to build trust with potential customers. Nothing fancy. At least, that’s what we ...Jan 25·4 min read
backendops.hashnode.devKeep the User Model Stable (and Let Everything Else Change)I treat the User model as one of the few tables in a startup backend that behaves like a public API. It’s referenced by auth, permissions, analytics, billing — almost everything. Once real users exist, changing User stops being a local refactor and s...Jan 17·4 min read
backendops.hashnode.devHow to Use Pytest for Exception Testing: Insights from Open Source ProjectsTesting for exceptions is a crucial part of writing reliable code. Pytest provides powerful tools to check whether a function raises the expected exceptions under specific conditions. In this post, we'll explore real-world examples of exception testi...Mar 31, 2025·5 min read
backendops.hashnode.devOptimizing DRF LimitOffsetPagination performance to avoid slow count queries.TLDR LimitOffsetPagination in Django can cause performance issues due to the expensive count query, especially with large datasets or search_fields. To improve performance, you can override the default pagination to skip the count query. The issue Li...Nov 4, 2024·3 min read