From cc9585b6e3472db1402692622dc535413b3fedd9 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 13 Mar 2024 07:31:44 +0000 Subject: [PATCH] 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 --- nostrdb/src/nostrdb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c index 95ceb4e1..2c0476aa 100644 --- a/nostrdb/src/nostrdb.c +++ b/nostrdb/src/nostrdb.c @@ -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) {