nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 42c0fe72084ca3b3bceefba98c9b72adb9300909
parent 0e702e97b9b62ebf90833a72e44dd924f948fc4a
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 13 Mar 2024 07:31:44 +0000

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.

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

diff --git a/src/nostrdb.c b/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) {