From 864e810563740ba7094c0eb39e83b1e299d63907 Mon Sep 17 00:00:00 2001 From: u Date: Tue, 17 Dec 2024 21:43:57 +0100 Subject: [PATCH] Update migrate_kv_to_redis.md Corrected some more typos. Signed-off-by: u --- devvit-docs/docs/migrate_kv_to_redis.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devvit-docs/docs/migrate_kv_to_redis.md b/devvit-docs/docs/migrate_kv_to_redis.md index 60f0f7200..149f13f86 100644 --- a/devvit-docs/docs/migrate_kv_to_redis.md +++ b/devvit-docs/docs/migrate_kv_to_redis.md @@ -70,5 +70,5 @@ export default Devvit; # Troubleshooting -- When apps use `kvStore.list` - safe execution in a multi-tenant environment is not guaranteed - it causes CPU spikes and blocks other Redis commands from running at the same time. We recommend using Redis Hashes instead, each hash can store upto 4.2 billion key value pairs and a combination of `hscan`, `hgetall` and `hkeys` can be used for iteration. Please reach out to us in Discord - we can help adapt your existing data model to use Redis and improve performance and reliability of your app. +- When apps use `kvStore.list` - safe execution in a multi-tenant environment is not guaranteed - it causes CPU spikes and blocks other Redis commands from running at the same time. We recommend using Redis Hashes instead, each hash can store up to 4.2 billion key value pairs and a combination of `hscan`, `hgetall` and `hkeys` can be used for iteration. Please reach out to us in Discord - we can help adapt your existing data model to use Redis and improve the performance and reliability of your app. - `kvStore.put` encodes the values with `JSON.stringify` and `kvStore.get` does `JSON.parse` to obtain the original data. If you are seeing returned values from `redis.get` wrapped in additional quotes during migration - add a try/catch block with `JSON.parse` to resolve the issue.