I’m playing about with the SAFE web API, just trying to understand how everything works before I build my first app. I think I understand the basics of how it works (haven’t quite got to permissions yet or the encryption stuff).
So I can use the newPublic endpoint to create/get a reference to my data, then I can query it using getEntries and forEach docs.maidsafe .net/beaker-plugin-safe-app/#windowsafemutabledataentriesforeach.
But my question is around searching through data. If I was to make a very simple app like Twitter, where people post public MutableData and in the end I have 1000 entries. How could I search for an entry that contains a specific phrase.
Would I need to implement some sort of indexing then loop through the keys/values to find the record I want. Or will there be a query api.
It sort of links in with another question I have about pagination, limiting records, etc. I might be thinking too “traditional app” in my approach so sorry if these are really stupid questions.