rcoder on Nostr: You can still do an index lookup in the persistent event store if you pre-generate ...
You can still do an index lookup in the persistent event store if you pre-generate the SHA for each key and store it alongside the original message. Or just do a sequential scan if your message queue is small.
Published at
2022-07-15 15:54:58Event JSON
{
"id": "8f96ac2c67734e7953275543e11b413e6104420a009647c2ba12f456414e8ea0",
"pubkey": "e4c47aedea8ea54255f5ba07a77053b24553e9b975435e56da343da19aec7881",
"created_at": 1657900498,
"kind": 1,
"tags": [
[
"p",
"46fcbe3065eaf1ae7811465924e48923363ff3f526bd6f73d7c184b16bd8ce4d",
"wss://nostr-pub.wellorder.net"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"wss://nostr-pub.wellorder.net"
],
[
"p",
"edc0120f7c50760a6a39438a187432183653f695d4595a60983dc6faaa7f94b9",
"wss://nostr-pub.wellorder.net"
],
[
"e",
"fb5c457011866920dfc0d46b63c96e735493aea4c23dd43aaa9a5d704a776fba"
],
[
"e",
"8758c2fc8355b0550c767c21355e2d2e2a1a6c67ed48aed37e19107c33352380",
"wss://nostr-pub.wellorder.net"
]
],
"content": "You can still do an index lookup in the persistent event store if you pre-generate the SHA for each key and store it alongside the original message. Or just do a sequential scan if your message queue is small.",
"sig": "d44294e57914cb0020b71feca14fc60364fa7fa9445de71975507becf56c8af66089c8d3a8f5913d47e3652b27ac8964be571447e44406af773cc96867e13d1f"
}