D
D
Dmitry2016-10-24 03:03:09
PHP
Dmitry, 2016-10-24 03:03:09

How to design data storage with the ability to roll back the data version?

Hello! Information about products is stored in redis, there are several keys for one product. There is a need to store several versions of product databases so that you can switch between them at the same time (rollback). What is the best way to store these multiple versions of product databases? But what if the task is the same, but the information is also stored in mysql (one table, where the terms are the goods, the columns are its properties).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2016-10-24
@xmoonlight

To get an answer, you need to correctly ask the question: You did it!

What is the best way to store these multiple versions of product databases?
Multiple bases!

R
romy4, 2016-10-24
@romy4

For example, when updating a product, first write your product and version number to another table tovar_backup,
and store the latest version and its number in the product table itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question