How can I implement a contains method in Google Datastore. Google doesn't provide a string contains filter of a property because it will cause a table scan.
How can I implement it another way.
How can I implement a contains method in Google Datastore. Google doesn't provide a string contains filter of a property because it will cause a table scan.
How can I implement it another way.
You are right: the Datastore, by its NoSQL nature, does not directly support substring matches, case-insensitive matches, or so-called full-text search. Your program would be able to implement case-insensitive matches and even full-text search using computed properties. This solution may work well, depending on the actual needs of the application. You can use the app engine search API for full-text matching on string fields. If you need to retrieve very large result sets, Datastore API is more appropriate.