Questions tagged [design-documents]
25 questions
30
votes
1 answer
Design Documents (High Level and Low Level Design Documents)
What actually goes into the high level and low level design documents? (I specifically wish to know which diagrams are drawn in both the documents).
I've gone through a lot of resources but I'm a little confused.
As per my knowledge...
HLDD…

Pari
- 333
- 1
- 3
- 7
5
votes
1 answer
Excluding design documents in _all_docs query in Cloudant
I want to retrieve all the documents other than design documents but _all_docs returns all the documents in the DB. From the answers, I have found that using two queries would give the results.
_all_docs?endkey="_" - lists documents upto the first…

ShwetaJ
- 462
- 1
- 8
- 32
5
votes
4 answers
Design documents vs UML or both?
I've had a hard time sitting in front of UML and getting value out of it because it almost seems like as much work as programming (if you use an expressive language). I find that writing natural language tells me more about a software project than…

orokusaki
- 55,146
- 59
- 179
- 257
4
votes
4 answers
What are the conventions for types in Ruby?
Being that Ruby is a language with purely dynamic types, I'm never quite sure what level of expectation I should have for the types passed to my methods. For example, if my method only functions when passed an Integer, should I be actively checking…

SaxSalute
- 349
- 2
- 8
3
votes
2 answers
A Good Point to Create Design Documents in CouchDb
I have a CouchDb instance running a peruser database configuration.
Each user database generated (when a user is added to the _users database) needs to have the same design documents with view/list logic etc.
What is the defacto way to add the…

shennan
- 10,798
- 5
- 44
- 79
3
votes
1 answer
Accessing CouchDB View results in PouchDB
I've been learning CouchDB and PouchDB simultaneously, and perhaps that's why I'm having trouble understanding the way PouchDB handles CouchDB Views.
I've successfully created a View in CouchDB, and querying it over HTTP (the CouchDB way) is…

shennan
- 10,798
- 5
- 44
- 79
3
votes
2 answers
Difference between Software Design Document and System Design Document
I am working on a design document for a module of a web application and while I was researching about the design document, I came across templates with name such as Software Design Document (SDD)/Software Design Description(SDD), System Design…

Reagan Ochora
- 1,642
- 1
- 19
- 22
3
votes
1 answer
CouchDB, all_docs and filter design documents with endkey
First, this question - filter design documents from all_docs - already seemed to be solved like described here:
https://plus.google.com/+JasonDeRose/posts/1iP5tu3wVqw
/mydb/_all_docs?endkey=%22_%22
and worked in first place. However, suddenly in…

Micha
- 302
- 3
- 12
2
votes
0 answers
couchdb validate against documents in an other database
I need to write an design doc that checks whether or not an ID exists on a product in an other database (same CouchDB instance) before allowing the addition of a document to the database.
This should go along the lines of the following:
Actor ->…

SomeDutchGuy
- 2,249
- 4
- 16
- 42
2
votes
0 answers
how to make better doc/user -specific write permissions in couchDB?
I am playing around with CouchDB and PouchDB for a project where users have their own database and can add each other to view, or edit their docs.
Goal is to have different levels of accessibility: Depending on the docs themselves other users, who…

gaugau
- 765
- 1
- 9
- 30
2
votes
1 answer
Filter design documents with PouchDB
I'm using a design document to ensure that only owners can modify docs. How can I prevent couchdb from replicating this design document?

redgeoff
- 3,163
- 1
- 25
- 39
1
vote
0 answers
I have list of student exam detail in Couchbase bucket. Now I have to fetch student list grouped by their class and sum of each subject and total
I have done this using query but as I have a large amount of data it takes more time. Now I have to pick the data in lesser time using design documents or Indexes. Kindly suggest which will be more efficient and execute with sorter time?
Here is an…

Kartik Raja S
- 668
- 5
- 18
1
vote
1 answer
Variables inside design documents
Why does this not compile?
function (newDoc, oldDoc, userCtx) {
if (newDoc !== null) {
if (newDoc.type.toLowerCase() === 'test') {
let thisDoesNotWork = 5;
}
}
}
It throws:
{
"error": "compilation_error",
"reason":…

SomeDutchGuy
- 2,249
- 4
- 16
- 42
1
vote
2 answers
CouchDB check if a document exists in a validation function
I would like to see if a document exists in the database that has the name field "name" set to "a name" before allowing a new document to be added to the database.
I this possible in CouchDB using update handlers (inside design documents)?

SomeDutchGuy
- 2,249
- 4
- 16
- 42
1
vote
1 answer
Document update conflict with CouchDB design update
I am trying create an equivalent of create/update trigger used in traditional RDBMs. create_ts is being created fine, however update_ts part is not working for me.
"updates": {
"add_ts": "function(doc, req)
{ if(!doc){
…

bioffe
- 6,283
- 3
- 50
- 65