Optimization tales with CockroachDB: the slow logout
The article describes investigating a slow logout issue in a platform using CockroachDB. The problem was caused by a query that scanned too many rows due to missing or suboptimal indexes. The author details the optimization process, which involved analyzing the query plan and adding proper indexes to reduce the query time from seconds to milliseconds.
Background
CockroachDB is a distributed SQL database designed for high availability and horizontal scalability — think of it as a PostgreSQL-compatible database that can survive entire datacenter failures without losing data. This post is part of a series where a developer (likely at a European tech company, possibly in fintech or a similar industry) investigates why a seemingly simple operation — logging a user out — is slow in their production system. The culprit turns out to be a subtle interaction between CockroachDB's transaction contention, its MVCC (multi-version concurrency control) garbage collection, and how the application code queries session data. The post walks through using SQL tracing and monitoring tools (like Jaeger) to diagnose the bottleneck, ending with a concrete fix that collapsed a ~200ms logout into a few milliseconds. It's a real-world case study in debugging distributed database performance, useful for engineers working with CockroachDB or similar systems (e.g., Spanner, TiDB, YugabyteDB). The slow logout itself is about a web app's session invalidation — not deleting the session, but marking it expired and checking it on subsequent requests.
Max Weinbach says he had early access to OpenAI's new model GPT-5.6 Sol, calling it his favorite model by far. He highlights that it never gives up and will keep reasoning until it's done. OpenAI announced that GPT-5.6 Sol, along with Terra and Luna, will launch publicly on Thursday, with preview access expanding globally now.
The US government ordered Anthropic to suspend access to its Fable 5 and Mythos 5 models for all customers, citing a potential jailbreak technique that involved asking the model to review a codebase for vulnerabilities—a capability Anthropic says is available in other public models. Access was abruptly cut off on June 12.
Andrej Karpathy announces the release of Claude Fable 5, the same underlying model as Mythos but with added safeguards. He calls it a major step forward, particularly for long problem-solving sessions on difficult tasks, and describes it as state-of-the-art on nearly all benchmarks with exceptional performance in software engineering, research, and vision.
Roman Storm warns that the legal theory in his case could set a precedent making open-source developers liable for how others use their code, potentially criminalizing the mere publication of privacy, messaging, or crypto tools. He notes that developer Michael Lewellen cannot publish lawful code due to prosecution fears, and argues this chilling effect extends beyond any single case.
Meta's engineering culture is deteriorating under Mark Zuckerberg and Scale AI CEO Alexandr Wang, who have introduced keyboard tracking, reassignments to data labeling, and AI-centric performance metrics. Critics argue this incentivizes performative AI use, drives away experienced engineers, and contributed to a major Instagram hijacking incident caused by AI-written and AI-reviewed code.