NfNitLoop / feoblog

A distributed, cryptographically-verifiable blog / social network
Other
71 stars 4 forks source link

Support server-side search #90

Open NfNitLoop opened 2 years ago

NfNitLoop commented 2 years ago

The current client-side search is a bit of a hack. It's a brute-force search back through history, so is O(n) and uses O(n) network requests. (And network traffic, if you haven't got a cached copy of the Items locally.)

SQLite actually supports full text search indexes! Could add an option to enable it, and let servers advertise that they support server-side search, at which point clients can use that.

Use cases:

All

Search My (a) Feed

Server Search

See also: #11