Whenever you're ready, walk me through how you'd approach this.
How would you optimize a slow-running background worker that processes batch location updates at Radar? Explain how you would profile the worker, identify CPU, I/O, database, and serialization bottlenecks, then improve batching, query patterns, concurrency, and retry behavior. Cover idempotency, partial failures, observability, and how you would verify that the optimization improves throughput without compromising location-data correctness.