1

I read in many posts that Stack Overflow uses some kind of diff algorithm to find diff between text blobs of edits. I wanted to know if Stack Overflow saves all the blobs in the database as-is or if it has some way of saving just the diffs over the original question or answer.

2
  • 3
    My bet would be they store the full thing. Otherwise, displaying the post history and applying a rollback would have to apply the diff to the current state (uggh) and there would be no sane way to alter the diff format retroactively (arrgh). Commented Mar 24, 2014 at 16:07
  • The schema is available on data.stackexchange.com; posts are stored wholesale in the PostHistory table. Commented Mar 24, 2014 at 16:07

1 Answer 1

7

Each revision is saved in its entirety and the diffs are produced on the fly by comparing the subsequent revisions.

answered Mar 24, 2014 at 16:07
0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.