From 4d16d1c812c41947e078bc59ede1183bdf8f0a3a Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 27 Jan 2026 11:41:47 -0800 Subject: [PATCH] Some logging stuff [ci skip] --- src/documents/management/commands/document_perf_benchmark.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/documents/management/commands/document_perf_benchmark.py b/src/documents/management/commands/document_perf_benchmark.py index 42f2e7f26..f0770851b 100644 --- a/src/documents/management/commands/document_perf_benchmark.py +++ b/src/documents/management/commands/document_perf_benchmark.py @@ -455,6 +455,7 @@ class Command(BaseCommand): ) def _run_benchmarks(self, *, iterations: int, target_user, superuser, prefix: str): + self.stdout.write("-> doc counts") self._time_query( label="non-superuser: id__in(values_list flat=True)", iterations=iterations, @@ -471,12 +472,14 @@ class Command(BaseCommand): fn=lambda: Document.objects.count(), ) if not self.options.get("skip_tags"): + self.stdout.write("-> tag counts") self._time_tag_counts( iterations=iterations, prefix=prefix, user=target_user, ) if not self.options.get("skip_custom_fields"): + self.stdout.write("-> custom field counts") self._time_custom_field_counts( iterations=iterations, prefix=prefix,