vercel / storage

Vercel Postgres, KV, Blob, and Edge Config
https://vercel.com/storage
Apache License 2.0
517 stars 57 forks source link

feat(kv): enable auto pipelining by default #680

Closed vvo closed 6 months ago

vvo commented 6 months ago

We're making this a major release for safety but we believe most applications can upgrade from 1.0.1 to 2 without any changes. Auto pipelining should work by default and improve performance.

BREAKING CHANGE: Auto pipelining is on by default now, see https://upstash.com/docs/oss/sdks/ts/redis/pipelining/auto-pipeline. This brings performance benefits to any code making multiple redis commands simultaneously.

If you detect bugs because of this, please open them at https://github.com/vercel/storage/issues.

You can disable this new behavior with:

import { createClient } from '@vercel/kv';

const kv = createClient({
  url: ..,
  token: ..,
  enableAutoPipelining: false
});
vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
vercel-storage-next-integration-test-suite ✅ Ready (Inspect) Visit Preview May 27, 2024 2:42pm
changeset-bot[bot] commented 6 months ago

🦋 Changeset detected

Latest commit: c16c2db6449c1937e6742b5795b123cd75ca1650

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------- | ----- | | @vercel/kv | Major |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

socket-security[bot] commented 6 months ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher

🚮 Removed packages: npm/@upstash/redis@1.25.2

View full report↗︎

CahidArda commented 6 months ago

Great to see auto pipelining in vercel storage!

We have a patch for auto-pipelining JSON commands in upstash-redis, we will release version 1.31.3 soon.

CahidArda commented 6 months ago

upstash-redis 1.31.3 is released

vvo commented 6 months ago

@CahidArda updated 👍