Cutting Ad Analysis Costs from $150 to Under $10

I run AI analysis on Meta ads at scale. Every time someone saves an ad in SpreshApp, my pipeline analyzes it with Gemini and returns structured creative insights: the hook tactic, messaging angle, format, target persona, and a few other signals that ad strategists actually use. The first version worked well. It was also costing me around $100-150/month at roughly 1000 analyses per day, and trending upward. I needed to fix it....

June 3, 2026 · 4 min

sqlc: Write SQL, Skip the Boilerplate

AI coding assistants are great at generating boilerplate. But for database code in Go, there is a better option: one that generates it from your SQL itself, with zero hallucination risk. It is called sqlc . What sqlc does You give it your SQL query files and your schema. It generates type-safe Go functions. Setup is a single config file: # sqlc.yaml sql: - engine: "postgresql" queries: "db/queries" schema: "db/models" gen: go: package: "repo" sql_package: "pgx/v5" out: "db/repo" Point it at your queries, point it at your schema, run sqlc generate....

April 8, 2026 · 3 min