K
K
karasique2019-02-04 21:29:18
MySQL
karasique, 2019-02-04 21:29:18

How to organize timelines (history) and their storage in the database (and interaction in general)?

I have conditionally 3 types of pages (order, building, client).
Each of them has a timeline (Chronology of actions with an order / building / client).
How can I organize the storage of logs?
So far, it seems to me like this:
5c5883d7467b8489968446.png
With any change, an action is recorded (to determine the visual style, for example), text (for further output).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
grinat, 2019-02-04
@grinat

If the logs, then mysql immediately disappears, hundreds of millions of records run up there pretty quickly, take elastic, usually it’s enough to store id, date, type in and json the necessary data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question