nostrdb: plan: use a less efficient plan for author query plans
This is less efficient for now but we don't have a small-author-list query plan yet. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
bd17dcfac6
commit
cc9585b6e3
@@ -2939,7 +2939,9 @@ static enum ndb_query_plan ndb_filter_plan(struct ndb_filter *filter)
|
||||
if (ids) {
|
||||
return NDB_PLAN_IDS;
|
||||
} else if (authors && authors->count <= 5) {
|
||||
return NDB_PLAN_AUTHORS;
|
||||
// TODO: actually implment author plan and use it
|
||||
//return NDB_PLAN_AUTHORS;
|
||||
return NDB_PLAN_CREATED;
|
||||
} else if (tags && tags->count <= 5) {
|
||||
return NDB_PLAN_TAGS;
|
||||
} else if (kinds) {
|
||||
|
||||
Reference in New Issue
Block a user