Edgewall Software

Changes between Initial Version and Version 1 of TracDarcs/Cache


Ignore:
Timestamp:
Apr 21, 2009, 11:17:40 AM (15 years ago)
Author:
Lele Gaifax <lele@…>
Comment:

First cut

Legend:

Unmodified
Added
Removed
Modified
  • TracDarcs/Cache

    v1 v1  
     1= Darcs specific cache =
     2
     3For performance reasons, TracDarcs heavily relies on a specialized `CachedRepository` that basically reimplements the Subversion versioned tree for the tracked darcs repository: once a darcs changeset gets processed, the trac environment won't need to access the repository anymore (this is slightly simplified, as the ''content'' of each file at a given revision gets computed and cached only at its first request).
     4
     5It does that by keeping a few extra tables (as of version 0.6, there are [http://progetti.arstecnica.it/trac%2Bdarcs/browser/tracdarcs/darcs-tables.sql four specific] `darcs_xxx` tables) extending/replacing the standard trac database schema. This is far from perfect, but it does the (''tricky''!) work reasonably well: all the merits goes to K.S.Sreeram who [http://progetti.arstecnica.it/trac%2Bdarcs/changeset/27 reimplemented the core] for version 0.4.
     6
     7As I'm planning to implement MultipleRepositorySupport for 0.7, I'm trying to figure out a better integration with the standard schema, avoiding table/data duplication.
     8
     9
     10
     11
     12
     13