Alex Gleason on Nostr: Okay, I think I understand what's happening. I render a page of 20 statuses. For each ...
Okay, I think I understand what's happening. I render a page of 20 statuses. For each status I query the author as a separate query. This results in 20 additional queries. I need to make my views pure functions, query all the data up-front and pass them in.
God I love this. So glad I finally got this set up.
Published at
2023-10-06 01:51:50Event JSON
{
"id": "8aec197b38d73aa420c70a3e269a47e383460c11d19b8745d8ab76e9e200c6ee",
"pubkey": "79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6",
"created_at": 1696557110,
"kind": 1,
"tags": [
[
"p",
"79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6",
"wss://relay.mostr.pub"
],
[
"e",
"821f3d382cf5d93592fbe4a51682312f744a5b7e778cecc1f15250d99b57ca35",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://gleasonator.com/objects/8f6ea13f-5d48-4d89-8aec-359da02f12bb",
"activitypub"
]
],
"content": "Okay, I think I understand what's happening. I render a page of 20 statuses. For each status I query the author as a separate query. This results in 20 additional queries. I need to make my views pure functions, query all the data up-front and pass them in.\n\nGod I love this. So glad I finally got this set up.\n\nhttps://media.gleasonator.com/ac3e035d87584a08e8b4e9b3bca46e07c9aec2f821d7e0cc1fa09b0b889ac6d3.png",
"sig": "1670c445f49dc008e8b876e10a256c86f55bed5d2a6d5a227d513d66dd1ef74fe262f296f8e09f65af26eea485344c2615ca40bf204d5f16f146ef2a9ca0d4b1"
}