mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2025-05-04 00:29:56 -04: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…
x
Reference in New Issue
Block a user