nostrdb

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

commit 94644569a016ec49a7afa64b57ff3a04bcc59dc8
parent 3ff92909ef784264bc6160a39f4c2fe5d7b16072
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 10 Sep 2025 20:16:23 -0700

cli: support querying up to 1 million notes

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mndb.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ndb.c b/ndb.c @@ -362,7 +362,7 @@ int main(int argc, char *argv[]) ndb_filter_json(f, buf, sizeof(buf)); fprintf(stderr, "using filter '%s'\n", buf); - int rsize = 30000; + int rsize = 1000000; struct ndb_query_result *results = malloc(sizeof(struct ndb_query_result) * rsize); assert(results); ndb_begin_query(ndb, &txn);