2
0
3

1
1
3

it's built in, you can construct filters for this... i was chatting with him the other day about various relay index related subjects, in fact, and really, to do more cool stuff with relays we need to have more indexes and probably a more advanced query mechanism i don't think we realy quite need to implement graphql exactly, but simply adding full result generation and pagination, and the necessary garbage collected query cache that is required to serve up the paginated results correctly in an efficient form i've been thinking about adding such a query mechanism to a NIP-98 authed HTTP endpoint, but it is quite a bit of extra work to cache queries like, i'm writing an index for npubs right now, as my next current task as a mechanism for compressing especially follow/mute lists down to very small lists of index keys instead of the whole npub so what i would have in mind is it accepts a standard query, and then gives you the metadata of the result, ie, total number of results, and it has a list of all the event serial numbers cached to a hash of the canonical form of the filter that generated it, and you can then ask it for result-per-page/page number and voila, pagination but it needs a second, temporary index, it could be kept in memory or it could be stashed in a flat file under a hash of the canonical formatted filter and yes, i already have a filter canonicalisation algorithm and have applied it somewhere, i forget exactly now, but it generates a truncated hash identifier of filters for some reason

0
1
3

Showing page 1 of 1 pages