惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
aimingoo的专栏
aimingoo的专栏
博客园 - 叶小钗
H
Help Net Security
Microsoft Security Blog
Microsoft Security Blog
The Cloudflare Blog
S
SegmentFault 最新的问题
小众软件
小众软件
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
量子位
H
Hackread – Cybersecurity News, Data Breaches, AI and More
V
V2EX
Martin Fowler
Martin Fowler
博客园 - 【当耐特】
J
Java Code Geeks
D
DataBreaches.Net
云风的 BLOG
云风的 BLOG
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
Last Week in AI
Last Week in AI

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I Run 5M Vectors on a $6/mo Server. Pinecone Would Charge...
Muhammed ali Ceylan · 2026-06-14 · via DEV Community

Muhammed ali Ceylan

Six months ago I moved my RAG pipeline from Pinecone to self-hosted Qdrant. My vector search bill went from $210/month to $6.50/month. Same latency. Same recall. Here's exactly how.
The Setup
My app does document Q&A for legal contracts. The numbers:

5.2 million vectors (1536-dim, OpenAI embeddings)
~800K queries/month
P99 latency requirement: < 50ms

On Pinecone Serverless, this cost me roughly $210/month — storage plus read units plus write units for daily ingestion of new documents.
What I Moved To
A single Hetzner CX32 server:

4 vCPU, 8 GB RAM, 80 GB SSD
€8.50/month (about $9.20)
Qdrant running in Docker
Automated daily backups to S3-compatible storage ($0.50/month)

Total: ~$10/month. That's a 95% cost reduction.
The Migration Was Easier Than Expected
bash# Export from Pinecone (I used their scroll API)
python export_pinecone.py --index legal-docs --output vectors.jsonl

Start Qdrant

docker run -d -p 6333:6333 -v ./storage:/qdrant/storage qdrant/qdrant

Import

python import_qdrant.py --input vectors.jsonl --collection legal-docs
The whole migration took an afternoon. The Qdrant Python client is straightforward, and the API is surprisingly similar to Pinecone's.
Performance Comparison
I ran the same 10,000 test queries against both setups:
MetricPinecone ServerlessQdrant Self-HostedP50 latency23ms4msP99 latency89ms12msRecall@100.970.97Monthly cost$210$10
The self-hosted Qdrant is actually faster because the data sits in memory on the same machine. Pinecone Serverless loads data from object storage on demand, which adds cold-start latency.
When Self-Hosting Is a Bad Idea
I want to be honest about the trade-offs:
Don't self-host if:

You have zero DevOps experience and no one on the team does
You need 99.99% uptime SLA for enterprise customers
Your vector count is growing unpredictably (10M one month, 100M the next)
You're a team of 1-2 and every hour on infra is an hour not building product

Do self-host if:

Your scale is predictable (you know roughly how many vectors you'll have)
You're comfortable with Docker and basic server management
Cost matters — the difference between $10 and $210 is $2,400/year
You want full control over your data and indexing parameters

The Cost at Every Scale
I built a calculator to compare all four major vector DBs at different scales:
ScalePineconeQdrant CloudQdrant Self-HostedSupabase pgvector1M vectors~$22/mo~$14/mo~$7/mo~$27/mo10M vectors~$210/mo~$120/mo~$72/mo~$95/mo100M vectors~$1,900/mo~$950/mo~$480/moN/A
👉 Calculate your exact cost
One Thing I Miss About Pinecone
The dashboard. Pinecone's web console lets you browse vectors, run test queries, and see index stats visually. With self-hosted Qdrant, I'm using curl and Python scripts. There's a Qdrant Web UI but it's basic.
Would I go back? At $200/month savings, absolutely not. But if I were building a quick prototype and didn't want to think about infrastructure, Pinecone's free tier (100K vectors) is genuinely good for getting started.

Running self-hosted vector search? I'd love to hear your setup and costs. Also built comparison pages for specific matchups: Pinecone vs Qdrant, Supabase vs Pinecone.