damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit cc9585b6e3472db1402692622dc535413b3fedd9
parent bd17dcfac63e251cdacd6ed8bf64631ea5661e0d
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 13 Mar 2024 07:31:44 +0000

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>

Diffstat:
Mnostrdb/src/nostrdb.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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) {