Difference between Pouchdb and CouchDB

1. PouchDB :

Difference between PouchDB and CouchDB.

It is an open source database, it is an in-browser database API which is written in Javascript. It allows applications to store the data locally, which lets users enjoy all the features of the application though they are not online. Additionally there is synchronization of data between clients which keeps users up to date wherever they go.It is a Javascript implementation of CouchDB. It can be used locally in Node, also in browsers and remotrly through HTTP protocol. It is styled off on CouchDB and it is a NoSQL database.

To store the data it innately uses WebSQL and IndexedDB.

By default this database uses IndexedDB adapter for the browser, LevelDB adapter in the Node.js and CouchDB adapter for the remote databases.

We can run it in Node.js and also use it as a direct interface for the CouchDB compatible server. This API is consistent with its working in all environments so we can spend tme in writing clean code and not thinking about browser varieties.

How does PouchDB work?

When we are using an application offline then the data is saved locally by the ise of WebSQL and IndexedDB in the browser and wehen the application is online , pouchdb synchnizes it with CouchDb and the compatible servers. By using PouchDB we can connect with remote as well as local databases easily without perceiving the variations.

2. CouchDB :

Difference between PouchDB and CouchDB.

This database is an open source NoSQL database. Its focus is on how seamlessly we can use it. It is developed by Apache software. It is the modern type of database.it is a multi-master  application which was released in 2005 and became Apache project in the year 2008. This database uses HTTP protocol for the API. It converts documents and JSON to store the data, query language used is  javascript.

Sr. noPouchDBCouchDB
1.Apache Software Foundation has developed PouchDBApache Software Foundation has developed CouchDB
2It was initialy released in 2012It was initialy released in 2005
3The operating systems for pouchDB servers are serverless, and it requires a Javascript environment.The operating systems for CouchDB are Android, OS X, windows, BSD and Solaris
4It is implemented in Javascript languageIt is implemented in Erlang language
5This database uses HTTP REST Javascript APIThis database uses RESTful HTTP or JSON API
6It supports programming language - JavaScriptIt supports programming languages like C, Erlang, Java, C#, PHP, PL/SQL, Ruby, Python, Haskell, Lisp, Lua, Objective-C, OCaml, Perl, Smalltalk.
7The data scheme is Schema FreeThe data scheme is Schema Free
8It does not allow access rights to users they can be defined as per databaseIt allows access right to the users and they are defined as per database
9There is no XML supportThere is no XML support
10It supports Secondary IndexesIt supports Secondary Indexes
11It does not support SQLIt does not support SQL
12It supports triggersIt supports triggers
13Partition method is ShardingPartition method is Sharding
14Replication methods include multiple source replication and source replica replicationReplication methods include multiple source replication and source replica replication
15It supports MapReduceIt supports MapReduce
16The consistency concept is Eventual ConsistencyThe consistency concept is Eventual Consistency
17For Server side scripts view funxtion in Javascript are usedFor Server side scripts view funxtion in Javascript are used
18It does not support foreign keysIt does not support foreign keys
19It does not support transaction conceptsIt does not support transaction concepts
20There is no support for in memory capabilitiesIt supports in memory capabilities
21It provides DurabilityIt provides Durability
22Primary database model is Document StorePrimary database model is Document Store