mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-22 00:59:07 -05:00
perf: force authors index to be used if possible
This commit is contained in:
parent
9d9c6c78d1
commit
3e7f2e21df
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user