OpenSearch是在多个DynamoDB表属性上搜索/过滤的最佳方法吗?
我在DynamoDB数据库中有数据,并且需要在10+属性(同时或多个)上搜索/过滤,而无需求助于每个查询的整个数据库。
- 我已经看到有2或3个属性要搜索时建议使用复合排序键,但没有10个属性。
- 我可以为每个可能的滤波器组合创建DynamoDB索引,但是有10个以上的属性要过滤,索引的数量将在数百万中。
- 我考虑过将数据复制到一个可以进行SQL查询的关系数据库中,但是我不想仅出于一个问题将RDS添加到我的技术堆栈中。
基于此问题的答案,弹性搜索vs dynamodb用于过滤似乎Elasticsearch/Opensearch是必经之路。这看起来对吗?
I have data in a DynamoDB database, and I need to search/filter on 10+ attributes (one or many at the same time) without resorting to scanning the entire database for each query.
- I’ve seen compound sort keys recommended when there are 2 or 3 attributes to search on, but not when there are 10+.
- I could create DynamoDB indexes for each of the possible filter combinations, but with 10+ attributes to filter on, the number of indexes would be in the millions.
- I considered copying the data into a relational database that I can just do SQL queries on, but I don’t want to add RDS to my tech stack just for this one problem.
Based on the answers to this question, Elastic search vs Dynamodb for Filtering, it seems like ElasticSearch/OpenSearch is the way to go. Does this seem right?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论