But "search" you mean a) searching for a keyword in all events or fetching, say, b) the user's event for some query?
For a I think the solution is to have a click house/bq and an API call. For b caching might actually do for 99% of users
But "search" you mean a) searching for a keyword in all events or fetching, say, b) the user's event for some query?
For a I think the solution is to have a click house/bq and an API call. For b caching might actually do for 99% of users
Search means looking for users when you @ somebody (local db of profiles FTS indexed) + searching for something you have seen (FTS of content events) + searching for both in a relay with NIP-50.
In practice, the API call can be replaced by a relay, which we already do. But it is too slow or inconsistent over time (relay gets busy)