Oh, this, but a list!
I also don't get the 1337ness of single character keys. Somewhat as retarded as kinds but yeah, tolerable.
Oh, this, but a list!
I also don't get the 1337ness of single character keys. Somewhat as retarded as kinds but yeah, tolerable.
For indexing.
it's just to limit how many indexes the relay's event store has to make to max 52 different kinds of tag keys, these are required to enable search, if you don't index them the only way to search is to exhaustively iterate through the records which would be insanely slow, but if you let any tag key be required to be indexed the database is again going to be very slow
fiatjaf added this because he knows about database indexes, his code in the eventstore repo is quite extensive and actually even has a little bit of documentation
While clever, we are still optimizing database logic at the protocol level.
Anyway, we can keep a small int kind for CORE event types. My argument is against the rest of the bloat which will never be enough.
Nothing stops a relay backend from pre processing mimetypes and translating each - for the ones that have indexing interest - by using an unique small int. Neglectible pre processing overhead.