mleku on Nostr: he just wrote the event store wrong, every single filter spawns like 5 threads for no ...
he just wrote the event store wrong, every single filter spawns like 5 threads for no reason, i rewrote it so it's all a single thread and today running it continuously overnight i'm not getting any problems (other users are connecting to it also this time)
you can probably retain the existing channel API for the queries but the whole query code needs to be flattened out into one thread
Published at
2024-09-27 05:59:08Event JSON
{
"id": "76390e6f2973f31ce92742329c54814761d4aed642d98809a131409d3f3fc36e",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1727416748,
"kind": 1,
"tags": [
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"wss://relay.westernbtc.com/",
"fiatjaf"
],
[
"p",
"44dc1c2db9c3fbd7bee9257eceb52be3cf8c40baf7b63f46e56b58a131c74f0b",
"wss://freelay.sovbit.host/",
"Enki"
],
[
"e",
"00001dc6bae57a40ed6eb9eacac346ea6a0aa22a092742f43b1b64d9d73b2f1b",
"wss://freelay.sovbit.host/",
"root"
],
[
"e",
"5ba3dd051b25cc502b7d3f9aa76a81a1604847e4cea99c1301b3a346ebd2171c",
"wss://freelay.sovbit.host/",
"reply",
"44dc1c2db9c3fbd7bee9257eceb52be3cf8c40baf7b63f46e56b58a131c74f0b"
]
],
"content": "he just wrote the event store wrong, every single filter spawns like 5 threads for no reason, i rewrote it so it's all a single thread and today running it continuously overnight i'm not getting any problems (other users are connecting to it also this time)\n\nyou can probably retain the existing channel API for the queries but the whole query code needs to be flattened out into one thread",
"sig": "66e32d3eee8254c7f9eaad58ee926e11fafb241d1e04963dae5c45f808e0778167e80c668c3e1b73d4b0d1641fa083b893ed1db84f969dbd26b93e34acccf2a2"
}