chris on Nostr: I don’t think DVMs will scale for my use case, I essentially want to show counts ...
I don’t think DVMs will scale for my use case, I essentially want to show counts for comments, likes and amounts for zaps (taking each zap event for an event and reducing it to an amount) for posts.
Streaming each event in and counting on the client seems wrong but there is no way to ask a relay for counts (leaving aside zap amounts for now, which would be slightly more complex).
I don’t think paying a relay every time I want a comment count for a post is a good solution. Unless I’m misunderstanding something.
Published at
2025-04-03 02:21:31Event JSON
{
"id": "64aa3cdf473ab159a82d0a3387e96c6783eb0698eb2fb790d277a833ae7ea5ec",
"pubkey": "220522c2c32b3bf29006b275e224b285d64bb19f79bda906991bcb3861e18cb4",
"created_at": 1743646891,
"kind": 1,
"tags": [
[
"e",
"7c2b91a60db4d472185e9d4ffafd012ce6db6ad2ae6e049cd4813894d84d6766",
"",
"root"
],
[
"e",
"fee4c998b0276a338f802924d1ccc5a086b035a9e08627219d6ba00fc68f6a5a",
"",
"reply"
],
[
"p",
"7fa56f5d6962ab1e3cd424e758c3002b8665f7b0d8dcee9fe9e288d7751ac194"
]
],
"content": "I don’t think DVMs will scale for my use case, I essentially want to show counts for comments, likes and amounts for zaps (taking each zap event for an event and reducing it to an amount) for posts.\n\nStreaming each event in and counting on the client seems wrong but there is no way to ask a relay for counts (leaving aside zap amounts for now, which would be slightly more complex). \n\nI don’t think paying a relay every time I want a comment count for a post is a good solution. Unless I’m misunderstanding something.",
"sig": "4e0ba1da4b17bf8a019a13820b777246f6e807b6cd8f859cf328652241beb272ba16f5247a80d8e286e7766737be6a870f9a45698564665f4e1dcf84752f1301"
}