monlovesmango on Nostr: communication with relays is handled by db worker. when new event is inserted to db, ...
communication with relays is handled by db worker. when new event is inserted to db, db worker calls a callback to add the event to the feed. when inserting a lot of new events, I think updating the UI one at a time makes it slow
Published at
2022-10-03 00:37:22Event JSON
{
"id": "0af7e05912053303788887c7b74038c9a5b2fa5e2ef0685b3d90a22578ad7767",
"pubkey": "8c0da4862130283ff9e67d889df264177a508974e2feb96de139804ea66d6168",
"created_at": 1664757442,
"kind": 1,
"tags": [
[
"p",
"f43c1f9bff677b8f27b602725ea0ad51af221344f69a6b352a74991a4479bac3",
"wss://nostr.oxtr.dev"
],
[
"p",
"c7eda660a6bc8270530e82b4a7712acdea2e31dc0a56f8dc955ac009efd97c86",
"wss://nostr-relay.untethr.me"
],
[
"p",
"1d6af101f42c755d5a8135faab903f4ef79a68df5dd98469e6966c3273a11bba"
],
[
"e",
"55d3b1f0f7aa6461cc260b1d606ae82106f5422926efff310422b4fd491855a5",
"wss://nostr-relay.wlvs.space"
],
[
"e",
"fe89e6206035ea7d0f3960b49ba4618238dcd514acbc20897c336b2187d9d5c8",
"wss://nostr-pub.wellorder.net"
]
],
"content": "communication with relays is handled by db worker. when new event is inserted to db, db worker calls a callback to add the event to the feed. when inserting a lot of new events, I think updating the UI one at a time makes it slow",
"sig": "eb97ff5ec85b6d9fd434a1e23b20dc81e1b0ade4a902f5faa52f1a5f03cee40733a1b9ea2c3e8c95f252ef87d98d4aa994408167995ec9e5ac7418f7a3995c90"
}