Files @ ad374c171656
Branch filter:

Location: kallithea/docs/usage/backup.rst - annotation

ad374c171656 498 B text/prs.fallenstein.rst Show Source Show as Raw Download as Raw
Mads Kiilerich
comments: introduce lazy join of ChangesetStatus on ChangesetComment

99% of all uses of ChangesetComment will also need the optional corresponding
ChangesetStatus (if any) on the status_change relationship. Fetching it on
demand gives a lot of roundtrips and might be slow ... but adding explicit bulk
queries everywhere do not seem feasible. Adding lazy=joined in the data model
seems like the best solution.

Loading a pull request with 10 comments on a slow repo goes from 3.5 s to
2.7 s.
.. _backup:

====================
Backing up Kallithea
====================


Settings
--------

Just copy your .ini file, it contains all Kallithea settings.

Whoosh index
------------

Whoosh index is located in **/data/index** directory where you installed
Kallithea ie. the same place where the ini file is located


Database
--------

When using sqlite just copy kallithea.db.
Any other database engine requires a manual backup operation.

Database backup will contain all gathered statistics