index-only scans for pubkey+kind

This commit is contained in:
Doug Hoyte
2023-01-29 04:22:30 -05:00
parent 9b83093be7
commit ee612416e0
3 changed files with 28 additions and 15 deletions

View File

@ -168,8 +168,7 @@ struct NostrFilter {
if (limit > maxFilterLimit) limit = maxFilterLimit;
indexOnlyScans = numMajorFields <= 1;
// FIXME: pubkeyKind scan could be serviced index-only too
indexOnlyScans = (numMajorFields <= 1) || (numMajorFields == 2 && authors && kinds);
}
bool doesMatchTimes(uint64_t created) const {