I'm developing a simple application with pouchDB and couchDB and I have the following doubts:
I'm developing a simple application with pouchDB and couchDB and I have the following doubts:
Hello, the comparison between MySQL and PouchDB is complicated, we are talking about different paradigms between databases. MySQL is a relational database (Entity / Relationship) and PuchDB is non relational (NoSQL). One of the main characteristics of a NoSQL database is to be atomic, since it has no transactional control.
More about NoSQL
Comparison table between terms:
SQL concept PouchDB concept
table no equivalent
row document
column field
primary key primary key (_id)
index view
Let's ask your questions:
1) You would have multiple documents
2) You would have the relationship (PK) in the same document, such as an array (hobbies):
{
"_id": "mittens",
"name": "Mittens",
"occupation": "kitten",
"age": 3,
"hobbies": [
"playing with balls of yarn",
"chasing laser pointers",
"lookin' hella cute"
]
}
Complete documentation for PouchDB