fiatjaf on Nostr: Yes, there is slicestore which is just in memory, but it has no indexes, it's just ...
Yes, there is slicestore which is just in memory, but it has no indexes, it's just for testing.
Implementing an eventstore is just exposing some methods, so it can be easy or hard depending on what you want to do. To compute multiple indexes and traverse them manually can be very hard. Take a look at the badger query implementation, for example.
Published at
2024-10-23 10:36:42Event JSON
{
"id": "000053324c9b26150658f336b1f2ff97933a9db9b022837c6ab9b51ad95425fa",
"pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"created_at": 1729679802,
"kind": 1,
"tags": [
[
"client",
"gossip"
],
[
"p",
"3ffac3a6c859eaaa8cdddb2c7002a6e10b33efeb92d025b14ead6f8a2d656657"
],
[
"e",
"0a1e66be40d2c076f03104415a8e2bba395fb695fb6d0e09b3fc61b220191514",
"wss://wot.utxo.one/",
"root"
],
[
"e",
"d56c7860ccbff604746880e81069eb0c30f55ccdbbd382082f8badcedc0594f0",
"wss://wot.utxo.one/",
"reply",
"3ffac3a6c859eaaa8cdddb2c7002a6e10b33efeb92d025b14ead6f8a2d656657"
],
[
"nonce",
"8194",
"16"
]
],
"content": "Yes, there is slicestore which is just in memory, but it has no indexes, it's just for testing.\n\nImplementing an eventstore is just exposing some methods, so it can be easy or hard depending on what you want to do. To compute multiple indexes and traverse them manually can be very hard. Take a look at the badger query implementation, for example.",
"sig": "fa10ddca1ce4298d081f74695fe560e4080417b3c1e51ad71a07e26563d29d24b6ae91d981e90b7abd4b2963286fd53b2c576c20bf4eed2c8be863020e1b32bc"
}