{"id": "c01", "output": "So, yesterday our PostgreSQL table was 3 times larger than the actual data. We checked `n_dead_tup` and it was showing like 40 percent dead rows. The autovacuum was not able to keep up because the scale factor was set to 0.2, which is too high for a table with 50 million rows. After we set it to 0.01, the bloat stopped growing in two days.", "seconds": 4.23, "input_tokens": 162, "output_tokens": 95, "error": null}
{"id": "c02", "output": "Kubernetes pods were restarting repeatedly, OOMKilled every 15 minutes. We discover that the memory limit was 512Mi, but the Java application requires at least 900Mi due to the heap being set to Xmx768m and the metaspace also takes memory. Increasing the limit to 1Gi resolved the issue, but honestly, we should have set the heap with a MaxRAMPercentage from the beginning.", "seconds": 4.02, "input_tokens": 160, "output_tokens": 93, "error": null}
{"id": "c03", "output": "ClickHouse query was taking 9 seconds and reading 10 million rows even when we filter by user_id. The reason is 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 finishes in 0.3 seconds.", "seconds": 4.25, "input_tokens": 158, "output_tokens": 88, "error": null}
{"id": "c04", "output": "I tried running a 7B model locally on my laptop with 16 GB of RAM, and it was working but slow, like 4 tokens per second. When context goes above 8k, it becomes very very slow, and the laptop fan goes crazy. Q4_K_M quantization helped a little bit, memory went from 14 GB to around 5 GB, but speed was still not great for chat.", "seconds": 4.05, "input_tokens": 156, "output_tokens": 90, "error": null}
{"id": "c05", "output": "Our nginx was returning 502 errors for approximately 3 percent of requests during peak hours. The upstream keepalive was not configured, resulting in every request establishing a new connection to the node app. After adding 64 to the upstream block and proxy_http_version to 1.1, the 502s decreased to almost zero, and p99 latency went from 1.8 seconds to 420 milliseconds.", "seconds": 4.11, "input_tokens": 160, "output_tokens": 93, "error": null}
{"id": "c06", "output": "We moved our logs from Elasticsearch to ClickHouse last month. Storage was reduced from 2.1 TB to 310 GB due to columnar compression with ZSTD. Queries for the last 7 days that took 40 seconds now come in under 2 seconds. Only thing we miss is full text search; we are using an ngrambf_v1 index for that, but it is not perfect.", "seconds": 3.79, "input_tokens": 155, "output_tokens": 85, "error": null}
{"id": "c07", "output": "Redis was utilizing 28 GB of memory. We were considering upgrading to a larger server. When we ran MEMORY USAGE on keys, we observed session keys without TTL, approximately 9 million of them. Some were 2 years old. We added a 30-day expiration time to new sessions, and cleaned out the old ones using a SCAN script. Memory decreased to 6 GB.", "seconds": 3.67, "input_tokens": 151, "output_tokens": 83, "error": null}
{"id": "c08", "output": "For our daily report job, we used a local LLM instead of an API. The job ran at 2 am and processed approximately 120 reports, finishing before 7 am. Each report took approximately 2 to 3 minutes to complete on CPU. Users receive replies within 48 hours, so speed is not a major concern; rather, the numbers in the report are accurate.", "seconds": 3.58, "input_tokens": 148, "output_tokens": 82, "error": null}
{"id": "c09", "output": "git repo was 4.5 GB and cloning took 12 minutes in CI. It turns out someone committed big video files 3 years ago. We used git filter-repo to remove them and also moved assets to git LFS, now the repo is 380 MB and CI clone takes 40 seconds. Everyone needs to re-clone after rewriting history.", "seconds": 3.5, "input_tokens": 150, "output_tokens": 78, "error": null}
{"id": "c10", "output": "We were paying $1400 dollars per month for one big RDS instance, db.r6g.4xlarge, but CPU utilization was only 15 percent most of the time. We moved to db.r6g.xlarge with a read replica for reports, resulting in a total cost of $520 dollars, and the application is actually faster because heavy report queries do not compete with user traffic.", "seconds": 3.91, "input_tokens": 156, "output_tokens": 89, "error": null}
