Thursday, July 27th 2023
Improved performance for Vercel Postgres from Edge Functions
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2F3RaXoHJnoitsE6iRWmPAlP%2Fca46740422cdebade9527b62cfc2ca70%2FPostgresLight.jpg&w=3840&q=95&dpl=dpl_E2GZsUUM4EyvuYCes3krYpYUWFdo)
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2F2ODuXU8UyX22pOl7zgWHG0%2F1a2b436438e7364a62594718dd0582bb%2FPostgresDark.jpg&w=3840&q=95&dpl=dpl_E2GZsUUM4EyvuYCes3krYpYUWFdo)
Posted by
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2F3RaXoHJnoitsE6iRWmPAlP%2Fca46740422cdebade9527b62cfc2ca70%2FPostgresLight.jpg&w=3840&q=95&dpl=dpl_E2GZsUUM4EyvuYCes3krYpYUWFdo)
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2F2ODuXU8UyX22pOl7zgWHG0%2F1a2b436438e7364a62594718dd0582bb%2FPostgresDark.jpg&w=3840&q=95&dpl=dpl_E2GZsUUM4EyvuYCes3krYpYUWFdo)
The Vercel Postgres SDK has significantly improved performance for Postgres queries from Vercel Edge Functions.
The @vercel/postgres
package has been updated to use the latest version of Neon’s Serverless driver which adds support for SQL-over-HTTP when you use the sql
template literal tag. Simple queries that do not require transactions now complete in ~10ms—up to a 40% speed increase.
You do not need to make any changes to your queries to see these improvements, you only need to update to the latest version of @vercel/postgres
to take advantage of these improvements.