Skip to content

Commit 859ea95

Browse files
committed
docs: warn about GitDB performance with large commits
Add a warning note in the Object Database section of the tutorial about GitDB failing or becoming extremely slow when traversing trees in repositories with very large commits (thousands of changed files). Directs users to switch to GitCmdObjectDB instead. Closes #2065
1 parent ddca0b3 commit 859ea95

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/source/tutorial.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,12 @@ The GitDB is a pure-python implementation of the git object database. It is the
513513

514514
repo = Repo("path/to/repo", odbt=GitDB)
515515

516+
.. warning::
517+
``GitDB`` may fail or become extremely slow when traversing trees in
518+
repositories with very large commits (thousands of changed files in a
519+
single commit). If you encounter ``RecursionError`` or excessive
520+
slowness during tree traversal, switch to ``GitCmdObjectDB`` instead.
521+
516522

517523
GitCmdObjectDB
518524
==============

0 commit comments

Comments
 (0)