The difference between the dataset size of Redis resources and the size after export and restoration is too large

Sun Tongxin3 20 Reputation points
2024-07-02T07:53:05.57+00:00

When Redis uses the advanced pricing layer, after cleaning up some keys, the current 400k key count occupies 1.7GB of memory. By exporting RDB, the RDB file is only a few tens of MB. Even if restored through the Azure portal, it only occupies the same size as the RDB file. There is a gap of about 40 times or more in the middle.

Can you provide suggestions and an explanation of the reasons for this difference. How did such a large difference come about.

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
227 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amrinder Singh 4,110 Reputation points Microsoft Employee
    2024-07-02T08:42:30.55+00:00

    Hi Sun Tongxin3 - Thanks for reaching out.

    There can be difference between the current size of data in cache versus when it is Exported. However, once you export that data back, it should ideally reflect the size of cache data which was there previously unless there is any kind of data deletion that happened just before it was Exported.

    This might need a support ticket for a closer look at the metrics and the backend but let me try to check if there are any other possibilities and shall keep you posted.


0 additional answers

Sort by: Most helpful