Answer the question
In order to leave comments, you need to log in
Organization of the audit system in the database?
Given:
Answer the question
In order to leave comments, you need to log in
If it is possible to refuse to restore old revisions, then you can store, say, the last N-pieces. If the number of records in the database is so scary, then why not make a different type of relationship in your table, you now have one to many, but make it one to one (by id), and write the entire history of changes in args, indicating the action, already directly in args. Here, the truth must be remembered that the length of the fields is also not infinite, and everything probably will not fit.
The second option is indeed to use a NoSQL database, for example CouchDb, or something like that, I think that this will be even the most correct option.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question