lmdb: use 8-byte keys instead of 32, use indexAddr, migrations.

This commit is contained in:
fiatjaf
2023-12-06 06:48:16 -03:00
parent e3ddc80a08
commit f2cccb0fce
8 changed files with 254 additions and 120 deletions

8
helpers.go Normal file
View File

@@ -0,0 +1,8 @@
package eventstore
import "github.com/nbd-wtf/go-nostr"
func isOlder(previous, next *nostr.Event) bool {
return previous.CreatedAt < next.CreatedAt ||
(previous.CreatedAt == next.CreatedAt && previous.ID > next.ID)
}