A
A
Alexander2017-02-22 06:40:55
Books
Alexander, 2017-02-22 06:40:55

How to track changes in text?

Hello!
There is a text of 8000 characters.
The user can edit it. And there can be up to a million such users :-)
How to track changes, additions in the text?
How to show another user what changes happened to the text? And he must be familiar with these changes. Those. simply comparing the date the text was modified with the date it was read will not work, because in one visit, the user may not see all the changes in full.
Keeping the last text in its entirety in the database of each user and comparing it with the final text is not an option. The base will be obscenely large.
Your ideas? Everything but the Git system!
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2017-02-22
@cry_san

Are you inventing your own version control system ? Check out the existing solutions, maybe one of them will suit you.
(Hint: there are others besides git).
For history, you can store diffs .
8k characters is not that much. For example, 1000 copies will weigh 8 megabytes. This is three edits a day for a year, for example. And if the text is compressed, it will take many times less.
Or look at the wiki engine, there is also a history of changes and many users.
Also, you can break the text into chapters (yes, even into paragraphs) and keep a history separately for each fragment. Then the volume of changes will decrease even more.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question