How to search in Cloud Datastore

eg. I am building a real estate catalog. I need, well, a bunch of properties and a search by such parameters as the number of living rooms, city, area on the map, price range, etc. The number of possible combinations here can easily exceed 200 indices.

Or is it some kind of tag based search. The number of variations here is almost endless.

If I understood correctly, Cloud Datastore is not capable of such cases. But in my experience, almost all the applications I've worked on require such functionality. So is Cloud Datastore only suitable for direct searches with only one key? Plus the search API can handle full-text searches. But that is all. This seems wrong, so I assume that I have no fundamental point.

Maybe there are some additional services for indexing? Or architectural solutions?

0
source share
1 answer

So, is cloud storage suitable only for direct direct key look up only?

Obviously not - you can use up to 200 compound indexes. And any number of implicit indexes stored in the data store for each indexed property.

This may not be enough for some applications, I admit. In this case, a different solution is likely to be required. Maybe even a hybrid that combines data storage with some other indexing methods? Not sure, I have not tried it yet, since I have not yet encountered such a need.

IMHO 200 . - ? , ( 200) , /.

- , , 2 ? , , . , 3 , , 1/8 .

, , , - , , . . - .

, . , , , , .

+1

Source: https://habr.com/ru/post/1688536/


All Articles