From b985c510aa3b00d560d4eb8e07fe210072c9343a Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 6 Feb 2019 01:42:59 +0100 Subject: [PATCH] Optimize: Do not iterate over entries outside of "timetrack" collection Signed-off-by: Matthias Beyer --- lib/domain/libimagtimetrack/src/timetrackingstore.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/domain/libimagtimetrack/src/timetrackingstore.rs b/lib/domain/libimagtimetrack/src/timetrackingstore.rs index fa69ac37..50339c27 100644 --- a/lib/domain/libimagtimetrack/src/timetrackingstore.rs +++ b/lib/domain/libimagtimetrack/src/timetrackingstore.rs @@ -104,7 +104,7 @@ impl<'a> TimeTrackStore<'a> for Store { } fn get_timetrackings(&'a self) -> Result> { - Ok(TimeTrackingsGetIterator::new(self.entries()?, self)) + Ok(TimeTrackingsGetIterator::new(self.entries()?.in_collection("timetrack"), self)) } }