jb55 on Nostr: basically queries just return pointers to memory aligned structs stored on disk. so ...
basically queries just return pointers to memory aligned structs stored on disk. so no copying data in out. lmdb queries are so fast (its like an in-memory btree lookup), so this gives you an "infinitely" large external memory for nostr notes, powered by the operating systems virtual memory infrastructure.
Published at
2025-01-31 01:41:46Event JSON
{
"id": "7023368a4032c2e73391eac1108b27dc3e79783c736b289246b447df172e1614",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1738287706,
"kind": 1,
"tags": [
[
"client",
"Damus Notedeck"
],
[
"e",
"5527286a348b47f17798e277cbaa207b617a436ff7fb00dfcd5f77cbdfb30db6",
"",
"root"
],
[
"e",
"c84a40185e36bf3094b4e424e19b9190c80fbfcc36592403aefce194e7eb03d6",
"",
"reply"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
],
[
"p",
"1bc70a0148b3f316da33fe3c89f23e3e71ac4ff998027ec712b905cd24f6a411"
]
],
"content": "basically queries just return pointers to memory aligned structs stored on disk. so no copying data in out. lmdb queries are so fast (its like an in-memory btree lookup), so this gives you an \"infinitely\" large external memory for nostr notes, powered by the operating systems virtual memory infrastructure.",
"sig": "54a78cc1abe1eabde9587b5368957fba835ecb638f3ffa6427a6c165f79fcfaa6dd749146a374faebeffb6bfdc4ce137615c0b8a7087a01f87e6cbb5866f6949"
}