售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Learning Couchbase
Table of Contents
Learning Couchbase
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Introduction to Couchbase
What is NoSQL and why do we need it?
So what is NoSQL?
Why do we need NoSQL?
The architecture of Couchbase
Data manager
Cluster management
Concepts of Couchbase
Buckets
Views
Cross Data Center Replication
Installation on Windows and Linux environments
Couchbase installation on Red Hat, CentOS, and others
Startup and shutdown
On Linux
On Windows
Understanding log and configuration files
debug
info
error
mapreduce_errors
reports.log
Mobile development with Couchbase Lite
Summary
2. The Couchbase Administration Interface
The need for the Couchbase administrative interface
The web admin UI
Buckets and servers
Server nodes
Data buckets
Views
XDCR
Log
Settings
Couchbase administrative REST API
The command line interface
Summary
3. Storing Documents in Couchbase Using Buckets
Buckets
Types of bucket
Memcached
Couchbase
Understanding documents
Keys and metadata
vBuckets
Understanding some internals of Couchbase
Ejection
Warmup
Replication
Server settings
Bucket settings
Rebalancing
Summary
4. Designing a Document for Couchbase
Understanding JSON and non JSON data
A shopping cart – understanding data types
Document versus RDBMS
Document modeling
One document versus multiple documents
User
Order
Document relationships
User and Order
Using the document editor
User
Order
Summary
5. Introducing Client SDK
A Couchbase SDK overview
Understanding write operation in the Couchbase cluster
Understanding update operations in the Couchbase cluster
Understanding read operation in the Couchbase cluster
Understanding the Couchbase API
CRUD operations using the Couchbase API
Create
Read
Update
Delete
Understanding Java SDK
CRUD operations using the Java SDK
Insert
Read
Update
Upsert
Delete
Touch
Implementation – a Maven project for CRUD operations using the Java SDK
Understanding locking
Get with Lock (GETL)
CAS
Understanding counters
async operations
Connection management
Summary
6. Retrieving Documents without Keys Using Views
An overview of MapReduce
Views
Types of views
Development
Production
A view's life cycle
The views editor
Accessing a view using Java API
Indexes
Understanding stale parameters
Built-in reduce functions
count
sum
stats
Custom reduce functions
Filtering and transforming data
Using keys
Pagination
Grouping
Ordering
Mapping with SQL to MapReduce
Select and where conditions
Order by
Group by
Understanding geospatial views
View writing guidance
Summary
7. Understanding SQL-Like Queries – N1QL
The N1QL overview
Installing and configuring N1QL
The N1QL query engine
Operation types
Understanding N1QL syntax
Join
Cross-bucket joins
Query conditions and expressions
Sorting and grouping
Indexing properties
Explaining a query
Using the N1QL API
Summary
8. Full Text Search Using ElasticSearch
Understanding content-driven applications
Full text search overview
Configuration and query
Using the ES query API
An API to connect to ES
Summary
9. Data Replication and Compaction
Understanding the XDCR architecture
Active-active conflict resolution
Configuration and monitoring
CAPI-mode XDCR
XMEM-mode XDCR
Monitoring ongoing replications
The detailed replication progress
XDCR use cases
XDCR topologies
Unidirectional
Bidirectional
XDCR impact
Compaction
The compaction process
The compaction configuration
Summary
10. Administration, Tuning, and Monitoring
Overview
Backup and restoration
cbbackup
Backing up all nodes and all buckets
Backing up all nodes for a single bucket
Backing up a single node for a single bucket
Restoring using the cbrestore tool
Backing up the Couchbase cluster using file copies
Rebalancing
Adding and removing a node from the cluster
Performing a bulk set
Monitoring
Monitoring startup
Monitoring the disk write queue
Best practices
Cluster design
Sizing
Hardware
Summary
11. Case Study – An E-Commerce Application
Overview
The conceptual model
Customer
Category/catalog
Product
Cart
Order
Getting all products for a category
Getting all orders for a particular customer
Getting the cart for a customer
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜