Support the new RawFileDiffData migration in condensediffs.
Review Request #6227 — Created Aug. 13, 2014 and submitted
condensediffs has been updated to handle the migration of
LegacyFileDiffData entries to RawFileDiffData. A lot of work went into
optimizing this. These are converted in batches, with minimal SQL
queries on a modern database (read: not sqlite3).A run of condensediffs on a copy of a real-world database containing
650,000 diffs (all stored in LegacyFileDiffData entries) took 15 minutes
to convert, with a space savings of 80% (3.6GB down to 714MB).
Ran this many, many times without problems.
This was tested on sqlite, MySQL, and PostgreSQL.
Description | From | Last Updated |
---|---|---|
We should probably mark these strings for translation. Here and below. |
david | |
Since there's only one entry here, how about the single-line format? % {'count': total_count} |
david | |
You need to pass since into N_ here as a third argument (so it knows which one to choose) |
david | |
What if these tables already exist (say, a previous run of this failed in some unexpected way)? |
david |
- Change Summary:
-
- Localized text.
- Condensed a dictionary to one line.
- Added some
DROP TABLE IF EXISTS
statements.
- Commit:
-
032e3b7894a80ae1625399aa56221c6ba32f16120b8f843ac28ada5f0699cb1c1a42a9e096ef5807