adsense728x90


couchbase document-based nosql 기본 사용법 개념 Web backend


server 기본 사용법은

을 보는 게 좋겠다.

Data Buckets

Your web application stores data in a Couchbase cluster using buckets. Buckets are isolated, virtual containers which logically group records within a cluster; they are the functional equivalent to a database. 


document가 row같은 것

Couchbase Server is a document database ; unlike traditional relational databases, you store information in documents rather than table rows.


SQL CommandCouchbase SDK Method
INSERT, to create.set and add
SELECT, to retrieve/read data.get, multiple-retrieves, and get-and-touch (get and update expiration).
UPDATE, to modify data.set with a given key, or add with a new key, or replace with a key, or cas, also known as Check-and-Set. Used to update a value by providing the matching CAS value for the document. There are also methods for incrementing and decrementing numeric values, changing the expiration for a value, as well as pre-pending or appending to stored objects.
DELETE, to remove data.delete, deletes information associated with a given key.


Views는 views인가보다.

You can use views in Couchbase Server 2.1.0 to extract, filter, aggregate, and find information. View are essentially functions you write which Couchbase Server will then use to find information or perform calculations on information. For Couchbase Server, finding information with views is a two-stage process, based on a technique called map/reduce.



Couchbase Lite handles documents, databases, views and queries, replication, revisions, and the changes feed. If you’re familiar with relational databases and SQL, you’ll notice that Couchbase Lite works differently and has its own database terminology. The following table compares the terminology:

Couchbase Lite TermRelational / SQL Term
DatabaseDatabase
Document type (informal)Table
DocumentRow
Document IDPrimary key
ViewIndex
MVCCTransaction
GET or view queryQuery
GETSELECT
POSTINSERT
PUTUPDATE
DELETEDELETE



whitepapers







덧글

댓글 입력 영역