Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5959635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:42:46+00:00 2026-05-22T18:42:46+00:00

How are people coping with changes to redis object schemas – adding or removing

  • 0

How are people coping with changes to redis object schemas – adding or removing properties from objects?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:42:47+00:00Added an answer on May 22, 2026 at 6:42 pm

    Sharing from my own experience (one year old project with thousands of user requests per second).

    Usually, there were two scenarios for me:

    1. Add new information to existing structures (like, “email” field to a user)
    2. Remove or change existing values in existing structures (like, change format of some field)
    3. Drop stuff from the database

    For 1 I keep following simple strategy: degrade gracefully, e.g. if user doesn’t have email record – treat it as empty email. Worked all the time.

    For 2 and 3 it depends, whether data can be changed/calculated/fixed before releasing or after. I run a job on database that does all the work for me, for few millions of keys it takes considerable time (minutes). If that job can be run only after I release the new code – then degrading gracefully helps a lot, I simply release and then run the job.

    PS: If you affect a lot of keys in redis then it is very important to use http://redis.io/topics/pipelining Saves a lot of time.

    1. Take a list of all affected (i.e. you want to fix them in any way) keys or records in pipeline
    2. Do whatever you want on them. If it’s possible try to queue writing operations into pipeline too
    3. Send queued operations to redis.

    It is also very important for you to make indexes of your structures. I keep sets with ids. Then I simply iterate over SMEMBERS(set_with_ids).
    It is much, much better than iterating over KEYS command.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Coming from C++, I find generic programming indispensable. I wonder how people approach that
Having the one push build to take your changes from development environment to live
I would like to add an update hook to git that prevents people from
I would like to add an update hook to git that prevents people from
I've been working with a small group of people on a coding project for
I hear a lot of people talking about the revolution that is coming in
In a coding style question about infinite loops , some people mentioned they prefer
What are the C++ coding and file organization guidelines you suggest for people who
Say you're coding some kind of web application. Something where people can contribute content,
People have been developing own solutions to the following problems: Consistent messaging frameworks for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.