fiatjaf on Nostr: Well I couldn't think of something we could remove from the query language. I just ...
Well I couldn't think of something we could remove from the query language. I just think tag querying is too open-ended, like in theory you could query for a million tags (in practice it won't work).
I like the final point, but I think it makes it bad for implementations. I like the idea that anyone can make a relay implementation very easily, even if they create their own indexes manually. If we start depending on either SQL blackbox magic that would be bad.
Having a query language too flexible would also encourage bad behaviors in application developers, treating relays as full-fledged ultra-flexible databases, which they shouldn't be in my opinion.
I don't know.
Published at
2024-07-19 18:32:39Event JSON
{
"id": "ce0dd4b0dd216ede8c98c59332258ac55f66f2fcb98d2efad86d247fa3bd831d",
"pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"created_at": 1721413959,
"kind": 1,
"tags": [
[
"client",
"gossip"
],
[
"p",
"726a1e261cc6474674e8285e3951b3bb139be9a773d1acf49dc868db861a1c11"
],
[
"p",
"00000000827ffaa94bfea288c3dfce4422c794fbb96625b6b31e9049f729d700"
],
[
"p",
"f821179bd5d691c61b4356336388adadc3cc1304f49e771a87c38de7ed4fd022"
],
[
"e",
"7fb969fbf61e277337428912dd3dd4684a61c7ae04f91439f225ee8b00e9a880",
"wss://relay.nostr.net/",
"root"
],
[
"e",
"cd6a179a0e61ca68f53e5e6abafb273d71ac992d70455c65d6f5d7cdbc41f64d",
"wss://nostr.wine/",
"reply"
]
],
"content": "Well I couldn't think of something we could remove from the query language. I just think tag querying is too open-ended, like in theory you could query for a million tags (in practice it won't work).\n\nI like the final point, but I think it makes it bad for implementations. I like the idea that anyone can make a relay implementation very easily, even if they create their own indexes manually. If we start depending on either SQL blackbox magic that would be bad.\n\nHaving a query language too flexible would also encourage bad behaviors in application developers, treating relays as full-fledged ultra-flexible databases, which they shouldn't be in my opinion.\n\nI don't know.",
"sig": "aa544743cf346e1b97e0c11da525828a1dcbc1ab50d7038fad36fdd788bdae17fca981f770682bbec7739735e8762d27c2ee0d9ffbbddd19d42f9b5476aacb33"
}