Hugo
How we helped build the social media tool that teams actually use.
What Is Hugo
Hugo is your cultural intelligence layer. 24/7 monitoring of trends and creators relevant to your brand. Ask anything in plain language — audience insights, creator recommendations, cultural moments — and get sharp answers in minutes. The longer you use it, the smarter it gets.

Source: Hugo website
The Problem
Hugo's core feature — AI content generation — wasn't working optimally. It was slow. But the real problem wasn't just the slow code. At this stage, every day without a working product means missed customer conversations. Feedback that should turn into features gets stuck.
The team is in constant contact with users, gathering ideas, testing assumptions. When the infrastructure breaks, that feedback loop breaks too. The team had clear ideas about what users needed. The infrastructure couldn't keep up. And the clock was ticking.
The Work
Over several months, we lived inside the early-stage exciting chaos. The core issue was how data moved through the system. MongoDB seemed like a good fit at the start — flexible, no rigid schema. Early stage is all about speed and changing your mind. But flexibility without structure creates problems that compound. When you never migrate data alongside schema changes, you end up with chaos buried in the database. We'd see bugs trace back to corrupted data from months ago, with no clear path to fix it.
We migrated from MongoDB to PostgreSQL — a decision that seemed risky, but we knew from experience that it would work. Stricter schema. Forced you to think about data structure upfront. More constraints, but paradoxically more freedom — because you could actually predict what would happen next.
Faster queries. More predictable behavior. Room to scale. Things started working again.
We'd implement it. Things would break in unexpected ways. We'd fix them. New patterns would emerge. We'd pivot. We rebuilt the core infrastructure. Changed how data flows through the system. Optimized for speed and stability — while keeping the flexibility that mattered for a team moving fast and responding to what customers actually needed.

Source: Hugo website
The Next Step
That PostgreSQL migration unlocked another major improvement — embeddings handling and storage. Before, they had lived as a separate layer, which meant extra infrastructure, extra synchronization, and more places for data integrity to break down. Once the core data moved into PostgreSQL, we could move embeddings into pgvector columns and keep everything in one system.
"That architectural strategic decision was the best thing you did. It makes us much faster today, much more agile. We have much faster, more robust infrastructure."

Olle Söderlund
Founder, Hugo
We then ran two very intense days of testing across different indexing strategies, dimensions, query parameters, and storage assumptions. The goal was not just to make similarity search work, but to make it work predictably, cheaply, and at scale. Eventually, we found the right combination.
It gave us roughly five years of expected storage runway at the same or lower cost than the existing MongoDB setup, while removing an entire class of operational complexity. No more syncing records between databases. No more worrying whether the embedding store had drifted from the source of truth. Every row could now have normal CRUD semantics, constraints, and lifecycle management inside the same database.
PostgreSQL did not just make the system stricter. It made it simpler. The data model became easier to reason about. Search became easier to operate. Infrastructure became cheaper. And the team could move faster because the system was no longer fighting them underneath.
Have an idea worth building?
We partner with founders to ship real products, fast. Tell us what you're working on.
Start a project