{"id": "c01", "output": "So basically, yesterday our PostgreSQL table was three times larger than the actual data. We checked `n_dead_tup` and found it was showing around 40% dead rows. The autovacuum couldn't keep up because the scale factor was set to the default 0.2, which is too high for a table with 50 million rows. After we reduced it to 0.01, bloat stopped growing within two days.", "seconds": 18.07, "input_tokens": 160, "output_tokens": 94, "error": null}
{"id": "c02", "output": "Kubernetes pods were restarting repeatedly, getting OOMKilled every 15 minutes. We discovered that the memory limit was set to 512Mi, but the Java application required at least 900Mi due to the heap being configured with -Xmx768m and metaspace also consuming memory. Increasing the limit to 1Gi resolved the issue. However, honestly, we should have used MaxRAMPercentage from the beginning.", "seconds": 18.0, "input_tokens": 160, "output_tokens": 94, "error": null}
{"id": "c03", "output": "The ClickHouse query was taking 9 seconds and reading 10 million rows, even with a filter on user_id. The reason was simple: user_id was not in the ORDER BY key; the key was (site_id, event_time). We added a Bloom Filter skip index with GRANULARITY 4, and now the query reads only 400 thousand rows and completes in 0.3 seconds.", "seconds": 16.76, "input_tokens": 153, "output_tokens": 87, "error": null}
{"id": "c04", "output": "I tried running a 7B model locally on my laptop with 16 GB of RAM, and while it worked, it was extremely slow—around 4 tokens per second. When the context length exceeded 8K, performance dropped dramatically, and the laptop's fan spun up to near maximum speed. Using Q4_K_M quantization reduced memory usage from 14 GB to about 5 GB, which helped a bit, but the inference speed remained poor for chat.", "seconds": 18.73, "input_tokens": 154, "output_tokens": 98, "error": null}
{"id": "c05", "output": "Our Nginx was returning 502 errors for about 3% of requests during peak traffic. The issue was that upstream keepalive was not configured, causing every request to open a new connection to the Node.js app. After adding `keepalive 64` in the upstream block and setting `proxy_http_version 1.1`, the 502 errors dropped to nearly zero, and the p99 latency improved from 1.8s to 420ms.", "seconds": 20.35, "input_tokens": 157, "output_tokens": 103, "error": null}
{"id": "c06", "output": "Last month, we migrated our logs from Elasticsearch to ClickHouse. Storage decreased from 2.1 TB to 310 GB thanks to columnar compression with ZSTD. Queries for the last 7 days that previously took 40 seconds now complete in under 2 seconds. The only thing we’ve missed is full-text search—currently, we’re using the ngrambf_v1 index as a workaround, though it’s not ideal.", "seconds": 18.21, "input_tokens": 155, "output_tokens": 92, "error": null}
{"id": "c07", "output": "Redis was using 28 GB of memory, and we initially considered buying a bigger server. However, when we ran `MEMORY USAGE` on the keys, we discovered that session keys without TTLs accounted for a large portion—around 9 million of them, some of which were over two years old. We then added a 30-day TTL to new sessions and used a SCAN script to clean up the old ones. After that, memory usage dropped to just 6 GB.", "seconds": 19.39, "input_tokens": 149, "output_tokens": 99, "error": null}
{"id": "c08", "output": "For our daily report job, we used a local LLM instead of relying on an API. The job runs at 2 a.m. and processes around 120 reports, finishing before 7 a.m. Each report takes approximately 2 to 3 minutes to process on CPU. Users receive their replies within 48 hours anyway, so speed isn't critical—what matters most is that the numbers in the reports are accurate.", "seconds": 17.31, "input_tokens": 147, "output_tokens": 90, "error": null}
{"id": "c09", "output": "The Git repository was 4.5 GB, and cloning it in CI took 12 minutes. It turned out that someone had committed large video files three years ago. We used `git filter-repo` to remove those files and moved the assets to Git LFS. Now the repository is just 380 MB, and CI cloning takes only 40 seconds. Remember: everyone needs to re-clone after rewriting history.", "seconds": 18.13, "input_tokens": 149, "output_tokens": 90, "error": null}
{"id": "c10", "output": "We were paying $1,400 per month for a single RDS instance, db.r6g.4xlarge, but CPU usage was only 15% most of the time. We migrated to a db.r6g.xlarge instance with a read replica for reporting, reducing our total cost to $520 per month. The application is now actually faster because heavy report queries no longer compete with user traffic.", "seconds": 17.4, "input_tokens": 153, "output_tokens": 89, "error": null}
