OpenSearch是在多个DynamoDB表属性上搜索/过滤的最佳方法吗?

发布于 2025-01-29 15:13:08 字数 474 浏览 3 评论 0原文

我在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文