Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9024887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:08:12+00:00 2026-06-16T06:08:12+00:00

In CouchDB , should design documents be made for each data entity, or model,

  • 0

In CouchDB, should design documents be made for each “data entity”, or model, that is being stored in the database? Or, should there be one design document that encompasses views for all of your needed views?

For example, if I have some Users and Comments in the database, would I have a single design document possibly called _design/blog and in it I’d have views named like usersByName, or commentsByDate, etc.

Or, should I have seperate design documents, like _design/users, _design/comments, in which I have views named like byName, or byDate?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T06:08:14+00:00Added an answer on June 16, 2026 at 6:08 am

    That is a good question.A design document by itself is just a collection of views ,list , show,update functions.All of the work of your “application layer” will be performed by these functions.So I feel that rather than having a different design document for each of of your entities the separation should be made on these functions.The blogging scenario that you have outlined in the question is a great example of how design documents should be used.

    Think of design documents as the file structure of your application.If you were building applications using some other framework you would probably have only one file structure for your application.By the way there is nothing stopping you from creating more than one design document in the application.But I feel that it gets a little unmanageable this way.

    Just to recap

    One design document per application with separate view,show functions if needed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the couchDB guide, Managing Design Documents , they state that The _attachments directory
I have a python program that accesses a couchDB database, creates new documents and
I have a CouchDB database (v1.2.0) with documents like: { _id: pages/1, _rev: 15-56ad5a5e879206edb04a7a62105dd25d,
I have a CouchDB (1.1.1) server running that contains a lot of documents in
I'm building an application that will require CouchDB's mobile syncing feature. So for each
let's say i want to implement a distributed database (each node being the replica
I have a couchdb instance with database a and database b. They should contain
Let's say I have some data in a CouchDB database. The overall size is
Which Non-relational database should I choose(I know the question is a subjective one and
I have a couchdb database setup at a AWS EC2 medium on-demand instance, there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.