This demo helps observe the latency characteristics of querying different popular data services from Vercel Functions.
https://db-latency.vercel.app
Here is an overview of all data service providers and the compute locations available in this app:
| Provider | Edge (Global) | Edge (Regional / US East) | Node |
|---|---|---|---|
| Convex (SDK) | ✅ | ✅ | ✅ |
| Neon w/ @neondatabase/serverless | ✅ | ✅ | ✅ |
| Neon w/ Drizzle ORM | ✅ | ✅ | ✅ |
| Neon w/ Prisma ORM | ✅ | ✅ | ✅ |
| PlanetScale w/ Kysely | ✅ | ✅ | ❌ |
| PlanetScale w/ Prisma ORM | ✅ | ✅ | ✅ |
| PlanetScale w/ Drizzle | ✅ | ✅ | ✅ |
| Shopify (Storefront GraphQL API) | ✅ | ✅ | ✅ |
| Supabase w/ supabase-js | ✅ | ✅ | ❌ |
| Supabase w/ Prisma ORM | ❌ | ❌ | ✅ |
| Supabase w/ Drizzle | ❌ | ❌ | ✅ |
| TiDB Cloud (serverless-js) | ✅ | ✅ | ❌ |
| Tigris | ✅ | ✅ | ❌ |
| Turso | ✅ | ✅ | ✅ |
| Turso w/ Prisma ORM | ✅ | ✅ | ✅ |
| Turso w/ Drizzle | ✅ | ✅ | ✅ |
| Upstash (SDK) | ✅ | ✅ | ✅ |
| Xata w/ TypeScript SDK | ✅ | ✅ | ✅ |
| Xata w/ Prisma ORM | ❌ | ❌ | ✅ |
| Xata w/ Drizzle | ❌ | ❌ | ✅ |
- Smallest atomic unit, e.g. 1 item / row.
- Data schema:
interface EmployeeTable {
emp_no: number;
first_name: string;
last_name: string;
}