1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-14 19:02:41 +01:00
phorge-phorge/src/applications/repository/worker
epriestley 0aa913805d Add an alternate "modern" hunk datastore
Summary:
Ref T4045. Ref T5179. Hunk storage has two major issues:

  - It's utf8, but actual diffs are binary.
  - It's huge and can't be compressed or archived.

This introduces a second datastore which solves these problems: by recording hunk encoding, supporting compression, and supporting alternate storage. There's no actual compression or storage support yet, but there's space in the table for them.

Since nothing actually uses hunk IDs, it's fine to have these tables exist at the same time and use the same IDs. We can migrate data between the tables gradually without requiring downtime or disrupting installs.

Test Plan:
  - There are no writes to the new table yet.
  - The only effect this has is making us issue one extra query when looking for hunks.
  - Observed the query issue, but everything else continue working fine.
  - Created a new diff.
  - Ran unit tests.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4045, T5179

Differential Revision: https://secure.phabricator.com/D9290
2014-06-03 18:01:22 -07:00
..
__tests__ Added some additional assertion methods. 2014-03-08 19:16:21 -08:00
commitchangeparser Make task queue more robust against long-running tasks 2014-04-15 08:42:02 -07:00
commitmessageparser Add an alternate "modern" hunk datastore 2014-06-03 18:01:22 -07:00
PhabricatorRepositoryCommitHeraldWorker.php Make the hard limit on the number of files showing in Herald emails a constant. 2014-05-01 07:37:26 -07:00
PhabricatorRepositoryCommitOwnersWorker.php Make task queue more robust against long-running tasks 2014-04-15 08:42:02 -07:00
PhabricatorRepositoryCommitParserWorker.php Don't disrupt repository import chain when publishing is disabled 2014-04-08 05:13:28 -07:00
PhabricatorRepositoryPushMailWorker.php Allow users to receive email about pushes via Herald 2014-03-26 13:51:15 -07:00