Skip to content

Compare Views to Query  #480

Open
Open
@dongshengbc

Description

@dongshengbc

http://guide.couchdb.org/draft/views.html

The first paragraph of the this chapter is talking about using view to querying. Do you think it will be helpful to just point that out?

  • Filtering the documents in your database to find those relevant to a particular process. (where query )
  • Extracting data from your documents and presenting it in a specific order. (where query with order by)
  • Building efficient indexes to find documents by any value or structure that resides in them. (indexing)
  • Use these indexes to represent relationships among documents. (join query?)
  • Finally, with views you can make all sorts of calculations on the data in your documents. For example, if documents represent your company’s financial transactions, a view can answer the question of what the spending was in the last week, month, or year. (this one is not query)

View is way more powerful than query, and but people are often using view just to query I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions