Hi all,
My application allows users to query via sets of tags (usual arbitrary strings), at present I am using a structured property in my model to store the set of tags
tags = ndb.StringProperty(repeated=True)
and query it as follows
query = meddle.models.UserPhoto.query().filter(meddle.models.UserPhoto.user_key == user_profile.key)
for tag in tags:
query.filter(myapp.models.UserPhoto.tags == tag)
I suspect ask the stored data grows this might not be the most efficient query to run, and have thus been wondering if we should explore the Search API to store indexes.
Am mostly looking for a confirmation on if I should go down the path of exploring the Search API or is there a better way in NDB to query arbitrary strings.
Thanks very much for any pointers.
Dev