Company
Date Published
Author
Raouf Chebri
Word count
787
Language
English
Hacker News points
None

Summary

Vercel has introduced an enhanced driver for Postgres queries, significantly reducing query latencies by 40% for Vercel Serverless and Edge Functions, bringing same-region queries to sub-10ms levels and improving user experiences. This performance boost is achieved through SQL-over-HTTP via fetch support and experimental connection caching with Neon's proxy, suitable for single query executions where connection establishment times traditionally increase latency. The new driver is compatible with existing Neon and Vercel Postgres code, offering developers guidance on optimizing latency with single or multiple queries by choosing between the new syntax with neon for single queries or Pool for multiple queries. As edge computing evolves, Vercel is committed to further latency improvements, encouraging developers to experiment with Neon and provide feedback through community forums.