Files @ b91c5a6327bd
Branch filter:

Location: kallithea/docs/usage/backup.rst

b91c5a6327bd 498 B text/prs.fallenstein.rst Show Annotation Show as Raw Download as Raw
Mads Kiilerich
comments: optimize notification creation

.append to the sqlalchemy collection is apparently expensive. Setting the
reference the other way around is much faster. Adding a notification for a
single user goes from 0.25 s to 0.001 s.

On a slow repo and a pullrequest with 14 reviewers, adding a comment goes from
8.5 s to 0.8 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