perf: force authors index to be used if possible

This commit is contained in:
Greg Heartsfield 2023-01-15 10:23:46 -06:00
parent 9d9c6c78d1
commit 3e7f2e21df

View File

@ -523,6 +523,10 @@ fn override_index(f: &ReqFilter) -> Option<String> {
return Some("kind_created_at_index".into()); return Some("kind_created_at_index".into());
} }
} }
// if there is an author, it is much better to force the authors index.
if let Some(ks) = &f.authors {
return Some("author_index".into());
}
None None
} }