Optimize: Do not iterate over entries outside of "timetrack" collection

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-02-06 01:42:59 +01:00
parent fe9409a5dc
commit b985c510aa

View file

@ -104,7 +104,7 @@ impl<'a> TimeTrackStore<'a> for Store {
} }
fn get_timetrackings(&'a self) -> Result<TimeTrackingsGetIterator<'a>> { fn get_timetrackings(&'a self) -> Result<TimeTrackingsGetIterator<'a>> {
Ok(TimeTrackingsGetIterator::new(self.entries()?, self)) Ok(TimeTrackingsGetIterator::new(self.entries()?.in_collection("timetrack"), self))
} }
} }