Why Nostr? What is Njump?
2025-05-15 18:42:34

mleku on Nostr: #realy #devstr #progressreport i'm getting to the last steps in writing the fulltext ...

#realy #devstr #progressreport

i'm getting to the last steps in writing the fulltext query filter handling parts, and i've written the handle for p tags, that was easy, there's an index for that

but there isn't an index for e tags, this is what the "extrafilter" is about in fiatjaf's query function in the badger database

i'm looking this up and down and i'm like, uh, there's no index for e tags, which are commonly needed to search for replies!

i think i have to go to the indexes now and create a new index for e-tags to make this work, because i really don't see how i can filter on them with the fulltext search with a full filter

and if i'm gonna make a new e tag index, then i can speed up normal filter searches a lot too

hilarious, but kinda annoying, i was all homed in on the fulltext search function and now i have to go sideways and add a new index and that will mean needing to rescan the indexes when i'm done building that, before i can expect this fulltext search to work

i'm kinda glad i'm digging deep into this key value store database indexing design stuff... i'm sure this is going to be valuable. i have already learned enough to build a reasonable set of indexes for my fiat mine data analysis stuff, but this is getting a step further advanced, after i've built this i can say i have built a fully capable database engine for nostr that is optimized to search for events... with that e tag index added it will slash the search time by maybe as much as 50% for regular kind 1 or general threaded queries.
Author Public Key
npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku