Blog
Ideas, updates, and practical guides from CodeSapient Labs.

Shopify Bulk Operations: Export and Import Large Catalogs Without Throttling
How Shopify bulk operations work after API 2026-01: bulk queries, bulk mutations, five concurrent jobs, finish webhooks, JSONL parsing that stays flat on memory, and per-line import errors.
Read article →
Django Docker Production Setup: uv, Gunicorn and a Dockerfile That Holds Up
A production Django Docker setup with a multi-stage uv Dockerfile, Gunicorn, WhiteNoise and env-based settings, plus four failures we reproduced, including Django 6.1's new MAILERS check.
Read article →
UUIDv7 in PostgreSQL 18: Faster, Smaller Primary Keys
Why random UUIDv4 keys bloat PostgreSQL indexes, how UUIDv7 and uuidv7() in PostgreSQL 18 fix it, our 5-million-row lab results, and how to adopt UUIDv7 in Python, Django and Node.
Read article →
LLM Structured Outputs: Reliable JSON for AI Automation
How LLM structured outputs turn model replies into schema-valid JSON, how OpenAI, Claude, and Gemini differ, and the validation you still need before AI-extracted data reaches Shopify or your ERP.
Read article →
Shopify Flow Shipping Labels: How to Auto-Buy Labels Safely
Shopify Flow can now buy shipping labels automatically. Learn how the Purchase shipping label action works, which orders qualify, how to set it up, and the mistakes that waste postage.
Read article →
OpenTelemetry JavaScript SDK 3.0: What Changed and How to Migrate
OpenTelemetry JS SDK 3.0 stabilizes Logs, consolidates tracing packages, requires Node.js 22.15+, and ships dual ESM/CJS exports. Migrate a Node SaaS service and export traces, metrics, and logs over OTLP.
Read article →
Django N+1 Queries: How to Find and Fix Them (Including Django 6.1 Fetch Modes)
Find and fix Django N+1 queries: detect them with Debug Toolbar, tests and query budgets, fix them with select_related, prefetch_related and annotate, and use Django 6.1 fetch modes safely.
Read article →
API Rate Limiting for SaaS: Algorithms, Headers, and Redis Patterns
A practical guide to API rate limiting for SaaS teams: what to limit by, token bucket vs sliding window, an atomic Redis limiter, good 429 responses with Retry-After and RateLimit headers, and common mistakes.
Read article →
AI Agent Evaluation: How to Test Agents Before They Reach Customers
A practical guide to AI agent evaluation: what to measure, when to use code checks, LLM judges, or human review, how to build test cases from real traces, and how to gate releases.
Read article →