From 25bcf9c243a6500171d46e5764bdab766c20ced6 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 5 Jan 2024 22:54:46 -0800 Subject: [PATCH] nostrdb/ndb: measure query performance Signed-off-by: William Casarin --- nostrdb/src/nostrdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c index 8ebb9e8a..593e4b2a 100644 --- a/nostrdb/src/nostrdb.c +++ b/nostrdb/src/nostrdb.c @@ -2351,7 +2351,7 @@ static int compare_query_results(const void *pa, const void *pb) b = (struct ndb_query_result *)pb; if (a->note->created_at == b->note->created_at) { - return memcmp(a->note->id, b->note->id, 32); + return 0; } else if (a->note->created_at > b->note->created_at) { return -1; } else {