检索CouchDb get,它可以是一组文件吗?

时间:2022-09-15 17:45:13

Everyone, i am recently reading some knowledge about Couchdb just of interest. It's said that it stores data as pairs of index and document. and the document is literally a structure or javascript json structure.. Compared to relational database , couchdb is much lest complex, so, it saves read/write time? right? But i am wondering, in reality, and some websites are implemented with couchdb, but not all websites can be right to use this db. and by the way, for retrieval of a result, just like relational db, it returns a set of data, Can couchdb return a set of documents. and can it return a document by a given condition?

每个人,我最近都在阅读有关Couchdb的一些知识。据说它将数据存储为索引和文档对。文档实际上是一个结构或javascript json结构。与关系数据库相比,couchdb非常复杂,因此,它节省了读/写时间?对?但我想知道,实际上,有些网站是用couchdb实现的,但并非所有网站都可以正确使用这个数据库。顺便说一句,对于检索结果,就像关系数据库一样,它返回一组数据,可以将couchdb返回一组文件。并且它可以按给定条件返回文档吗?

Or it can only return a result by a given document id?

或者它只能通过给定的文档ID返回结果?

Thanx for your answer

Thanx为您的答案

1 个解决方案

#1


3  

Compared to relational database , couchdb is much lest complex, so, it saves read/write time?

与关系数据库相比,couchdb非常复杂,因此节省了读/写时间?

CouchDB stores individual documents in a key/value fashion which is less complex structure than RDBMS tables, but what it makes fast is it's MVCC model which offers high availability at expense of strong consistency.

CouchDB以键/值方式存储单个文档,这种方式的结构比RDBMS表复杂得多,但它的快速之处在于它的MVCC模型以强大的一致性为代价提供高可用性。

Can couchdb return a set of documents. and can it return a document by a given condition? Or it can only return a result by a given document id?

可以在couchdb中返回一组文档。并且它可以按给定条件返回文档吗?或者它只能通过给定的文档ID返回结果?

Yes it can return document or a set of documents by a given condition through views. You can also get document directly through it's ID without creating a view or fetch multiple documents through CouchDB's HTTP bulk document API.

是的,它可以通过视图按给定条件返回文档或一组文档。您还可以直接通过它的ID获取文档,而无需通过CouchDB的HTTP批量文档API创建视图或获取多个文档。

#1


3  

Compared to relational database , couchdb is much lest complex, so, it saves read/write time?

与关系数据库相比,couchdb非常复杂,因此节省了读/写时间?

CouchDB stores individual documents in a key/value fashion which is less complex structure than RDBMS tables, but what it makes fast is it's MVCC model which offers high availability at expense of strong consistency.

CouchDB以键/值方式存储单个文档,这种方式的结构比RDBMS表复杂得多,但它的快速之处在于它的MVCC模型以强大的一致性为代价提供高可用性。

Can couchdb return a set of documents. and can it return a document by a given condition? Or it can only return a result by a given document id?

可以在couchdb中返回一组文档。并且它可以按给定条件返回文档吗?或者它只能通过给定的文档ID返回结果?

Yes it can return document or a set of documents by a given condition through views. You can also get document directly through it's ID without creating a view or fetch multiple documents through CouchDB's HTTP bulk document API.

是的,它可以通过视图按给定条件返回文档或一组文档。您还可以直接通过它的ID获取文档,而无需通过CouchDB的HTTP批量文档API创建视图或获取多个文档。