有没有一种有效的方法来查询文档数据库?

发布于 2024-08-26 02:55:34 字数 77 浏览 2 评论 0原文

由于文档数据库以树状结构存储记录,因此字段永远不会位于设定位置。这是否会导致文档数据库的查询效率低下,还是索引只能像普通关系数据库一样使用?

Since document databases store records in tree like structures the fields will never be at set positions. Does this make querying a document database inefficient, or would indexes just be used as with a normal relational database?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

萌逼全场 2024-09-02 02:55:34

您似乎对“文档数据库”有一个特定的想法,但该术语不是一个艺术术语。

“文档数据库”可以是:

  1. 具有大文本字段列和全文索引的数据库。
  2. XML 数据库,例如 MarkLogic 或 SoftwareAG
  3. 复杂的 SQL 模式,将文档建模为许多小片段。

所有这些都有或多或少有效的架构和索引策略。只有最后一个使用传统的 SQL 索引。全文支持使用倒排术语索引,例如由 Lucene 实现的倒排术语索引,以提供对任意术语的快速搜索。 XML 数据库在 XPath 表达式上构建索引。

You seem to have a specific idea in mind of a 'document database,' but that term is not a term of art.

A 'document database' could be:

  1. a database with a big text field column and a full text index.
  2. an XML database such as MarkLogic or SoftwareAG
  3. a complex SQL schema that models a document as a lot of little pieces.

There are more or less efficient architectures and indexing strategies for all of these. Only the last uses conventional SQL indices. Full text support uses inverted term indices such as are implemented by Lucene to supply fast search on arbitrary terms. XML databases build indexes on XPath expressions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文