mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-22 00:59:07 -05:00
improvement: do not force query to use index when limit is specified
This commit is contained in:
parent
71bdbfb425
commit
3979a94726
|
@ -645,7 +645,7 @@ fn override_index(f: &ReqFilter) -> Option<String> {
|
||||||
}
|
}
|
||||||
// if there is an author, it is much better to force the authors index.
|
// if there is an author, it is much better to force the authors index.
|
||||||
if f.authors.is_some() {
|
if f.authors.is_some() {
|
||||||
if f.since.is_none() && f.until.is_none() {
|
if f.since.is_none() && f.until.is_none() && f.limit.is_none() {
|
||||||
if f.kinds.is_none() {
|
if f.kinds.is_none() {
|
||||||
// with no use of kinds/created_at, just author
|
// with no use of kinds/created_at, just author
|
||||||
return Some("author_index".into());
|
return Some("author_index".into());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user