fiatjaf on Nostr: I have nothing against Badger, LMDB is just much faster, but you'll say I'm using it ...
I have nothing against Badger, LMDB is just much faster, but you'll say I'm using it wrong.
I did remove all the goroutines though, and have a nicer algorithm now for iterating and searching through multiple indexes, and it is faster than before, but then I did the same algorithm for LMDB and it got even faster.
Published at
2025-01-05 16:52:02Event JSON
{
"id": "000057af167e11aa32cf2674730591d37f4c6d2a15c8050e2fe0e208ba212e37",
"pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"created_at": 1736095922,
"kind": 1,
"tags": [
[
"p",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f"
],
[
"p",
"bd4ae3e67e29964d494172261dc45395c89f6bd2e774642e366127171dfb81f5"
],
[
"e",
"ddf86bef5aa6cfb37c9c33eb483ba5c15710a17db6a09bcff5a119834b8fc47b",
"wss://wot.utxo.one/",
"root"
],
[
"e",
"5810774d731d6d1f7ecd4ac261a1f7259aeee5eff5cd910cbae11fc4be8357ac",
"wss://wot.utxo.one/",
"reply",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f"
],
[
"nonce",
"9223372036854787416",
"16"
]
],
"content": "I have nothing against Badger, LMDB is just much faster, but you'll say I'm using it wrong.\n\nI did remove all the goroutines though, and have a nicer algorithm now for iterating and searching through multiple indexes, and it is faster than before, but then I did the same algorithm for LMDB and it got even faster.",
"sig": "29d45a089f4cd6e104aeeabb97f7cab5c019f589372adaf386bad2827215814aa2775f319a1c4d491ff81d9624359f9d532fcc290400f647da20ee9d1880cc33"
}